-
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(cli): deprecated stack ids printed at the end of synth #19216
Conversation
I still need to add unit tests for this |
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). |
Using the regular stack identifier in cli commands is deprecated in v1, and removed in v2. If you supply the `.id` of a stack to any cdk commands (`synth`, `deploy`), then v1 will print out a deprecation warning. And, v2 will not work at all. Because of this, it is confusing to users that `cdk synth` prints out the regular stack identifier. It is best to print out the hierarchical identifier in all cases. At minimum, this partially fixes aws#18599. This will fix the scenario where the CLI prints out ``` Supply a stack id (StageOneF5E336C2, StageTwo81B557F6) to display its template. ``` when those ids will not actually work, and the hierarchical ids, `Stage/One` and `Stage/Two`, should be printed instead. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
One of the changes in #19216 is causing 3 unit tests in the CI environment of the pipeline to fail (for reasons not exactly clear). This changes unblocks them. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
One of the changes in #19216 is causing 3 unit tests in the CI environment of the pipeline to fail (for reasons not exactly clear). This changes unblocks them. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* (cherry picked from commit 4977ae5)
Using the regular stack identifier in cli commands is deprecated in v1, and removed in v2. If you supply the
.id
of a stack to any cdk commands (synth
,deploy
), then v1 will print out a deprecation warning. And, v2 will not work at all. Because of this, it is confusing to users thatcdk synth
prints out the regular stack identifier. It is best to print out the hierarchical identifier in all cases.At minimum, this partially fixes #18599. This will fix the scenario where the CLI prints out
when those ids will not actually work, and the hierarchical ids,
Stage/One
andStage/Two
, should be printed instead.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license