Skip to content

Commit a5ced21

Browse files
authored
chore(release): v2.38.1 (#21669)
See CHANGELOG
2 parents 317fe7a + 7713e45 commit a5ced21

13 files changed

+21
-425
lines changed

CHANGELOG.v2.alpha.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.38.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.38.0-alpha.0...v2.38.1-alpha.0) (2022-08-18)
6+
57
## [2.38.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.37.1-alpha.0...v2.38.0-alpha.0) (2022-08-17)
68

79

CHANGELOG.v2.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.38.1](https://github.com/aws/aws-cdk/compare/v2.38.0...v2.38.1) (2022-08-18)
6+
7+
### Reverts
8+
9+
* cli: revert "feat(cli): --concurrency option" ([#21664](https://github.com/aws/aws-cdk/pull/21664)) ([2ad2163b](https://github.com/aws/aws-cdk/commit/2ad2163b96254f9715dff405100a047d6c2c5958))
10+
* cli: revert "feat(cli): cdk watch --concurrency" ([#21665](https://github.com/aws/aws-cdk/pull/21665)) ([6048d4fc](https://github.com/aws/aws-cdk/commit/6048d4fc37239bcd5193d5487464590c786bf56b))
11+
512
## [2.38.0](https://github.com/aws/aws-cdk/compare/v2.37.1...v2.38.0) (2022-08-17)
613

714

packages/aws-cdk/README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ In order to deploy them, you can list the stacks you want to deploy. If your app
191191

192192
If you want to deploy all of them, you can use the flag `--all` or the wildcard `*` to deploy all stacks in an app. Please note that, if you have a hierarchy of stacks as described above, `--all` and `*` will only match the stacks on the top level. If you want to match all the stacks in the hierarchy, use `**`. You can also combine these patterns. For example, if you want to deploy all stacks in the `Prod` stage, you can use `cdk deploy PipelineStack/Prod/**`.
193193

194-
`--concurrency N` allows deploying multiple stacks in parallel while respecting inter-stack dependencies to speed up deployments. It does not protect against CloudFormation and other AWS account rate limiting.
195-
196194
#### Parameters
197195

198196
Pass parameters to your template during deployment by using `--parameters
@@ -458,15 +456,6 @@ locally to your terminal. To disable this feature you can pass the `--no-logs` o
458456
$ cdk watch --no-logs
459457
```
460458

461-
You can increase the concurrency by which `watch` will deploy and hotswap
462-
your stacks by specifying `--concurrency N`. `--concurrency` for `watch`
463-
acts the same as `--concurrency` for `deploy`, in that it will deploy or
464-
hotswap your stacks while respecting inter-stack dependencies.
465-
466-
```console
467-
$ cdk watch --concurrency 5
468-
```
469-
470459
**Note**: This command is considered experimental, and might have breaking changes in the future.
471460
The same limitations apply to to `watch` deployments as do to `--hotswap` deployments. See the
472461
*Hotswap deployments for faster development* section for more information.

packages/aws-cdk/THIRD_PARTY_LICENSES

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,32 +1143,6 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
11431143
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11441144

11451145

1146-
----------------
1147-
1148-
** [email protected] - https://www.npmjs.com/package/eventemitter3/v/4.0.7 | MIT
1149-
The MIT License (MIT)
1150-
1151-
Copyright (c) 2014 Arnout Kazemier
1152-
1153-
Permission is hereby granted, free of charge, to any person obtaining a copy
1154-
of this software and associated documentation files (the "Software"), to deal
1155-
in the Software without restriction, including without limitation the rights
1156-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1157-
copies of the Software, and to permit persons to whom the Software is
1158-
furnished to do so, subject to the following conditions:
1159-
1160-
The above copyright notice and this permission notice shall be included in all
1161-
copies or substantial portions of the Software.
1162-
1163-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1164-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1165-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1166-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1167-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1168-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1169-
SOFTWARE.
1170-
1171-
11721146
----------------
11731147

11741148
** [email protected] - https://www.npmjs.com/package/fast-deep-equal/v/3.1.3 | MIT
@@ -2300,60 +2274,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
23002274
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23012275

23022276

2303-
----------------
2304-
2305-
** [email protected] - https://www.npmjs.com/package/p-finally/v/1.0.0 | MIT
2306-
The MIT License (MIT)
2307-
2308-
Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
2309-
2310-
Permission is hereby granted, free of charge, to any person obtaining a copy
2311-
of this software and associated documentation files (the "Software"), to deal
2312-
in the Software without restriction, including without limitation the rights
2313-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2314-
copies of the Software, and to permit persons to whom the Software is
2315-
furnished to do so, subject to the following conditions:
2316-
2317-
The above copyright notice and this permission notice shall be included in
2318-
all copies or substantial portions of the Software.
2319-
2320-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2321-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2322-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2323-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2324-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2325-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2326-
THE SOFTWARE.
2327-
2328-
2329-
----------------
2330-
2331-
** [email protected] - https://www.npmjs.com/package/p-queue/v/6.6.2 | MIT
2332-
MIT License
2333-
2334-
Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
2335-
2336-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2337-
2338-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
2339-
2340-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2341-
2342-
2343-
----------------
2344-
2345-
** [email protected] - https://www.npmjs.com/package/p-timeout/v/3.2.0 | MIT
2346-
MIT License
2347-
2348-
Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
2349-
2350-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2351-
2352-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
2353-
2354-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2355-
2356-
23572277
----------------
23582278

23592279
** [email protected] - https://www.npmjs.com/package/pac-proxy-agent/v/5.0.0 | MIT

packages/aws-cdk/lib/cdk-toolkit.ts

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { CloudExecutable } from './api/cxapp/cloud-executable';
1414
import { findCloudWatchLogGroups } from './api/logs/find-cloudwatch-logs';
1515
import { CloudWatchLogEventMonitor } from './api/logs/logs-monitor';
1616
import { StackActivityProgress } from './api/util/cloudformation/stack-activity-monitor';
17-
import { deployStacks } from './deploy';
1817
import { printSecurityDiff, printStackDiff, RequireApproval } from './diff';
1918
import { ResourceImporter } from './import';
2019
import { data, debug, error, highlight, print, success, warning } from './logging';
@@ -138,7 +137,7 @@ export class CdkToolkit {
138137
}
139138

140139
const startSynthTime = new Date().getTime();
141-
const stackCollection = await this.selectStacksForDeploy(options.selector, options.exclusively, options.cacheCloudAssembly);
140+
const stacks = await this.selectStacksForDeploy(options.selector, options.exclusively, options.cacheCloudAssembly);
142141
const elapsedSynthTime = new Date().getTime() - startSynthTime;
143142
print('\n✨ Synthesis time: %ss\n', formatTime(elapsedSynthTime));
144143

@@ -164,19 +163,11 @@ export class CdkToolkit {
164163
warning('⚠️ It should only be used for development - never use it for your production Stacks!');
165164
}
166165

167-
const stacks = stackCollection.stackArtifacts;
168-
169166
const stackOutputs: { [key: string]: any } = { };
170167
const outputsFile = options.outputsFile;
171168

172-
const concurrency = options.concurrency || 1;
173-
const progress = concurrency > 1 ? StackActivityProgress.EVENTS : options.progress;
174-
if (concurrency > 1 && options.progress && options.progress != StackActivityProgress.EVENTS) {
175-
warning('⚠️ The --concurrency flag only supports --progress "events". Switching to "events".');
176-
}
177-
178-
const deployStack = async (stack: cxapi.CloudFormationStackArtifact) => {
179-
if (stackCollection.stackCount !== 1) { highlight(stack.displayName); }
169+
for (const stack of stacks.stackArtifacts) {
170+
if (stacks.stackCount !== 1) { highlight(stack.displayName); }
180171
if (!stack.environment) {
181172
// eslint-disable-next-line max-len
182173
throw new Error(`Stack ${stack.displayName} does not define an environment, and AWS credentials could not be obtained from standard locations or no region was configured.`);
@@ -196,7 +187,7 @@ export class CdkToolkit {
196187
ci: options.ci,
197188
});
198189
}
199-
return;
190+
continue;
200191
}
201192

202193
if (requireApproval !== RequireApproval.Never) {
@@ -210,13 +201,6 @@ export class CdkToolkit {
210201
'but terminal (TTY) is not attached so we are unable to get a confirmation from the user');
211202
}
212203

213-
// only talk to user if concurreny is 1 (otherwise, fail)
214-
if (concurrency > 1) {
215-
throw new Error(
216-
'"--require-approval" is enabled and stack includes security-sensitive updates, ' +
217-
'but concurrency is greater than 1 so we are unable to get a confirmation from the user');
218-
}
219-
220204
const confirmed = await promptly.confirm('Do you wish to deploy these changes (y/n)?');
221205
if (!confirmed) { throw new Error('Aborted by user'); }
222206
}
@@ -245,7 +229,7 @@ export class CdkToolkit {
245229
force: options.force,
246230
parameters: Object.assign({}, parameterMap['*'], parameterMap[stack.stackName]),
247231
usePreviousParameters: options.usePreviousParameters,
248-
progress,
232+
progress: options.progress,
249233
ci: options.ci,
250234
rollback: options.rollback,
251235
hotswap: options.hotswap,
@@ -294,13 +278,6 @@ export class CdkToolkit {
294278
}
295279
}
296280
print('\n✨ Total time: %ss\n', formatTime(elapsedSynthTime + elapsedDeployTime));
297-
};
298-
299-
try {
300-
await deployStacks(stacks, { concurrency, deployStack });
301-
} catch (e) {
302-
error('\n ❌ Deployment failed: %s', e);
303-
throw e;
304281
}
305282
}
306283

@@ -737,7 +714,6 @@ export class CdkToolkit {
737714
cacheCloudAssembly: false,
738715
hotswap: hotswap,
739716
extraUserAgent: `cdk-watch/hotswap-${hotswap ? 'on' : 'off'}`,
740-
concurrency: options.concurrency,
741717
};
742718

743719
try {
@@ -901,14 +877,6 @@ interface WatchOptions extends Omit<CfnDeployOptions, 'execute'> {
901877
* @default - false
902878
*/
903879
readonly traceLogs?: boolean;
904-
905-
/**
906-
* Maximum number of simulatenous deployments (dependency permitting) to execute.
907-
* The default is '1', which executes all deployments serially.
908-
*
909-
* @default 1
910-
*/
911-
readonly concurrency?: number;
912880
}
913881

914882
export interface DeployOptions extends CfnDeployOptions, WatchOptions {
@@ -980,14 +948,6 @@ export interface DeployOptions extends CfnDeployOptions, WatchOptions {
980948
* @default - not monitoring CloudWatch logs
981949
*/
982950
readonly cloudWatchLogMonitor?: CloudWatchLogEventMonitor;
983-
984-
/**
985-
* Maximum number of simulatenous deployments (dependency permitting) to execute.
986-
* The default is '1', which executes all deployments serially.
987-
*
988-
* @default 1
989-
*/
990-
readonly concurrency?: number;
991951
}
992952

993953
export interface ImportOptions extends CfnDeployOptions {

packages/aws-cdk/lib/cli.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ async function parseCommandLineArguments() {
146146
desc: 'Show CloudWatch log events from all resources in the selected Stacks in the terminal. ' +
147147
"'true' by default, use --no-logs to turn off. " +
148148
"Only in effect if specified alongside the '--watch' option",
149-
})
150-
.option('concurrency', { type: 'number', desc: 'Maximum number of simulatenous deployments (dependency permitting) to execute.', default: 1, requiresArg: true }),
149+
}),
151150
)
152151
.command('import [STACK]', 'Import existing resource(s) into the given STACK', (yargs: Argv) => yargs
153152
.option('execute', { type: 'boolean', desc: 'Whether to execute ChangeSet (--no-execute will NOT execute the ChangeSet)', default: true })
@@ -216,8 +215,7 @@ async function parseCommandLineArguments() {
216215
default: true,
217216
desc: 'Show CloudWatch log events from all resources in the selected Stacks in the terminal. ' +
218217
"'true' by default, use --no-logs to turn off",
219-
})
220-
.option('concurrency', { type: 'number', desc: 'Maximum number of simulatenous deployments (dependency permitting) to execute.', default: 1, requiresArg: true }),
218+
}),
221219
)
222220
.command('destroy [STACKS..]', 'Destroy the stack(s) named STACKS', (yargs: Argv) => yargs
223221
.option('all', { type: 'boolean', default: false, desc: 'Destroy all available stacks' })
@@ -482,7 +480,6 @@ async function initCommandLine() {
482480
hotswap: args.hotswap,
483481
watch: args.watch,
484482
traceLogs: args.logs,
485-
concurrency: args.concurrency,
486483
});
487484

488485
case 'import':
@@ -517,7 +514,6 @@ async function initCommandLine() {
517514
rollback: configuration.settings.get(['rollback']),
518515
hotswap: args.hotswap,
519516
traceLogs: args.logs,
520-
concurrency: args.concurrency,
521517
});
522518

523519
case 'destroy':

packages/aws-cdk/lib/deploy.ts

Lines changed: 0 additions & 60 deletions
This file was deleted.

packages/aws-cdk/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
"glob": "^7.2.3",
108108
"json-diff": "^0.9.0",
109109
"minimatch": ">=3.1",
110-
"p-queue": "^6.6.2",
111110
"promptly": "^3.2.0",
112111
"proxy-agent": "^5.0.0",
113112
"semver": "^7.3.7",

packages/aws-cdk/test/cdk-toolkit.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -642,18 +642,6 @@ describe('watch', () => {
642642
expect(excludeArgs[1]).toBe('**/my-dir2');
643643
});
644644

645-
test('allows watching with deploy concurrency', async () => {
646-
cloudExecutable.configuration.settings.set(['watch'], {});
647-
const toolkit = defaultToolkitSetup();
648-
const cdkDeployMock = jest.fn();
649-
toolkit.deploy = cdkDeployMock;
650-
651-
await toolkit.watch({ selector: { patterns: [] }, concurrency: 3 });
652-
fakeChokidarWatcherOn.readyCallback();
653-
654-
expect(cdkDeployMock).toBeCalledWith(expect.objectContaining({ concurrency: 3 }));
655-
});
656-
657645
describe('with file change events', () => {
658646
let toolkit: CdkToolkit;
659647
let cdkDeployMock: jest.Mock;

0 commit comments

Comments
 (0)