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
Once again, any change to anything anywhere broke someone. In this particular case, parallel asset publishing (#19367, and in particular building) broke a use case where someone uses a tool to build assets that is not concurrency-safe. So -- now we need to make that configurable.
Command line:
```
cdk deploy --no-asset-parallelism
```
cdk.json:
```
{
"assetParallelism": false
}
```
Environment variables:
```
export CDK_ASSET_PARALLELISM=false
```
----
### All Submissions:
* [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)
### Adding new Unconventional Dependencies:
* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)
### New Features
* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?
*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-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -155,7 +155,8 @@ async function parseCommandLineArguments() {
155
155
"'true' by default, use --no-logs to turn off. "+
156
156
"Only in effect if specified alongside the '--watch' option",
157
157
})
158
-
.option('concurrency',{type: 'number',desc: 'Maximum number of simultaneous deployments (dependency permitting) to execute.',default: 1,requiresArg: true}),
158
+
.option('concurrency',{type: 'number',desc: 'Maximum number of simultaneous deployments (dependency permitting) to execute.',default: 1,requiresArg: true})
159
+
.option('asset-parallelism',{type: 'boolean',desc: 'Whether to build/publish assets in parallel'}),
159
160
)
160
161
.command('import [STACK]','Import existing resource(s) into the given STACK',(yargs: Argv)=>yargs
161
162
.option('execute',{type: 'boolean',desc: 'Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet)',default: true})
@@ -514,6 +515,7 @@ async function initCommandLine() {
0 commit comments