aws-cdk 2.1137.0 → 2.1139.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 +28 -1
- package/THIRD_PARTY_LICENSES +126 -36
- package/build-info.json +2 -2
- package/db.json.gz +0 -0
- package/docs/deploy-architecture.md +3 -3
- package/lib/api/cloud-assembly.d.ts +0 -1
- package/lib/api/cloud-assembly.js +1 -2
- package/lib/cli/cdk-toolkit.d.ts +68 -25
- package/lib/cli/cdk-toolkit.js +211 -152
- package/lib/cli/cli-config.js +4 -3
- package/lib/cli/cli-type-registry.json +8 -2
- package/lib/cli/cli.js +70 -32
- package/lib/cli/convert-to-user-input.js +3 -1
- package/lib/cli/io-host/cli-io-host.d.ts +51 -9
- package/lib/cli/io-host/cli-io-host.js +115 -7
- package/lib/cli/parse-command-line-arguments.js +9 -3
- package/lib/cli/proxy-agent.d.ts +9 -0
- package/lib/cli/proxy-agent.js +30 -1
- package/lib/cli/telemetry/library-version.js +3 -5
- package/lib/cli/telemetry/session.d.ts +1 -0
- package/lib/cli/telemetry/session.js +25 -13
- package/lib/cli/user-configuration.d.ts +6 -0
- package/lib/cli/user-configuration.js +13 -1
- package/lib/cli/user-input.d.ts +6 -0
- package/lib/cli/user-input.js +1 -1
- package/lib/cli/util/guess-agent.js +46 -20
- package/lib/commands/context.d.ts +7 -0
- package/lib/commands/context.js +9 -4
- package/lib/commands/deploy.d.ts +8 -1
- package/lib/commands/deploy.js +8 -1
- package/lib/commands/docs.js +6 -38
- package/lib/commands/flags/operations.d.ts +2 -0
- package/lib/commands/flags/operations.js +18 -8
- package/lib/commands/init/init.d.ts +1 -1
- package/lib/commands/init/init.js +17 -23
- package/lib/commands/init/os.d.ts +3 -2
- package/lib/commands/init/os.js +18 -110
- package/lib/commands/migrate.js +8 -5
- package/lib/cxapp/cloud-executable.d.ts +2 -2
- package/lib/cxapp/cloud-executable.js +11 -11
- package/lib/cxapp/index.d.ts +0 -1
- package/lib/cxapp/index.js +1 -2
- package/lib/index.js +3631 -2425
- package/lib/index_bg.wasm +0 -0
- package/lib/init-templates/.init-version.json +1 -1
- package/lib/private/tools.d.ts +1 -0
- package/lib/private/tools.js +2 -1
- package/package.json +16 -15
- package/lib/cxapp/cloud-assembly.d.ts +0 -79
- package/lib/cxapp/cloud-assembly.js +0 -142
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<!--END STABILITY BANNER-->
|
|
11
11
|
|
|
12
|
-
The AWS CDK Toolkit provides the `cdk` command-line interface that can be used to work with AWS CDK applications. This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
|
12
|
+
The AWS CDK Toolkit CLI provides the `cdk` command-line interface that can be used to work with AWS CDK applications. This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
|
13
13
|
|
|
14
14
|
| Command | Description |
|
|
15
15
|
| ------------------------------------------- | --------------------------------------------------------------------------------- |
|
|
@@ -199,6 +199,17 @@ $ cdk diff --app='node bin/main.js' MyStackName
|
|
|
199
199
|
$ cdk diff --app='node bin/main.js' MyStackName --template=path/to/template.yml
|
|
200
200
|
```
|
|
201
201
|
|
|
202
|
+
The stack header shows the environment the stack will be deployed to. For environment-agnostic
|
|
203
|
+
stacks this is the resolved account and region, not `unknown-account`/`unknown-region`. It is
|
|
204
|
+
omitted when diffing against a local template with `--template`, which does not contact AWS.
|
|
205
|
+
|
|
206
|
+
```console
|
|
207
|
+
$ cdk diff --app='node bin/main.js' MyStackName
|
|
208
|
+
Stack MyStackName (aws://123456789012/us-east-1)
|
|
209
|
+
Resources
|
|
210
|
+
[~] AWS::S3::Bucket MyBucket
|
|
211
|
+
```
|
|
212
|
+
|
|
202
213
|
The `quiet` flag can also be passed to the `cdk diff` command. Assuming there are no differences detected the output to the console will **not** contain strings such as the *Stack* `MyStackName` and `There were no differences`.
|
|
203
214
|
|
|
204
215
|
```console
|
|
@@ -406,6 +417,18 @@ Set the `--progress` flag to request the complete history which includes all Clo
|
|
|
406
417
|
$ cdk deploy --progress events
|
|
407
418
|
```
|
|
408
419
|
|
|
420
|
+
Set the `--progress` flag to `errors-only` to print nothing during the deployment, except errors:
|
|
421
|
+
|
|
422
|
+
```console
|
|
423
|
+
$ cdk deploy --progress errors-only
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
The `errors-only` mode is recommended for AI agents and other automated consumers, where progress
|
|
427
|
+
updates are not useful and consume tokens. If the CLI detects it is being run by an AI agent
|
|
428
|
+
and no progress preference is configured, it defaults to `errors-only` automatically. Pass an
|
|
429
|
+
explicit `--progress`, set the `progress` key in `cdk.json`, or enable verbose logging (`-v`)
|
|
430
|
+
to override the detection.
|
|
431
|
+
|
|
409
432
|
Alternatively, the `progress` key can be specified in the project config (`cdk.json`).
|
|
410
433
|
|
|
411
434
|
The following shows a sample `cdk.json` where the `progress` key is set to *events*.
|
|
@@ -849,6 +872,10 @@ To import an existing resource to a CDK stack, follow the following steps:
|
|
|
849
872
|
5. When `cdk import` reports success, the resource is managed by CDK. Any subsequent
|
|
850
873
|
changes in the construct configuration will be reflected on the resource.
|
|
851
874
|
|
|
875
|
+
Use `--notification-arns` to specify ARNs of SNS topics that CloudFormation will
|
|
876
|
+
notify with stack related events during the import. These are added to ARNs
|
|
877
|
+
specified with the `notificationArns` stack property.
|
|
878
|
+
|
|
852
879
|
NOTE: You can also import existing resources by passing `--import-existing-resources` to `cdk deploy`.
|
|
853
880
|
This parameter only works for resources that support custom physical names,
|
|
854
881
|
such as S3 Buckets, DynamoDB Tables, etc...
|
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.977.
|
|
4329
|
+
** @aws-sdk/core@3.977.8 - https://www.npmjs.com/package/@aws-sdk/core/v/3.977.8 | 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.68 - https://www.npmjs.com/package/@aws-sdk/credential-provider-cognito-identity/v/3.972.68 | 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.69 - https://www.npmjs.com/package/@aws-sdk/credential-provider-env/v/3.972.69 | 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.71 - https://www.npmjs.com/package/@aws-sdk/credential-provider-http/v/3.972.71 | 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.14 - https://www.npmjs.com/package/@aws-sdk/credential-provider-ini/v/3.973.14 | 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.76 - https://www.npmjs.com/package/@aws-sdk/credential-provider-login/v/3.972.76 | 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.80 - https://www.npmjs.com/package/@aws-sdk/credential-provider-node/v/3.972.80 | 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.69 - https://www.npmjs.com/package/@aws-sdk/credential-provider-process/v/3.972.69 | 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.13 - https://www.npmjs.com/package/@aws-sdk/credential-provider-sso/v/3.973.13 | 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.75 - https://www.npmjs.com/package/@aws-sdk/credential-provider-web-identity/v/3.972.75 | 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.1115.0 - https://www.npmjs.com/package/@aws-sdk/credential-providers/v/3.1115.0 | Apache-2.0
|
|
5979
5979
|
Apache License
|
|
5980
5980
|
Version 2.0, January 2004
|
|
5981
5981
|
http://www.apache.org/licenses/
|
|
@@ -7207,11 +7207,11 @@ Apache License
|
|
|
7207
7207
|
|
|
7208
7208
|
----------------
|
|
7209
7209
|
|
|
7210
|
-
** @aws-sdk/nested-clients@3.997.
|
|
7210
|
+
** @aws-sdk/nested-clients@3.997.43 - https://www.npmjs.com/package/@aws-sdk/nested-clients/v/3.997.43 | Apache-2.0
|
|
7211
7211
|
|
|
7212
7212
|
----------------
|
|
7213
7213
|
|
|
7214
|
-
** @aws-sdk/signature-v4-multi-region@3.996.
|
|
7214
|
+
** @aws-sdk/signature-v4-multi-region@3.996.45 - https://www.npmjs.com/package/@aws-sdk/signature-v4-multi-region/v/3.996.45 | Apache-2.0
|
|
7215
7215
|
Apache License
|
|
7216
7216
|
Version 2.0, January 2004
|
|
7217
7217
|
http://www.apache.org/licenses/
|
|
@@ -7417,7 +7417,7 @@ Apache License
|
|
|
7417
7417
|
|
|
7418
7418
|
----------------
|
|
7419
7419
|
|
|
7420
|
-
** @aws-sdk/token-providers@3.
|
|
7420
|
+
** @aws-sdk/token-providers@3.1111.0 - https://www.npmjs.com/package/@aws-sdk/token-providers/v/3.1111.0 | Apache-2.0
|
|
7421
7421
|
Apache License
|
|
7422
7422
|
Version 2.0, January 2004
|
|
7423
7423
|
http://www.apache.org/licenses/
|
|
@@ -7622,7 +7622,7 @@ Apache License
|
|
|
7622
7622
|
|
|
7623
7623
|
----------------
|
|
7624
7624
|
|
|
7625
|
-
** @aws-sdk/xml-builder@3.972.
|
|
7625
|
+
** @aws-sdk/xml-builder@3.972.39 - https://www.npmjs.com/package/@aws-sdk/xml-builder/v/3.972.39 | Apache-2.0
|
|
7626
7626
|
Apache License
|
|
7627
7627
|
Version 2.0, January 2004
|
|
7628
7628
|
http://www.apache.org/licenses/
|
|
@@ -8361,7 +8361,7 @@ Apache License
|
|
|
8361
8361
|
|
|
8362
8362
|
----------------
|
|
8363
8363
|
|
|
8364
|
-
** @smithy/core@3.
|
|
8364
|
+
** @smithy/core@3.33.3 - https://www.npmjs.com/package/@smithy/core/v/3.33.3 | Apache-2.0
|
|
8365
8365
|
Apache License
|
|
8366
8366
|
Version 2.0, January 2004
|
|
8367
8367
|
http://www.apache.org/licenses/
|
|
@@ -10208,7 +10208,7 @@ Apache License
|
|
|
10208
10208
|
|
|
10209
10209
|
----------------
|
|
10210
10210
|
|
|
10211
|
-
** @smithy/types@4.
|
|
10211
|
+
** @smithy/types@4.17.2 - https://www.npmjs.com/package/@smithy/types/v/4.17.2 | Apache-2.0
|
|
10212
10212
|
Apache License
|
|
10213
10213
|
Version 2.0, January 2004
|
|
10214
10214
|
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.325.0 - https://www.npmjs.com/package/cdk-from-cfn/v/0.325.0 | MIT OR Apache-2.0
|
|
10940
10940
|
|
|
10941
10941
|
----------------
|
|
10942
10942
|
|
|
@@ -11037,6 +11037,32 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
11037
11037
|
OTHER DEALINGS IN THE SOFTWARE.
|
|
11038
11038
|
|
|
11039
11039
|
|
|
11040
|
+
----------------
|
|
11041
|
+
|
|
11042
|
+
** cross-spawn@7.0.6 - https://www.npmjs.com/package/cross-spawn/v/7.0.6 | MIT
|
|
11043
|
+
The MIT License (MIT)
|
|
11044
|
+
|
|
11045
|
+
Copyright (c) 2018 Made With MOXY Lda <hello@moxy.studio>
|
|
11046
|
+
|
|
11047
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11048
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11049
|
+
in the Software without restriction, including without limitation the rights
|
|
11050
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11051
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11052
|
+
furnished to do so, subject to the following conditions:
|
|
11053
|
+
|
|
11054
|
+
The above copyright notice and this permission notice shall be included in
|
|
11055
|
+
all copies or substantial portions of the Software.
|
|
11056
|
+
|
|
11057
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11058
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
11059
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
11060
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
11061
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
11062
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
11063
|
+
THE SOFTWARE.
|
|
11064
|
+
|
|
11065
|
+
|
|
11040
11066
|
----------------
|
|
11041
11067
|
|
|
11042
11068
|
** data-uri-to-buffer@6.0.2 - https://www.npmjs.com/package/data-uri-to-buffer/v/6.0.2 | MIT
|
|
@@ -11692,6 +11718,26 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
11692
11718
|
THE SOFTWARE.
|
|
11693
11719
|
|
|
11694
11720
|
|
|
11721
|
+
----------------
|
|
11722
|
+
|
|
11723
|
+
** isexe@2.0.0 - https://www.npmjs.com/package/isexe/v/2.0.0 | ISC
|
|
11724
|
+
The ISC License
|
|
11725
|
+
|
|
11726
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
11727
|
+
|
|
11728
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
11729
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
11730
|
+
copyright notice and this permission notice appear in all copies.
|
|
11731
|
+
|
|
11732
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
11733
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11734
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
11735
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
11736
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
11737
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
11738
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
11739
|
+
|
|
11740
|
+
|
|
11695
11741
|
----------------
|
|
11696
11742
|
|
|
11697
11743
|
** json-source-map@0.6.1 - https://www.npmjs.com/package/json-source-map/v/0.6.1 | MIT
|
|
@@ -12133,6 +12179,20 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
12133
12179
|
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.
|
|
12134
12180
|
|
|
12135
12181
|
|
|
12182
|
+
----------------
|
|
12183
|
+
|
|
12184
|
+
** path-key@3.1.1 - https://www.npmjs.com/package/path-key/v/3.1.1 | MIT
|
|
12185
|
+
MIT License
|
|
12186
|
+
|
|
12187
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
12188
|
+
|
|
12189
|
+
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:
|
|
12190
|
+
|
|
12191
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12192
|
+
|
|
12193
|
+
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.
|
|
12194
|
+
|
|
12195
|
+
|
|
12136
12196
|
----------------
|
|
12137
12197
|
|
|
12138
12198
|
** picomatch@2.3.2 - https://www.npmjs.com/package/picomatch/v/2.3.2 | MIT
|
|
@@ -12470,6 +12530,34 @@ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
|
12470
12530
|
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
12471
12531
|
|
|
12472
12532
|
|
|
12533
|
+
----------------
|
|
12534
|
+
|
|
12535
|
+
** shebang-command@2.0.0 - https://www.npmjs.com/package/shebang-command/v/2.0.0 | MIT
|
|
12536
|
+
MIT License
|
|
12537
|
+
|
|
12538
|
+
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (github.com/kevva)
|
|
12539
|
+
|
|
12540
|
+
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:
|
|
12541
|
+
|
|
12542
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12543
|
+
|
|
12544
|
+
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.
|
|
12545
|
+
|
|
12546
|
+
|
|
12547
|
+
----------------
|
|
12548
|
+
|
|
12549
|
+
** shebang-regex@3.0.0 - https://www.npmjs.com/package/shebang-regex/v/3.0.0 | MIT
|
|
12550
|
+
MIT License
|
|
12551
|
+
|
|
12552
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
12553
|
+
|
|
12554
|
+
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:
|
|
12555
|
+
|
|
12556
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12557
|
+
|
|
12558
|
+
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.
|
|
12559
|
+
|
|
12560
|
+
|
|
12473
12561
|
----------------
|
|
12474
12562
|
|
|
12475
12563
|
** slice-ansi@4.0.0 - https://www.npmjs.com/package/slice-ansi/v/4.0.0 | MIT
|
|
@@ -12594,24 +12682,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
12594
12682
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
12595
12683
|
|
|
12596
12684
|
|
|
12597
|
-
----------------
|
|
12598
|
-
|
|
12599
|
-
** split2@4.2.0 - https://www.npmjs.com/package/split2/v/4.2.0 | ISC
|
|
12600
|
-
Copyright (c) 2014-2018, Matteo Collina <hello@matteocollina.com>
|
|
12601
|
-
|
|
12602
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
12603
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
12604
|
-
copyright notice and this permission notice appear in all copies.
|
|
12605
|
-
|
|
12606
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
12607
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
12608
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12609
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
12610
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
12611
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
12612
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
12685
|
----------------
|
|
12616
12686
|
|
|
12617
12687
|
** string-width@4.2.3 - https://www.npmjs.com/package/string-width/v/4.2.3 | MIT
|
|
@@ -12848,6 +12918,26 @@ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
|
12848
12918
|
THIS SOFTWARE.
|
|
12849
12919
|
|
|
12850
12920
|
|
|
12921
|
+
----------------
|
|
12922
|
+
|
|
12923
|
+
** which@2.0.2 - https://www.npmjs.com/package/which/v/2.0.2 | ISC
|
|
12924
|
+
The ISC License
|
|
12925
|
+
|
|
12926
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
12927
|
+
|
|
12928
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
12929
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
12930
|
+
copyright notice and this permission notice appear in all copies.
|
|
12931
|
+
|
|
12932
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
12933
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
12934
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12935
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
12936
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
12937
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
12938
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
12939
|
+
|
|
12940
|
+
|
|
12851
12941
|
----------------
|
|
12852
12942
|
|
|
12853
12943
|
** wrap-ansi@6.2.0 - https://www.npmjs.com/package/wrap-ansi/v/6.2.0 | MIT
|
package/build-info.json
CHANGED
package/db.json.gz
CHANGED
|
Binary file
|
|
@@ -15,7 +15,7 @@ graph TD
|
|
|
15
15
|
|
|
16
16
|
%% Deploy Method
|
|
17
17
|
n4["cdk-toolkit.ts: CdkToolkit.deploy()"]
|
|
18
|
-
n5["cdk-toolkit.ts:
|
|
18
|
+
n5["cdk-toolkit.ts: CdkToolkit.deploy()<br/>stack selection"]
|
|
19
19
|
n6["Check if synthesis needed"]
|
|
20
20
|
|
|
21
21
|
%% Synthesis Process
|
|
@@ -31,8 +31,8 @@ graph TD
|
|
|
31
31
|
n13["Return CloudAssembly object"]
|
|
32
32
|
|
|
33
33
|
%% Stack Selection
|
|
34
|
-
n14["
|
|
35
|
-
n15["
|
|
34
|
+
n14["stack-assembly.ts (toolkit-lib):<br/>assembly.selectStacksV2()"]
|
|
35
|
+
n15["cdk-toolkit.ts:<br/>validateStacks()"]
|
|
36
36
|
n16["Return StackCollection"]
|
|
37
37
|
|
|
38
38
|
%% Asset Processing
|
|
@@ -2,4 +2,3 @@ export * from '../../../@aws-cdk/toolkit-lib/lib/api/cloud-assembly';
|
|
|
2
2
|
export * from '../../../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private';
|
|
3
3
|
export * from '../../../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/environment';
|
|
4
4
|
export * from '../../../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/stack-collection';
|
|
5
|
-
export * from '../../../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/stack-assembly';
|
|
@@ -19,5 +19,4 @@ __exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/cloud-assembly"), ex
|
|
|
19
19
|
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private"), exports);
|
|
20
20
|
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/environment"), exports);
|
|
21
21
|
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/stack-collection"), exports);
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvdWQtYXNzZW1ibHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjbG91ZC1hc3NlbWJseS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsZ0RBQWdEO0FBQ2hELHVGQUFxRTtBQUNyRSwrRkFBNkU7QUFDN0UsbUdBQWlGO0FBQ2pGLHdHQUFzRjtBQUN0RixzR0FBb0YiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBpbXBvcnQvbm8tcmVsYXRpdmUtcGFja2FnZXMgKi9cbmV4cG9ydCAqIGZyb20gJy4uLy4uLy4uL0Bhd3MtY2RrL3Rvb2xraXQtbGliL2xpYi9hcGkvY2xvdWQtYXNzZW1ibHknO1xuZXhwb3J0ICogZnJvbSAnLi4vLi4vLi4vQGF3cy1jZGsvdG9vbGtpdC1saWIvbGliL2FwaS9jbG91ZC1hc3NlbWJseS9wcml2YXRlJztcbmV4cG9ydCAqIGZyb20gJy4uLy4uLy4uL0Bhd3MtY2RrL3Rvb2xraXQtbGliL2xpYi9hcGkvY2xvdWQtYXNzZW1ibHkvZW52aXJvbm1lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi4vLi4vLi4vQGF3cy1jZGsvdG9vbGtpdC1saWIvbGliL2FwaS9jbG91ZC1hc3NlbWJseS9zdGFjay1jb2xsZWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4uLy4uLy4uL0Bhd3MtY2RrL3Rvb2xraXQtbGliL2xpYi9hcGkvY2xvdWQtYXNzZW1ibHkvc3RhY2stYXNzZW1ibHknO1xuIl19
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvdWQtYXNzZW1ibHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjbG91ZC1hc3NlbWJseS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsZ0RBQWdEO0FBQ2hELHVGQUFxRTtBQUNyRSwrRkFBNkU7QUFDN0UsbUdBQWlGO0FBQ2pGLHdHQUFzRiIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIGltcG9ydC9uby1yZWxhdGl2ZS1wYWNrYWdlcyAqL1xuZXhwb3J0ICogZnJvbSAnLi4vLi4vLi4vQGF3cy1jZGsvdG9vbGtpdC1saWIvbGliL2FwaS9jbG91ZC1hc3NlbWJseSc7XG5leHBvcnQgKiBmcm9tICcuLi8uLi8uLi9AYXdzLWNkay90b29sa2l0LWxpYi9saWIvYXBpL2Nsb3VkLWFzc2VtYmx5L3ByaXZhdGUnO1xuZXhwb3J0ICogZnJvbSAnLi4vLi4vLi4vQGF3cy1jZGsvdG9vbGtpdC1saWIvbGliL2FwaS9jbG91ZC1hc3NlbWJseS9lbnZpcm9ubWVudCc7XG5leHBvcnQgKiBmcm9tICcuLi8uLi8uLi9AYXdzLWNkay90b29sa2l0LWxpYi9saWIvYXBpL2Nsb3VkLWFzc2VtYmx5L3N0YWNrLWNvbGxlY3Rpb24nO1xuIl19
|
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, ToolkitOptions, ValidateOptions } from '@aws-cdk/toolkit-lib';
|
|
2
|
+
import type { DeploymentMethod, DiagnoseOptions, PublishAssetsOptions, StackSelector, 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';
|
|
@@ -7,11 +7,12 @@ import type { IoHelper } from '../../lib/api-private';
|
|
|
7
7
|
import { CloudWatchLogEventMonitor } from '../api';
|
|
8
8
|
import type { SdkProvider } from '../api/aws-auth';
|
|
9
9
|
import type { BootstrapEnvironmentOptions } from '../api/bootstrap';
|
|
10
|
+
import type { StackAssembly } from '../api/cloud-assembly';
|
|
10
11
|
import type { Deployments } from '../api/deployments';
|
|
11
12
|
import { type Tag } from '../api/tags';
|
|
12
13
|
import { StackActivityProgress } from '../commands/deploy';
|
|
13
14
|
import type { FromScan } from '../commands/migrate';
|
|
14
|
-
import type {
|
|
15
|
+
import type { CloudExecutable } from '../cxapp';
|
|
15
16
|
export interface CdkToolkitProps {
|
|
16
17
|
/**
|
|
17
18
|
* The Cloud Executable
|
|
@@ -150,7 +151,7 @@ export declare class CdkToolkit {
|
|
|
150
151
|
* OUTPUT: If more than one stack ends up being selected, an output directory
|
|
151
152
|
* should be supplied, where the templates will be written.
|
|
152
153
|
*/
|
|
153
|
-
synth(
|
|
154
|
+
synth(options: SynthOptions): Promise<any>;
|
|
154
155
|
/**
|
|
155
156
|
* Bootstrap the CDK Toolkit stack in the accounts used by the specified stack(s).
|
|
156
157
|
*
|
|
@@ -171,19 +172,32 @@ export declare class CdkToolkit {
|
|
|
171
172
|
*/
|
|
172
173
|
migrate(options: MigrateOptions): Promise<void>;
|
|
173
174
|
refactor(options: RefactorOptions): Promise<number>;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
/**
|
|
176
|
+
* Select the stacks that `synth` and `diff` operate on
|
|
177
|
+
*
|
|
178
|
+
* With patterns: match them (failing if nothing matches), expanding to
|
|
179
|
+
* upstream dependencies unless `exclusively` is set. Without patterns: all
|
|
180
|
+
* top-level stacks, exactly — the historic default selection never expands
|
|
181
|
+
* to dependencies, regardless of `exclusively`. A stage-only app has no
|
|
182
|
+
* top-level stacks, which selects nothing and is not an error — but an app
|
|
183
|
+
* without any stacks at all still is. No single selection strategy covers
|
|
184
|
+
* this combination: `MAIN_ASSEMBLY` rejects stage-only apps (as
|
|
185
|
+
* `deploy --all` must keep doing) and `ALL_STACKS` would wrongly include
|
|
186
|
+
* the stacks inside stages.
|
|
187
|
+
*/
|
|
188
|
+
private selectTopLevelOrMatchingStacks;
|
|
177
189
|
/**
|
|
178
190
|
* Validate the stacks for errors and warnings according to the CLI's current settings
|
|
179
191
|
*/
|
|
180
192
|
private validateStacks;
|
|
181
193
|
private validateMetadataFailAt;
|
|
182
194
|
/**
|
|
183
|
-
*
|
|
195
|
+
* Converts the toolkit's `CloudExecutable` into `StackAssembly`.
|
|
196
|
+
*
|
|
197
|
+
* @param cacheCloudAssembly - to cache the assembly, defaults to `true`
|
|
198
|
+
* @returns the converted `StackAssembly`
|
|
184
199
|
*/
|
|
185
|
-
|
|
186
|
-
assembly(cacheCloudAssembly?: boolean): Promise<CloudAssembly>;
|
|
200
|
+
assembly(cacheCloudAssembly?: boolean): Promise<StackAssembly>;
|
|
187
201
|
private patternsArrayForWatch;
|
|
188
202
|
private invokeDeployFromWatch;
|
|
189
203
|
/**
|
|
@@ -191,6 +205,39 @@ export declare class CdkToolkit {
|
|
|
191
205
|
*/
|
|
192
206
|
private removePublishedAssets;
|
|
193
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Options for the synth command
|
|
210
|
+
*/
|
|
211
|
+
export interface SynthOptions {
|
|
212
|
+
/**
|
|
213
|
+
* Stack names to synthesize
|
|
214
|
+
*/
|
|
215
|
+
readonly stackNames: string[];
|
|
216
|
+
/**
|
|
217
|
+
* Only select the given stacks, without expanding to their upstream dependencies
|
|
218
|
+
*
|
|
219
|
+
* @default false
|
|
220
|
+
*/
|
|
221
|
+
readonly exclusively?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Do not print the template to stdout
|
|
224
|
+
*
|
|
225
|
+
* @default false
|
|
226
|
+
*/
|
|
227
|
+
readonly quiet?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Additionally validate stacks that have the `validateOnSynth` flag set
|
|
230
|
+
*
|
|
231
|
+
* @default false
|
|
232
|
+
*/
|
|
233
|
+
readonly autoValidate?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Print the template as JSON instead of YAML
|
|
236
|
+
*
|
|
237
|
+
* @default false
|
|
238
|
+
*/
|
|
239
|
+
readonly json?: boolean;
|
|
240
|
+
}
|
|
194
241
|
/**
|
|
195
242
|
* Options for the diff command
|
|
196
243
|
*/
|
|
@@ -323,12 +370,6 @@ export interface CliValidateOptions extends ValidateOptions {
|
|
|
323
370
|
readonly watch?: boolean;
|
|
324
371
|
}
|
|
325
372
|
interface WatchOptions extends Omit<CfnDeployOptions, 'execute'> {
|
|
326
|
-
/**
|
|
327
|
-
* Only select the given stack
|
|
328
|
-
*
|
|
329
|
-
* @default false
|
|
330
|
-
*/
|
|
331
|
-
exclusively?: boolean;
|
|
332
373
|
/**
|
|
333
374
|
* Reuse the assets with the given asset IDs
|
|
334
375
|
*/
|
|
@@ -452,12 +493,6 @@ export interface DeployOptions extends CfnDeployOptions, WatchOptions {
|
|
|
452
493
|
* @default AssetBuildTime.ALL_BEFORE_DEPLOY
|
|
453
494
|
*/
|
|
454
495
|
readonly assetBuildTime?: AssetBuildTime;
|
|
455
|
-
/**
|
|
456
|
-
* Whether to deploy if the app contains no stacks.
|
|
457
|
-
*
|
|
458
|
-
* @default false
|
|
459
|
-
*/
|
|
460
|
-
readonly ignoreNoStacks?: boolean;
|
|
461
496
|
/**
|
|
462
497
|
* Whether to use CloudFormation express mode for the current deployment
|
|
463
498
|
*/
|
|
@@ -505,6 +540,18 @@ export interface OrphanOptions {
|
|
|
505
540
|
readonly toolkitStackName?: string;
|
|
506
541
|
}
|
|
507
542
|
export interface ImportOptions extends CfnDeployOptions {
|
|
543
|
+
/**
|
|
544
|
+
* ARNs of SNS topics that CloudFormation will notify with stack related events.
|
|
545
|
+
*
|
|
546
|
+
* The following semantics apply (dictated by the SDK):
|
|
547
|
+
*
|
|
548
|
+
* - undefined => cdk ignores it, as if it wasn't supported (allows external management).
|
|
549
|
+
* - []: => cdk manages it, and the user wants to wipe it out.
|
|
550
|
+
* - ['arn-1'] => cdk manages it, and the user wants to set it to ['arn-1'].
|
|
551
|
+
*
|
|
552
|
+
* @default - No notifications
|
|
553
|
+
*/
|
|
554
|
+
readonly notificationArns?: string[];
|
|
508
555
|
/**
|
|
509
556
|
* Build a physical resource mapping and write it to the given file, without performing the actual import operation
|
|
510
557
|
*
|
|
@@ -535,10 +582,6 @@ export interface DestroyOptions {
|
|
|
535
582
|
* Criteria for selecting stacks to deploy
|
|
536
583
|
*/
|
|
537
584
|
selector: StackSelector;
|
|
538
|
-
/**
|
|
539
|
-
* Whether to exclude stacks that depend on the stacks to be deleted
|
|
540
|
-
*/
|
|
541
|
-
exclusively: boolean;
|
|
542
585
|
/**
|
|
543
586
|
* Whether to skip prompting for confirmation
|
|
544
587
|
*/
|