Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

droplet create: assign to project after create #1499

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

bentranter
Copy link
Member

Fixes #630

Adds a new optional flag to the doctl compute droplet create command, --project-id, that allows you to pass a project UUID. If a project UUID is passed, that Droplet will be assigned to that project after it is created.

This pattern of create-then-assign can probably be expanded to any resource that returns an URN, but since we've received quite a few requests for this functionality for Droplets, I figured this is a good starting point.

Fixes #630

Adds a new optional flag to the `doctl compute droplet create` command,
`--project-id` that allows you to pass a project UUID. If a project UUID
is passed, that Droplet will be assigned to that project after it is
created.
Copy link
Member

@danaelhe danaelhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@bentranter bentranter merged commit 1856794 into main Jan 26, 2024
6 checks passed
@bentranter bentranter deleted the droplets/assign-to-project-post-create branch January 26, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create droplet in a specific project
3 participants