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
fix(bootstrap): add previous-parameters option to bootstrap command (#25219)
A recent change was made to explicitly set the `usePreviousParameters` when deploying the bootstrap template. This is because if a template is deployed once by a user with a set of parameters and then later by another user we shouldn't drop those previously set parameters.
This PR adds the option for the user to control this behavior. If the user needs to turn this off they can provide the
`--no-previous-parameters` option.
fixes#23780
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Copy file name to clipboardExpand all lines: packages/aws-cdk/lib/cli.ts
+3-1
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,8 @@ async function parseCommandLineArguments(args: string[]) {
109
109
.option('termination-protection',{type: 'boolean',default: undefined,desc: 'Toggle CloudFormation termination protection on the bootstrap stacks'})
110
110
.option('show-template',{type: 'boolean',desc: 'Instead of actual bootstrapping, print the current CLI\'s bootstrapping template to stdout for customization',default: false})
111
111
.option('toolkit-stack-name',{type: 'string',desc: 'The name of the CDK toolkit stack to create',requiresArg: true})
112
-
.option('template',{type: 'string',requiresArg: true,desc: 'Use the template from the given file instead of the built-in one (use --show-template to obtain an example)'}),
112
+
.option('template',{type: 'string',requiresArg: true,desc: 'Use the template from the given file instead of the built-in one (use --show-template to obtain an example)'})
113
+
.option('previous-parameters',{type: 'boolean',default: true,desc: 'Use previous values for existing parameters (you must specify all parameters on every deployment if this is disabled)'}),
113
114
)
114
115
.command('deploy [STACKS..]','Deploys the stack(s) named STACKS into your AWS account',(yargs: Argv)=>yargs
115
116
.option('all',{type: 'boolean',default: false,desc: 'Deploy all available stacks'})
0 commit comments