cdk-cli: allow --no-previous-parameters to be configured in cdk.json
alongside other config
#26418
Labels
@aws-cdk/aws-ssm
Related to AWS Systems Manager
cli
Issues related to the CDK CLI
feature-request
A feature should be added or improved.
needs-design
This feature request needs additional design work.
needs-discussion
This issue/PR requires more discussion with community.
p2
Describe the feature
When using CDK aspects like
StringParameter.fromStringParameterAttributes
/StringParameter.valueForStringParameter
; by default, they use CloudFormation Stack Parameters; which are fixed at the point of first deploy, unless we deploy withcdk deploy --no-previous-parameters
.This is often confusing and unexpected, as outlined in this issue:
Use Case
I want to enforce
--no-previous-parameters
to always be used in mycdk.json
, so that I can commit it into my project repo.Proposed Solution
Allow
--no-previous-parameters
to be configured incdk.json
alongside existing config values.Other Information
You can see some of my deepdive comments on the following issue:
Notably in that 2nd comment, it appears that some very recent changes (~2 weeks ago) made in CDK
2.87.0
would sort of allow the root issue to be worked around in a different way if I made use offorceDynamicReference
:Then, on an internal issue, I noted the following while researching whether it was possible to configure this in
cdk.json
:Acknowledgements
CDK version used
2.84.0 (build f7c792f)
Environment details (OS name and version, etc.)
macOS / N/A
The text was updated successfully, but these errors were encountered: