From df2f166eb60ea5b337e8f2883074ff98c00c806d Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Tue, 20 Aug 2024 16:12:17 +0100 Subject: [PATCH] fix(cli-lib-alpha): bootstrap fails with "bad argument name" error for trust and trustForLookup Fixes #30404 --- packages/@aws-cdk/cli-lib-alpha/lib/cli.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/cli-lib-alpha/lib/cli.ts b/packages/@aws-cdk/cli-lib-alpha/lib/cli.ts index 65ac402a2851d..aac53864eb983 100644 --- a/packages/@aws-cdk/cli-lib-alpha/lib/cli.ts +++ b/packages/@aws-cdk/cli-lib-alpha/lib/cli.ts @@ -185,8 +185,8 @@ export class AwsCdkCli implements IAwsCdkCli { ...options.template ? ['--template', options.template] : [], ...options.customPermissionsBoundary ? ['--custom-permissions-boundary', options.customPermissionsBoundary] : [], ...options.qualifier ? ['--qualifier', options.qualifier] : [], - ...options.trust ? ['--qualifier', options.trust] : [], - ...options.trustForLookup ? ['--qualifier', options.trustForLookup] : [], + ...options.trust ? ['--trust', options.trust] : [], + ...options.trustForLookup ? ['--trust-for-lookup', options.trustForLookup] : [], ...options.bootstrapKmsKeyId ? ['--bootstrap-kms-key-id', options.bootstrapKmsKeyId] : [], ...options.bootstrapCustomerKey ? ['--bootstrap-customer-key', options.bootstrapCustomerKey] : [], ...options.publicAccessBlockConfiguration ? ['--public-access-block-configuration', options.publicAccessBlockConfiguration] : [],