Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
rfc: changes to default stack environments #4131
rfc: changes to default stack environments #4131
Changes from all commits
72723e1
03961da
065da66
ef0c24f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This is a vague sentence. Does that mean the values in those environment variables will be different? What do you mean here?
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 find this dangerous, and we should not treat the behavior change lightly. I think people have been trained to look at
cdk synth
to determine what their deployed stack will look like. I know I do.We HAVE TO commit to clearly documenting/explaining how you troubleshoot your deployment (look at the generated template).
I would also say we have to have
cdk synth
detect whether acdk deploy
would deploy something else and printing something like: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.
Also the "environments" section of the developer guide will need be rewritten. Ping @jerry-aws .
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 am worried that people would want to use
cdk print
(I don't love the name here, BTW) to check what will be deployed, and that they will be surprised that what issynth
'd anddeploy
'd is not the same...To me, literally the only reason why you'd want to "see the template" is to troubleshoot or validate what'll be deployed before you go do it... If the default behaviors aren't the same, then this will be surprising.
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 wonder if we even need the
print
subcommand. A combination of good output messaging oncdk synth
(like "synthesized stackA at ") and cat/less/vim/etc. should work well just fine here.That would also mean that
synth
acknowledge the--json
(or yaml) option and render the stack undercdk.out
appropriately.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 would comment that the default environment for
cdk deploy
andcdk print
would need to be the same forprint
to be useful (if it is intended for debugging). However, IF it is intended for debugging, we'd be better off calling it something elsecdk debug
?cdk troubleshoot
? Or make it a flag to synth:cdk synth --as-deployed
.