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
feat(cli): --all
flag to select all stacks
#10745
feat(cli): --all
flag to select all stacks
#10745
Conversation
Title does not follow the guidelines of Conventional Commits. Please adjust title before merge. |
…thub.com:IsmaelMartinez/aws-cdk into ismaelmartinez/add-deploy-all-argument-to-client
cdk deploy --all
to the client options
Can someone re-trigger this? I have changed twice the title but can't see this triggering. PR should be ready now for review. Thanks |
I'm wondering if it might be better to have the command error instead if both "--all" and a list of stacks are provided. I feel like this could help catch user errors, considering that this implementation looks slightly different from how some other CLI tools operate (e.g. in Git, if you run
I think the title needs to be update to say "feat" instead of "feature" |
cdk deploy --all
to the client optionscdk deploy --all
to the client options
Thanks. I will see when I got another bit of time to add the error message. Sounds reasonable. |
I'm not a big fan of this. We don't need this flag as Where's the added benefit? |
Only created the PR because there is an open ticket. Happy to change the PR content to add the unit test for the |
Only my 2 cents, but the cdk design guidelines suggests:
What kinds of downsides come to mind? |
In my opinion, there are 3 options on this (on order of preference):
In my opinion, it is a bit strange that you need to provide an escaped * as an extra argument (or the list of stack names) if you got more than one stack in an app. Saying that, it will be a change on functionality but it sort of makes more sense than the current behaviour. It is not that you need to provide your stack name if you only got one. Let me know if you prefer to put this sort fo conversations in the ticket instead of in the PR. Ta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After having thought on it, I'm willing to accept this.
Please add an input to the CLI that if --all
is provided, stack names are not allowed (and add a descriptive error message).
… stacks at the same time feat: adding the --all option to the destroy command
I pushed a few changes. Touched the "destroy" command also as it has the same flow/logic as the deploy and will otherwise work inconsistently. I checked the Also, do you want me to edit the https://docs.aws.amazon.com/cdk/latest/guide/cli.html github to ensure this is in sync? Not sure if that automatically updates or you have an internal process to do this. Thanks in advance! |
cdk deploy --all
to the client options--all
flag to select all stacks
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Adding the --all option to deploy all stacks.
cdk deploy --all
This is an alias of
*
. The previous command does the same as the following one:cdk deploy '*'
Closes #3222
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license