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): add --untrust option to bootstrap (#33091)
Add a new option, `--untrust`, to the `bootstrap` command. Passing a list of account IDs as values to this option removes those account IDs from the trust relationships in the bootstrap roles.
Closes#22703.
----
*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/config.ts
+1
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,7 @@ export async function makeConfig(): Promise<CliConfig> {
87
87
'execute': {type: 'boolean',desc: 'Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet)',default: true},
88
88
'trust': {type: 'array',desc: 'The AWS account IDs that should be trusted to perform deployments into this environment (may be repeated, modern bootstrapping only)',default: []},
89
89
'trust-for-lookup': {type: 'array',desc: 'The AWS account IDs that should be trusted to look up values in this environment (may be repeated, modern bootstrapping only)',default: []},
90
+
'untrust': {type: 'array',desc: 'The AWS account IDs that should not be trusted by this environment (may be repeated, modern bootstrapping only)',default: []},
90
91
'cloudformation-execution-policies': {type: 'array',desc: 'The Managed Policy ARNs that should be attached to the role performing deployments into this environment (may be repeated, modern bootstrapping only)',default: []},
91
92
'force': {alias: 'f',type: 'boolean',desc: 'Always bootstrap even if it would downgrade template version',default: false},
92
93
'termination-protection': {type: 'boolean',default: undefined,desc: 'Toggle CloudFormation termination protection on the bootstrap stacks'},
* The AWS account IDs that should not be trusted by this environment (may be repeated, modern bootstrapping only)
469
+
*
470
+
* @default - []
471
+
*/
472
+
readonlyuntrust?: Array<string>;
473
+
467
474
/**
468
475
* The Managed Policy ARNs that should be attached to the role performing deployments into this environment (may be repeated, modern bootstrapping only)
0 commit comments