-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(toolkit): do not deploy empty stacks #3144
Conversation
I wonder if we shouldn't |
@RomainMuller have you decided what should happen with |
|
Pull Request Checklist
|
@RomainMuller updated PR to address this. |
packages/aws-cdk/lib/cdk-toolkit.ts
Outdated
success('%s: destroying...', colors.blue(stack.name)); | ||
try { | ||
await destroyStack({ stack, sdk: options.sdk, deployName: stack.name, roleArn: options.roleArn }); | ||
success('\n ✅ %s: destroyed', colors.blue(stack.name)); |
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.
I'm part afraid of the kind of messaging this will be on the whole experience... Should make sure all the messaging when you cdk deploy
is "deployesque".
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.
We need integration tests for this
You mean with |
the PR checklist above ^^ includes a link for CLI integration tests. |
done |
Pull request has been modified.
Thank you for contributing! Your pull request is now being automatically merged. |
Thank you for contributing! Your pull request is now being automatically merged. |
Do not deploy stacks without resources and issue a warning.
See also discussion #3142 (comment)
Please read the contribution guidelines and follow the pull-request checklist.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license