aws-cdk 2.1138.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 +16 -2
- package/THIRD_PARTY_LICENSES +112 -22
- 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 +56 -25
- package/lib/cli/cdk-toolkit.js +184 -147
- package/lib/cli/cli.js +68 -32
- package/lib/cli/io-host/cli-io-host.d.ts +51 -9
- package/lib/cli/io-host/cli-io-host.js +111 -5
- 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/util/guess-agent.js +46 -20
- package/lib/commands/docs.js +6 -38
- 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 +2946 -1989
- 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 +12 -11
- 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
|
|
@@ -413,7 +424,10 @@ $ cdk deploy --progress errors-only
|
|
|
413
424
|
```
|
|
414
425
|
|
|
415
426
|
The `errors-only` mode is recommended for AI agents and other automated consumers, where progress
|
|
416
|
-
updates are not useful and consume tokens.
|
|
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.
|
|
417
431
|
|
|
418
432
|
Alternatively, the `progress` key can be specified in the project config (`cdk.json`).
|
|
419
433
|
|
package/THIRD_PARTY_LICENSES
CHANGED
|
@@ -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/
|
|
@@ -8361,7 +8361,7 @@ Apache License
|
|
|
8361
8361
|
|
|
8362
8362
|
----------------
|
|
8363
8363
|
|
|
8364
|
-
** @smithy/core@3.33.
|
|
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.17.
|
|
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
|
*/
|
|
@@ -547,10 +582,6 @@ export interface DestroyOptions {
|
|
|
547
582
|
* Criteria for selecting stacks to deploy
|
|
548
583
|
*/
|
|
549
584
|
selector: StackSelector;
|
|
550
|
-
/**
|
|
551
|
-
* Whether to exclude stacks that depend on the stacks to be deleted
|
|
552
|
-
*/
|
|
553
|
-
exclusively: boolean;
|
|
554
585
|
/**
|
|
555
586
|
* Whether to skip prompting for confirmation
|
|
556
587
|
*/
|