You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): Configurable --change-set-name CLI flag (#13024)
closes#11075
This PR is based on @swar8080's work in #12683.
Adds the following CLI flag:
`--change-set-name`: Optional name of the CloudFormation change set to create, instead of using the default one. An external script or the CodePipeline CloudFormation action can use this name to later deploy the changes.
Motivation: see #12683 (comment)
Copy file name to clipboardExpand all lines: packages/aws-cdk/bin/cdk.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,7 @@ async function parseCommandLineArguments() {
94
94
// @deprecated(v2) -- tags are part of the Cloud Assembly and tags specified here will be overwritten on the next deployment
95
95
.option('tags',{type: 'array',alias: 't',desc: 'Tags to add to the stack (KEY=VALUE), overrides tags from Cloud Assembly (deprecated)',nargs: 1,requiresArg: true})
96
96
.option('execute',{type: 'boolean',desc: 'Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet)',default: true})
97
+
.option('change-set-name',{type: 'string',desc: 'Name of the CloudFormation change set to create'})
97
98
.option('force',{alias: 'f',type: 'boolean',desc: 'Always deploy stack even if templates are identical',default: false})
98
99
.option('parameters',{type: 'array',desc: 'Additional parameters passed to CloudFormation at deploy time (STACK:KEY=VALUE)',nargs: 1,requiresArg: true,default: {}})
99
100
.option('outputs-file',{type: 'string',alias: 'O',desc: 'Path to file where stack outputs will be written as JSON',requiresArg: true})
@@ -316,6 +317,7 @@ async function initCommandLine() {
0 commit comments