aws-cdk 2.1119.0 → 2.1121.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 +148 -35
- package/THIRD_PARTY_LICENSES +3805 -276
- package/build-info.json +2 -2
- package/db.json.gz +0 -0
- package/lib/api/bootstrap/bootstrap-template.yaml +5 -16
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +2 -1
- package/lib/cli/cdk-toolkit.d.ts +17 -1
- package/lib/cli/cdk-toolkit.js +72 -12
- package/lib/cli/cli-config.js +27 -3
- package/lib/cli/cli-type-registry.json +35 -2
- package/lib/cli/cli.js +92 -24
- package/lib/cli/convert-to-user-input.js +22 -1
- package/lib/cli/parse-command-line-arguments.js +23 -3
- package/lib/cli/user-configuration.d.ts +3 -1
- package/lib/cli/user-configuration.js +3 -1
- package/lib/cli/user-input.d.ts +49 -1
- package/lib/cli/user-input.js +1 -1
- package/lib/cli/util/npm.js +2 -2
- package/lib/cxapp/exec.js +4 -1
- package/lib/index.js +152620 -94572
- 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/lib/init-templates/app/javascript/package.json +0 -3
- package/lib/init-templates/app/python/.template.gitignore +0 -1
- package/lib/init-templates/app/typescript/package.json +0 -3
- package/lib/init-templates/sample-app/javascript/package.json +0 -3
- package/lib/init-templates/sample-app/python/.template.gitignore +0 -1
- package/lib/init-templates/sample-app/typescript/package.json +0 -3
- package/package.json +19 -18
package/build-info.json
CHANGED
package/db.json.gz
CHANGED
|
Binary file
|
|
@@ -624,14 +624,11 @@ Resources:
|
|
|
624
624
|
Policies:
|
|
625
625
|
- PolicyDocument:
|
|
626
626
|
Statement:
|
|
627
|
-
- Sid:
|
|
627
|
+
- Sid: DeployPermissions
|
|
628
628
|
Effect: Allow
|
|
629
629
|
Action:
|
|
630
630
|
- cloudformation:CreateChangeSet
|
|
631
631
|
- cloudformation:DeleteChangeSet
|
|
632
|
-
- cloudformation:DescribeChangeSet
|
|
633
|
-
- cloudformation:DescribeStacks
|
|
634
|
-
- cloudformation:DescribeEvents
|
|
635
632
|
- cloudformation:ExecuteChangeSet
|
|
636
633
|
- cloudformation:CreateStack
|
|
637
634
|
- cloudformation:UpdateStack
|
|
@@ -681,15 +678,9 @@ Resources:
|
|
|
681
678
|
# Our CI/CD does not need DeleteStack,
|
|
682
679
|
# but we also want to use this role from the CLI,
|
|
683
680
|
# and there you can call `cdk destroy`
|
|
684
|
-
- cloudformation:DescribeStackEvents
|
|
685
|
-
- cloudformation:GetTemplate
|
|
686
681
|
- cloudformation:DeleteStack
|
|
687
682
|
- cloudformation:UpdateTerminationProtection
|
|
688
683
|
- sts:GetCallerIdentity
|
|
689
|
-
# `cdk import`
|
|
690
|
-
- cloudformation:GetTemplateSummary
|
|
691
|
-
# `cdk deploy` CloudFormation Hook annotation display on hook failure
|
|
692
|
-
- cloudformation:GetHookResult
|
|
693
684
|
Resource: "*"
|
|
694
685
|
Effect: Allow
|
|
695
686
|
- Sid: CliStagingBucket
|
|
@@ -713,14 +704,12 @@ Resources:
|
|
|
713
704
|
Action:
|
|
714
705
|
# Permissions needed to use the CDK CLI with stack refactor
|
|
715
706
|
- cloudformation:CreateStackRefactor
|
|
716
|
-
- cloudformation:DescribeStackRefactor
|
|
717
707
|
- cloudformation:ExecuteStackRefactor
|
|
718
|
-
- cloudformation:ListStackRefactorActions
|
|
719
|
-
- cloudformation:ListStackRefactors
|
|
720
|
-
- cloudformation:ListStacks
|
|
721
708
|
Resource: "*"
|
|
722
709
|
Version: '2012-10-17'
|
|
723
710
|
PolicyName: default
|
|
711
|
+
ManagedPolicyArns:
|
|
712
|
+
- Fn::Sub: "arn:${AWS::Partition}:iam::aws:policy/AWSCloudFormationReadOnlyAccess"
|
|
724
713
|
RoleName:
|
|
725
714
|
Fn::Sub: cdk-${Qualifier}-deploy-role-${AWS::AccountId}-${AWS::Region}
|
|
726
715
|
Tags:
|
|
@@ -817,7 +806,7 @@ Resources:
|
|
|
817
806
|
Name:
|
|
818
807
|
Fn::Sub: '/cdk-bootstrap/${Qualifier}/version'
|
|
819
808
|
# Also update this value below (see comment there)
|
|
820
|
-
Value: '
|
|
809
|
+
Value: '32'
|
|
821
810
|
Outputs:
|
|
822
811
|
BucketName:
|
|
823
812
|
Description: The name of the S3 bucket owned by the CDK toolkit stack
|
|
@@ -852,4 +841,4 @@ Outputs:
|
|
|
852
841
|
# {Fn::GetAtt} on an SSM Parameter is eventually consistent, and can fail with "parameter
|
|
853
842
|
# doesn't exist" even after just having been created. To reduce our deploy failure rate, we
|
|
854
843
|
# duplicate the value here and use a build-time test to ensure the two values are the same.
|
|
855
|
-
Value: '
|
|
844
|
+
Value: '32'
|
package/lib/api/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from '../../../@aws-cdk/toolkit-lib/lib/api/diff';
|
|
|
9
9
|
export * from '../../../@aws-cdk/toolkit-lib/lib/api/io';
|
|
10
10
|
export * from '../../../@aws-cdk/toolkit-lib/lib/api/logs-monitor';
|
|
11
11
|
export * from '../../../@aws-cdk/toolkit-lib/lib/api/resource-import';
|
|
12
|
+
export * from '../../../@aws-cdk/toolkit-lib/lib/api/orphan/orphaner';
|
|
12
13
|
export { RWLock, type IReadLock } from '../../../@aws-cdk/toolkit-lib/lib/api/rwlock';
|
|
13
14
|
export * from '../../../@aws-cdk/toolkit-lib/lib/api/toolkit-info';
|
|
14
15
|
export { loadTree, some } from '../../../@aws-cdk/toolkit-lib/lib/api/tree';
|
package/lib/api/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/diff"), exports);
|
|
|
27
27
|
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/io"), exports);
|
|
28
28
|
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/logs-monitor"), exports);
|
|
29
29
|
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/resource-import"), exports);
|
|
30
|
+
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/orphan/orphaner"), exports);
|
|
30
31
|
var rwlock_1 = require("../../../@aws-cdk/toolkit-lib/lib/api/rwlock");
|
|
31
32
|
Object.defineProperty(exports, "RWLock", { enumerable: true, get: function () { return rwlock_1.RWLock; } });
|
|
32
33
|
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/toolkit-info"), exports);
|
|
@@ -35,4 +36,4 @@ Object.defineProperty(exports, "loadTree", { enumerable: true, get: function ()
|
|
|
35
36
|
Object.defineProperty(exports, "some", { enumerable: true, get: function () { return tree_1.some; } });
|
|
36
37
|
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/work-graph"), exports);
|
|
37
38
|
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/garbage-collection"), exports);
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLGdEQUFnRDtBQUNoRCw4Q0FBNEI7QUFDNUIsbURBQWlDO0FBQ2pDLG1EQUFpQztBQUNqQyxnREFBOEI7QUFDOUIsNkNBQTJCO0FBQzNCLG1EQUFpQztBQUNqQyw0Q0FBMEI7QUFFMUIsNkVBQTJEO0FBQzNELDJFQUF5RDtBQUN6RCxxRkFBbUU7QUFDbkUsd0ZBQXNFO0FBQ3RFLHdGQUFzRTtBQUN0RSx1RUFBc0Y7QUFBN0UsZ0dBQUEsTUFBTSxPQUFBO0FBQ2YscUZBQW1FO0FBQ25FLG1FQUE0RTtBQUFuRSxnR0FBQSxRQUFRLE9BQUE7QUFBRSw0RkFBQSxJQUFJLE9BQUE7QUFDdkIsbUZBQWlFO0FBQ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2FkVHJlZSwgc29tZSB9IGZyb20gJy4uLy4uLy4uL0Bhd3MtY2RrL3Rvb2xraXQtbGliL2xpYi9hcGkvdHJlZSc7XG5leHBvcnQgKiBmcm9tICcuLi8uLi8uLi9AYXdzLWNkay90b29sa2l0LWxpYi9saWIvYXBpL3dvcmstZ3JhcGgnO1xuZXhwb3J0ICogZnJvbSAnLi4vLi4vLi4vQGF3cy1jZGsvdG9vbGtpdC1saWIvbGliL2FwaS9nYXJiYWdlLWNvbGxlY3Rpb24nO1xuIl19
|
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, PublishAssetsOptions, ToolkitOptions } from '@aws-cdk/toolkit-lib';
|
|
2
|
+
import type { DeploymentMethod, DiagnoseOptions, PublishAssetsOptions, ToolkitOptions } 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';
|
|
@@ -111,12 +111,17 @@ export declare class CdkToolkit {
|
|
|
111
111
|
* Detect infrastructure drift for the given stack(s)
|
|
112
112
|
*/
|
|
113
113
|
drift(options: DriftOptions): Promise<number>;
|
|
114
|
+
/**
|
|
115
|
+
* Diagnose errors
|
|
116
|
+
*/
|
|
117
|
+
diagnose(options: DiagnoseOptions): Promise<number>;
|
|
114
118
|
/**
|
|
115
119
|
* Roll back the given stack or stacks.
|
|
116
120
|
*/
|
|
117
121
|
rollback(options: RollbackOptions): Promise<void>;
|
|
118
122
|
publishAssets(options: PublishAssetsOptions): Promise<void>;
|
|
119
123
|
watch(options: WatchOptions): Promise<void>;
|
|
124
|
+
orphan(options: OrphanOptions): Promise<void>;
|
|
120
125
|
import(options: ImportOptions): Promise<void>;
|
|
121
126
|
destroy(options: DestroyOptions): Promise<void>;
|
|
122
127
|
list(selectors: string[], options?: {
|
|
@@ -472,6 +477,11 @@ export interface RollbackOptions {
|
|
|
472
477
|
*/
|
|
473
478
|
readonly validateBootstrapStackVersion?: boolean;
|
|
474
479
|
}
|
|
480
|
+
export interface OrphanOptions {
|
|
481
|
+
readonly constructPath: string[];
|
|
482
|
+
readonly roleArn?: string;
|
|
483
|
+
readonly toolkitStackName?: string;
|
|
484
|
+
}
|
|
475
485
|
export interface ImportOptions extends CfnDeployOptions {
|
|
476
486
|
/**
|
|
477
487
|
* Build a physical resource mapping and write it to the given file, without performing the actual import operation
|
|
@@ -485,6 +495,12 @@ export interface ImportOptions extends CfnDeployOptions {
|
|
|
485
495
|
* @default - No mapping file
|
|
486
496
|
*/
|
|
487
497
|
readonly resourceMappingFile?: string;
|
|
498
|
+
/**
|
|
499
|
+
* Inline JSON string with the physical resource mapping
|
|
500
|
+
*
|
|
501
|
+
* @default - No inline mapping
|
|
502
|
+
*/
|
|
503
|
+
readonly resourceMappingInline?: string;
|
|
488
504
|
/**
|
|
489
505
|
* Allow non-addition changes to the template
|
|
490
506
|
*
|