Skip to content

Commit b11ca4a

Browse files
authored
fix(cli-lib-alpha): bootstrap fails with "bad argument name" error for trust and trustForLookup (#31159)
### Issue Closes #30404 ### Reason for this change `trust` and `trustForLookup` options are overwriting `qualifier`, so it's impossible to bootstrap a new account with these options. ### Description of changes Fix the assignment. ### Description of how you validated changes Manual test. The testing infrastructure currently doesn't support this kind of test I think. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent c7980a2 commit b11ca4a

File tree

1 file changed

+2
-2
lines changed
  • packages/@aws-cdk/cli-lib-alpha/lib

1 file changed

+2
-2
lines changed

packages/@aws-cdk/cli-lib-alpha/lib/cli.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ export class AwsCdkCli implements IAwsCdkCli {
185185
...options.template ? ['--template', options.template] : [],
186186
...options.customPermissionsBoundary ? ['--custom-permissions-boundary', options.customPermissionsBoundary] : [],
187187
...options.qualifier ? ['--qualifier', options.qualifier] : [],
188-
...options.trust ? ['--qualifier', options.trust] : [],
189-
...options.trustForLookup ? ['--qualifier', options.trustForLookup] : [],
188+
...options.trust ? ['--trust', options.trust] : [],
189+
...options.trustForLookup ? ['--trust-for-lookup', options.trustForLookup] : [],
190190
...options.bootstrapKmsKeyId ? ['--bootstrap-kms-key-id', options.bootstrapKmsKeyId] : [],
191191
...options.bootstrapCustomerKey ? ['--bootstrap-customer-key', options.bootstrapCustomerKey] : [],
192192
...options.publicAccessBlockConfiguration ? ['--public-access-block-configuration', options.publicAccessBlockConfiguration] : [],

0 commit comments

Comments
 (0)