From 558092eb5ad49ae31fb1f6efa0c31be24403c479 Mon Sep 17 00:00:00 2001 From: Huy Phan Date: Sat, 5 Nov 2022 00:25:57 +1100 Subject: [PATCH] fix(cli): assetParallelism option in cdk.json is not recognized Version 2.48.0 introduced a flag to enable/disable parallelism when building and publishing assets (see #22579 ). The flag is supposed to be set via either environment variable (`CDK_ASSET_PARALLELISM`), command line argument (`-[no]-asset-parallelism`), or the `cdk.json` file. However, the last method does not work. We are not passing the option from that file properly. --- packages/aws-cdk/lib/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk/lib/cli.ts b/packages/aws-cdk/lib/cli.ts index 1f49d63430437..c93e118010e07 100644 --- a/packages/aws-cdk/lib/cli.ts +++ b/packages/aws-cdk/lib/cli.ts @@ -515,7 +515,7 @@ async function initCommandLine() { watch: args.watch, traceLogs: args.logs, concurrency: args.concurrency, - assetParallelism: args.assetParallelism, + assetParallelism: configuration.settings.get(['assetParallelism']), }); case 'import':