aws-cdk 2.1140.0 → 2.1142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -1
- package/THIRD_PARTY_LICENSES +14 -14
- package/build-info.json +2 -2
- package/db.json.gz +0 -0
- package/lib/cli/cdk-toolkit.d.ts +9 -1
- package/lib/cli/cdk-toolkit.js +33 -1
- package/lib/cli/cli-config.js +7 -1
- package/lib/cli/cli-type-registry.json +4 -0
- package/lib/cli/cli.js +9 -2
- package/lib/cli/convert-to-user-input.js +3 -1
- package/lib/cli/parse-command-line-arguments.js +6 -1
- package/lib/cli/user-input.d.ts +6 -0
- package/lib/cli/user-input.js +1 -1
- package/lib/index.js +461 -187
- package/lib/index_bg.wasm +0 -0
- package/lib/init-templates/.init-version.json +1 -1
- package/lib/init-templates/.recommended-feature-flags.json +2 -1
- package/package.json +13 -12
package/README.md
CHANGED
|
@@ -291,7 +291,43 @@ You can have multiple stacks in a cdk app. An example can be found in [how to cr
|
|
|
291
291
|
|
|
292
292
|
In order to deploy them, you can list the stacks you want to deploy. If your application contains pipeline stacks, the `cdk list` command will show stack names as paths, showing where they are in the pipeline hierarchy (e.g., `PipelineStack`, `PipelineStack/Prod`, `PipelineStack/Prod/MyService` etc).
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
To deploy every stack in the app, use the `--all` flag or the wildcard `*`.
|
|
295
|
+
If your app has stacks inside stages, keep in mind how far each wildcard reaches:
|
|
296
|
+
|
|
297
|
+
- `*` matches one level, so it only picks up top-level stacks (same as `--all`)
|
|
298
|
+
- `**` matches any number of levels, so it picks up stacks at every depth
|
|
299
|
+
|
|
300
|
+
You can also combine these patterns.
|
|
301
|
+
For example, to deploy everything inside the `Prod` stage of a pipeline:
|
|
302
|
+
|
|
303
|
+
```console
|
|
304
|
+
cdk deploy 'PipelineStack/Prod/**'
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
##### Excluding stacks
|
|
308
|
+
|
|
309
|
+
Put a `!` in front of a pattern to leave those stacks out.
|
|
310
|
+
Wrap the pattern in quotes so your shell leaves the `!` alone.
|
|
311
|
+
|
|
312
|
+
Every stack except `NlbStack`:
|
|
313
|
+
|
|
314
|
+
```
|
|
315
|
+
cdk deploy '!NlbStack'
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
Everything under `Prod`, except the canary:
|
|
319
|
+
|
|
320
|
+
```
|
|
321
|
+
cdk deploy 'PipelineStack/Prod/**' '!PipelineStack/Prod/Canary'
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
CDK picks the stacks your normal patterns match, then drops the ones your `!` patterns match.
|
|
325
|
+
If you only pass `!` patterns, they apply to every stack in the app.
|
|
326
|
+
`--all` doesn't work together with patterns, so use `**` instead.
|
|
327
|
+
An excluded stack still deploys if a selected stack needs it — add `--exclusively` (`-e`) to skip dependencies.
|
|
328
|
+
And `!(...)` is shell syntax, not a CDK exclusion.
|
|
329
|
+
|
|
330
|
+
##### Deploying stacks in parallel
|
|
295
331
|
|
|
296
332
|
`--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.
|
|
297
333
|
|
package/THIRD_PARTY_LICENSES
CHANGED
|
@@ -4326,7 +4326,7 @@ The aws-cdk package includes the following third-party software/licensing:
|
|
|
4326
4326
|
|
|
4327
4327
|
----------------
|
|
4328
4328
|
|
|
4329
|
-
** @aws-sdk/core@3.
|
|
4329
|
+
** @aws-sdk/core@3.978.0 - https://www.npmjs.com/package/@aws-sdk/core/v/3.978.0 | Apache-2.0
|
|
4330
4330
|
Apache License
|
|
4331
4331
|
Version 2.0, January 2004
|
|
4332
4332
|
http://www.apache.org/licenses/
|
|
@@ -4531,7 +4531,7 @@ Apache License
|
|
|
4531
4531
|
|
|
4532
4532
|
----------------
|
|
4533
4533
|
|
|
4534
|
-
** @aws-sdk/credential-provider-cognito-identity@3.972.
|
|
4534
|
+
** @aws-sdk/credential-provider-cognito-identity@3.972.70 - https://www.npmjs.com/package/@aws-sdk/credential-provider-cognito-identity/v/3.972.70 | Apache-2.0
|
|
4535
4535
|
Apache License
|
|
4536
4536
|
Version 2.0, January 2004
|
|
4537
4537
|
http://www.apache.org/licenses/
|
|
@@ -4737,7 +4737,7 @@ Apache License
|
|
|
4737
4737
|
|
|
4738
4738
|
----------------
|
|
4739
4739
|
|
|
4740
|
-
** @aws-sdk/credential-provider-env@3.972.
|
|
4740
|
+
** @aws-sdk/credential-provider-env@3.972.71 - https://www.npmjs.com/package/@aws-sdk/credential-provider-env/v/3.972.71 | Apache-2.0
|
|
4741
4741
|
Apache License
|
|
4742
4742
|
Version 2.0, January 2004
|
|
4743
4743
|
http://www.apache.org/licenses/
|
|
@@ -4942,11 +4942,11 @@ Apache License
|
|
|
4942
4942
|
|
|
4943
4943
|
----------------
|
|
4944
4944
|
|
|
4945
|
-
** @aws-sdk/credential-provider-http@3.972.
|
|
4945
|
+
** @aws-sdk/credential-provider-http@3.972.73 - https://www.npmjs.com/package/@aws-sdk/credential-provider-http/v/3.972.73 | Apache-2.0
|
|
4946
4946
|
|
|
4947
4947
|
----------------
|
|
4948
4948
|
|
|
4949
|
-
** @aws-sdk/credential-provider-ini@3.973.
|
|
4949
|
+
** @aws-sdk/credential-provider-ini@3.973.16 - https://www.npmjs.com/package/@aws-sdk/credential-provider-ini/v/3.973.16 | Apache-2.0
|
|
4950
4950
|
Apache License
|
|
4951
4951
|
Version 2.0, January 2004
|
|
4952
4952
|
http://www.apache.org/licenses/
|
|
@@ -5151,11 +5151,11 @@ Apache License
|
|
|
5151
5151
|
|
|
5152
5152
|
----------------
|
|
5153
5153
|
|
|
5154
|
-
** @aws-sdk/credential-provider-login@3.972.
|
|
5154
|
+
** @aws-sdk/credential-provider-login@3.972.78 - https://www.npmjs.com/package/@aws-sdk/credential-provider-login/v/3.972.78 | Apache-2.0
|
|
5155
5155
|
|
|
5156
5156
|
----------------
|
|
5157
5157
|
|
|
5158
|
-
** @aws-sdk/credential-provider-node@3.972.
|
|
5158
|
+
** @aws-sdk/credential-provider-node@3.972.83 - https://www.npmjs.com/package/@aws-sdk/credential-provider-node/v/3.972.83 | Apache-2.0
|
|
5159
5159
|
Apache License
|
|
5160
5160
|
Version 2.0, January 2004
|
|
5161
5161
|
http://www.apache.org/licenses/
|
|
@@ -5360,7 +5360,7 @@ Apache License
|
|
|
5360
5360
|
|
|
5361
5361
|
----------------
|
|
5362
5362
|
|
|
5363
|
-
** @aws-sdk/credential-provider-process@3.972.
|
|
5363
|
+
** @aws-sdk/credential-provider-process@3.972.71 - https://www.npmjs.com/package/@aws-sdk/credential-provider-process/v/3.972.71 | Apache-2.0
|
|
5364
5364
|
Apache License
|
|
5365
5365
|
Version 2.0, January 2004
|
|
5366
5366
|
http://www.apache.org/licenses/
|
|
@@ -5565,7 +5565,7 @@ Apache License
|
|
|
5565
5565
|
|
|
5566
5566
|
----------------
|
|
5567
5567
|
|
|
5568
|
-
** @aws-sdk/credential-provider-sso@3.973.
|
|
5568
|
+
** @aws-sdk/credential-provider-sso@3.973.15 - https://www.npmjs.com/package/@aws-sdk/credential-provider-sso/v/3.973.15 | Apache-2.0
|
|
5569
5569
|
Apache License
|
|
5570
5570
|
Version 2.0, January 2004
|
|
5571
5571
|
http://www.apache.org/licenses/
|
|
@@ -5770,7 +5770,7 @@ Apache License
|
|
|
5770
5770
|
|
|
5771
5771
|
----------------
|
|
5772
5772
|
|
|
5773
|
-
** @aws-sdk/credential-provider-web-identity@3.972.
|
|
5773
|
+
** @aws-sdk/credential-provider-web-identity@3.972.77 - https://www.npmjs.com/package/@aws-sdk/credential-provider-web-identity/v/3.972.77 | Apache-2.0
|
|
5774
5774
|
Apache License
|
|
5775
5775
|
Version 2.0, January 2004
|
|
5776
5776
|
http://www.apache.org/licenses/
|
|
@@ -5975,7 +5975,7 @@ Apache License
|
|
|
5975
5975
|
|
|
5976
5976
|
----------------
|
|
5977
5977
|
|
|
5978
|
-
** @aws-sdk/credential-providers@3.
|
|
5978
|
+
** @aws-sdk/credential-providers@3.1130.0 - https://www.npmjs.com/package/@aws-sdk/credential-providers/v/3.1130.0 | Apache-2.0
|
|
5979
5979
|
Apache License
|
|
5980
5980
|
Version 2.0, January 2004
|
|
5981
5981
|
http://www.apache.org/licenses/
|
|
@@ -7207,7 +7207,7 @@ Apache License
|
|
|
7207
7207
|
|
|
7208
7208
|
----------------
|
|
7209
7209
|
|
|
7210
|
-
** @aws-sdk/nested-clients@3.997.
|
|
7210
|
+
** @aws-sdk/nested-clients@3.997.45 - https://www.npmjs.com/package/@aws-sdk/nested-clients/v/3.997.45 | Apache-2.0
|
|
7211
7211
|
|
|
7212
7212
|
----------------
|
|
7213
7213
|
|
|
@@ -7417,7 +7417,7 @@ Apache License
|
|
|
7417
7417
|
|
|
7418
7418
|
----------------
|
|
7419
7419
|
|
|
7420
|
-
** @aws-sdk/token-providers@3.
|
|
7420
|
+
** @aws-sdk/token-providers@3.1129.0 - https://www.npmjs.com/package/@aws-sdk/token-providers/v/3.1129.0 | Apache-2.0
|
|
7421
7421
|
Apache License
|
|
7422
7422
|
Version 2.0, January 2004
|
|
7423
7423
|
http://www.apache.org/licenses/
|
|
@@ -10936,7 +10936,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
10936
10936
|
|
|
10937
10937
|
----------------
|
|
10938
10938
|
|
|
10939
|
-
** cdk-from-cfn@0.
|
|
10939
|
+
** cdk-from-cfn@0.331.0 - https://www.npmjs.com/package/cdk-from-cfn/v/0.331.0 | MIT OR Apache-2.0
|
|
10940
10940
|
|
|
10941
10941
|
----------------
|
|
10942
10942
|
|
package/build-info.json
CHANGED
package/db.json.gz
CHANGED
|
Binary file
|
package/lib/cli/cdk-toolkit.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequireApproval } from '@aws-cdk/cloud-assembly-schema';
|
|
2
|
-
import type { DeploymentMethod, DiagnoseOptions, PublishAssetsOptions, StackSelector, ToolkitOptions, ValidateOptions } from '@aws-cdk/toolkit-lib';
|
|
2
|
+
import type { DeploymentMethod, DiagnoseOptions, PublishAssetsOptions, StackSelector, SynthOptions as ToolkitSynthOptions, ToolkitOptions, ValidateOptions } from '@aws-cdk/toolkit-lib';
|
|
3
3
|
import { Toolkit } from '@aws-cdk/toolkit-lib';
|
|
4
4
|
import { CliIoHost } from './io-host';
|
|
5
5
|
import type { Configuration } from './user-configuration';
|
|
@@ -152,6 +152,14 @@ export declare class CdkToolkit {
|
|
|
152
152
|
* should be supplied, where the templates will be written.
|
|
153
153
|
*/
|
|
154
154
|
synth(options: SynthOptions): Promise<any>;
|
|
155
|
+
/**
|
|
156
|
+
* Continuously synthesize the project, re-synthesizing on every file change.
|
|
157
|
+
* Never deploys, and never prints templates to stdout.
|
|
158
|
+
*
|
|
159
|
+
* The files to observe are configured with the "watch" key of `cdk.json`,
|
|
160
|
+
* exactly like `cdk deploy --watch`.
|
|
161
|
+
*/
|
|
162
|
+
synthWatch(options: ToolkitSynthOptions): Promise<void>;
|
|
155
163
|
/**
|
|
156
164
|
* Bootstrap the CDK Toolkit stack in the accounts used by the specified stack(s).
|
|
157
165
|
*
|