Add stage and parameter file for stage #4056
Labels
closing-soon
This issue will automatically close in 4 days unless further comments are made.
feature-request
A feature should be added or improved.
package/tools
Related to AWS CDK Tools or CLI
Might be addressed by #1499
🚀 Feature Request
General Information
Description
I am proposing a feature to define the stage status of the infrastructure. This will help contextualize and isolate the set of infrastructure targeted for different environment. It will allow authors of IaC to contain the changes within the context of the stage and allow reproducing the target infrastructures or modifying the incrementally as long as they are in the same stage.
Additionally it will drive the practice of separating the parameter for the stages to be fed from text files and keep them outside of VCS for better security and make the workflow stateless.
Proposed Solution
Here are my mind dumps:
cdk synth --stage [dev|staging|prod]
which will set theapp
level or stack level Environment property calledstage
. Or stage can be set from Stack instance property of Environment using@aws-cdk/core.Environment
interfacestage
prod would read prod.yml file or any file defined by --stage-file CLI option. This will then inject it into stack propertiesEnvironment
Other information
NA
The text was updated successfully, but these errors were encountered: