aws-cdk 2.1123.0 → 2.1124.1
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/build-info.json +2 -2
- package/lib/cli/util/check-unknown-options.js +17 -4
- package/lib/index.js +363 -170
- package/lib/init-templates/.init-version.json +1 -1
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -274,6 +274,13 @@ var init_interfaces = __esm({
|
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
276
|
|
|
277
|
+
// ../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/validation-report-schema.ts
|
|
278
|
+
var init_validation_report_schema = __esm({
|
|
279
|
+
"../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/validation-report-schema.ts"() {
|
|
280
|
+
"use strict";
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
|
|
277
284
|
// ../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/index.ts
|
|
278
285
|
var cloud_assembly_exports = {};
|
|
279
286
|
__export(cloud_assembly_exports, {
|
|
@@ -291,6 +298,7 @@ var init_cloud_assembly = __esm({
|
|
|
291
298
|
init_artifact_schema();
|
|
292
299
|
init_context_queries();
|
|
293
300
|
init_interfaces();
|
|
301
|
+
init_validation_report_schema();
|
|
294
302
|
}
|
|
295
303
|
});
|
|
296
304
|
|
|
@@ -3652,7 +3660,7 @@ var require_semver2 = __commonJS({
|
|
|
3652
3660
|
// ../@aws-cdk/cloud-assembly-schema/cli-version.json
|
|
3653
3661
|
var require_cli_version = __commonJS({
|
|
3654
3662
|
"../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
|
|
3655
|
-
module2.exports = { version: "2.
|
|
3663
|
+
module2.exports = { version: "2.1124.1" };
|
|
3656
3664
|
}
|
|
3657
3665
|
});
|
|
3658
3666
|
|
|
@@ -5685,6 +5693,175 @@ var require_integ_schema = __commonJS({
|
|
|
5685
5693
|
}
|
|
5686
5694
|
});
|
|
5687
5695
|
|
|
5696
|
+
// ../@aws-cdk/cloud-assembly-schema/schema/validation-report.schema.json
|
|
5697
|
+
var require_validation_report_schema = __commonJS({
|
|
5698
|
+
"../@aws-cdk/cloud-assembly-schema/schema/validation-report.schema.json"(exports2, module2) {
|
|
5699
|
+
module2.exports = {
|
|
5700
|
+
$ref: "#/definitions/PolicyValidationReportJson",
|
|
5701
|
+
definitions: {
|
|
5702
|
+
PolicyValidationReportJson: {
|
|
5703
|
+
description: "The top-level structure of the policy validation report file.",
|
|
5704
|
+
type: "object",
|
|
5705
|
+
properties: {
|
|
5706
|
+
version: {
|
|
5707
|
+
description: "Protocol version",
|
|
5708
|
+
type: "string"
|
|
5709
|
+
},
|
|
5710
|
+
title: {
|
|
5711
|
+
description: "Report title, if present.",
|
|
5712
|
+
type: "string"
|
|
5713
|
+
},
|
|
5714
|
+
pluginReports: {
|
|
5715
|
+
description: "Reports from all validation plugins that ran during synthesis.",
|
|
5716
|
+
type: "array",
|
|
5717
|
+
items: {
|
|
5718
|
+
$ref: "#/definitions/PluginReportJson"
|
|
5719
|
+
}
|
|
5720
|
+
}
|
|
5721
|
+
},
|
|
5722
|
+
required: ["version", "pluginReports"]
|
|
5723
|
+
},
|
|
5724
|
+
PluginReportJson: {
|
|
5725
|
+
description: "A report from a single validation plugin.",
|
|
5726
|
+
type: "object",
|
|
5727
|
+
properties: {
|
|
5728
|
+
pluginName: {
|
|
5729
|
+
description: "The name of the plugin that produced this report.",
|
|
5730
|
+
type: "string"
|
|
5731
|
+
},
|
|
5732
|
+
pluginVersion: {
|
|
5733
|
+
description: "Version of the plugin that produced this report.",
|
|
5734
|
+
type: "string"
|
|
5735
|
+
},
|
|
5736
|
+
conclusion: {
|
|
5737
|
+
description: "Whether the plugin's validation passed or failed.",
|
|
5738
|
+
$ref: "#/definitions/PolicyValidationReportConclusion"
|
|
5739
|
+
},
|
|
5740
|
+
metadata: {
|
|
5741
|
+
description: "Additional plugin-specific metadata.",
|
|
5742
|
+
type: "object",
|
|
5743
|
+
additionalProperties: {
|
|
5744
|
+
type: "string"
|
|
5745
|
+
}
|
|
5746
|
+
},
|
|
5747
|
+
violations: {
|
|
5748
|
+
description: "Violations found by this plugin.",
|
|
5749
|
+
type: "array",
|
|
5750
|
+
items: {
|
|
5751
|
+
$ref: "#/definitions/PolicyViolationJson"
|
|
5752
|
+
}
|
|
5753
|
+
}
|
|
5754
|
+
},
|
|
5755
|
+
required: ["pluginName", "conclusion", "violations"]
|
|
5756
|
+
},
|
|
5757
|
+
PolicyValidationReportConclusion: {
|
|
5758
|
+
description: "The final conclusion of a validation report.",
|
|
5759
|
+
type: "string",
|
|
5760
|
+
enum: ["success", "failure"]
|
|
5761
|
+
},
|
|
5762
|
+
PolicyViolationJson: {
|
|
5763
|
+
description: "A single policy violation found by a validation plugin.",
|
|
5764
|
+
type: "object",
|
|
5765
|
+
properties: {
|
|
5766
|
+
ruleName: {
|
|
5767
|
+
description: "The name of the rule that was violated.",
|
|
5768
|
+
type: "string"
|
|
5769
|
+
},
|
|
5770
|
+
description: {
|
|
5771
|
+
description: "A description of the violation.",
|
|
5772
|
+
type: "string"
|
|
5773
|
+
},
|
|
5774
|
+
suggestedFix: {
|
|
5775
|
+
description: "How to fix the violation.",
|
|
5776
|
+
type: "string"
|
|
5777
|
+
},
|
|
5778
|
+
severity: {
|
|
5779
|
+
description: "The severity of the violation.",
|
|
5780
|
+
$ref: "#/definitions/PolicyViolationSeverity"
|
|
5781
|
+
},
|
|
5782
|
+
customSeverity: {
|
|
5783
|
+
description: "If the plugin wants to report using a non-standard severity, put it here.",
|
|
5784
|
+
type: "string"
|
|
5785
|
+
},
|
|
5786
|
+
ruleMetadata: {
|
|
5787
|
+
description: "Additional rule-specific metadata.",
|
|
5788
|
+
type: "object",
|
|
5789
|
+
additionalProperties: {
|
|
5790
|
+
type: "string"
|
|
5791
|
+
}
|
|
5792
|
+
},
|
|
5793
|
+
violatingConstructs: {
|
|
5794
|
+
description: "Constructs that violated the rule.",
|
|
5795
|
+
type: "array",
|
|
5796
|
+
items: {
|
|
5797
|
+
$ref: "#/definitions/ViolatingConstructJson"
|
|
5798
|
+
}
|
|
5799
|
+
}
|
|
5800
|
+
},
|
|
5801
|
+
required: ["ruleName", "description", "severity", "violatingConstructs"]
|
|
5802
|
+
},
|
|
5803
|
+
PolicyViolationSeverity: {
|
|
5804
|
+
description: "The severity of a policy violation.",
|
|
5805
|
+
type: "string",
|
|
5806
|
+
enum: ["fatal", "error", "warning", "info", "custom"]
|
|
5807
|
+
},
|
|
5808
|
+
ViolatingConstructJson: {
|
|
5809
|
+
description: "A construct that violated a policy rule.",
|
|
5810
|
+
type: "object",
|
|
5811
|
+
properties: {
|
|
5812
|
+
constructPath: {
|
|
5813
|
+
description: "The construct path as defined in the application.",
|
|
5814
|
+
type: "string"
|
|
5815
|
+
},
|
|
5816
|
+
constructFqn: {
|
|
5817
|
+
description: "The fully qualified name of the construct class (includes the library name).",
|
|
5818
|
+
type: "string"
|
|
5819
|
+
},
|
|
5820
|
+
libraryVersion: {
|
|
5821
|
+
description: "The version of the library that contains this construct.",
|
|
5822
|
+
type: "string"
|
|
5823
|
+
},
|
|
5824
|
+
cloudFormationResource: {
|
|
5825
|
+
description: "If this construct violation regards a CloudFormation resource, a reference to the resource details.",
|
|
5826
|
+
$ref: "#/definitions/CloudFormationResourceJson"
|
|
5827
|
+
},
|
|
5828
|
+
stackTraces: {
|
|
5829
|
+
description: "Stack traces associated with this violation.",
|
|
5830
|
+
type: "array",
|
|
5831
|
+
items: {
|
|
5832
|
+
type: "string"
|
|
5833
|
+
}
|
|
5834
|
+
}
|
|
5835
|
+
},
|
|
5836
|
+
required: ["constructPath"]
|
|
5837
|
+
},
|
|
5838
|
+
CloudFormationResourceJson: {
|
|
5839
|
+
description: "CloudFormation resource details for a violating construct.",
|
|
5840
|
+
type: "object",
|
|
5841
|
+
properties: {
|
|
5842
|
+
templatePath: {
|
|
5843
|
+
description: "The path to the CloudFormation template containing this resource.",
|
|
5844
|
+
type: "string"
|
|
5845
|
+
},
|
|
5846
|
+
logicalId: {
|
|
5847
|
+
description: "The logical ID of the resource in the CloudFormation template.",
|
|
5848
|
+
type: "string"
|
|
5849
|
+
},
|
|
5850
|
+
propertyPaths: {
|
|
5851
|
+
description: "Properties within the construct where the violation was detected.",
|
|
5852
|
+
type: "array",
|
|
5853
|
+
items: {
|
|
5854
|
+
type: "string"
|
|
5855
|
+
}
|
|
5856
|
+
}
|
|
5857
|
+
},
|
|
5858
|
+
required: ["templatePath", "logicalId"]
|
|
5859
|
+
}
|
|
5860
|
+
}
|
|
5861
|
+
};
|
|
5862
|
+
}
|
|
5863
|
+
});
|
|
5864
|
+
|
|
5688
5865
|
// ../@aws-cdk/cloud-assembly-schema/schema/version.json
|
|
5689
5866
|
var require_version = __commonJS({
|
|
5690
5867
|
"../@aws-cdk/cloud-assembly-schema/schema/version.json"(exports2, module2) {
|
|
@@ -5705,7 +5882,7 @@ __export(manifest_exports, {
|
|
|
5705
5882
|
function stripEnumErrors(errors) {
|
|
5706
5883
|
return errors.filter((e32) => typeof e32.schema === "string" || !("enum" in e32.schema));
|
|
5707
5884
|
}
|
|
5708
|
-
var fs, jsonschema, semver, VERSION_MISMATCH, CLI_VERSION, ASSETS_SCHEMA, ASSEMBLY_SCHEMA, INTEG_SCHEMA, SCHEMA_VERSION, Manifest;
|
|
5885
|
+
var fs, jsonschema, semver, VERSION_MISMATCH, CLI_VERSION, ASSETS_SCHEMA, ASSEMBLY_SCHEMA, INTEG_SCHEMA, VALIDATION_REPORT_SCHEMA, SCHEMA_VERSION, Manifest;
|
|
5709
5886
|
var init_manifest = __esm({
|
|
5710
5887
|
"../@aws-cdk/cloud-assembly-schema/lib/manifest.ts"() {
|
|
5711
5888
|
"use strict";
|
|
@@ -5718,6 +5895,7 @@ var init_manifest = __esm({
|
|
|
5718
5895
|
ASSETS_SCHEMA = require_assets_schema();
|
|
5719
5896
|
ASSEMBLY_SCHEMA = require_cloud_assembly_schema();
|
|
5720
5897
|
INTEG_SCHEMA = require_integ_schema();
|
|
5898
|
+
VALIDATION_REPORT_SCHEMA = require_validation_report_schema();
|
|
5721
5899
|
SCHEMA_VERSION = require_version();
|
|
5722
5900
|
Manifest = class _Manifest {
|
|
5723
5901
|
static {
|
|
@@ -5778,6 +5956,14 @@ var init_manifest = __esm({
|
|
|
5778
5956
|
testCases: manifest.testCases ?? []
|
|
5779
5957
|
};
|
|
5780
5958
|
}
|
|
5959
|
+
/**
|
|
5960
|
+
* Load and validate the policy validation report from file.
|
|
5961
|
+
*
|
|
5962
|
+
* @param filePath - path to the validation report file.
|
|
5963
|
+
*/
|
|
5964
|
+
static loadValidationReport(filePath) {
|
|
5965
|
+
return _Manifest.loadManifest(filePath, VALIDATION_REPORT_SCHEMA);
|
|
5966
|
+
}
|
|
5781
5967
|
/**
|
|
5782
5968
|
* Fetch the current schema version number.
|
|
5783
5969
|
*/
|
|
@@ -64794,11 +64980,11 @@ var require_randomUUID = __commonJS({
|
|
|
64794
64980
|
var require_dist_cjs19 = __commonJS({
|
|
64795
64981
|
"../../node_modules/@smithy/uuid/dist-cjs/index.js"(exports2) {
|
|
64796
64982
|
"use strict";
|
|
64797
|
-
var
|
|
64983
|
+
var randomUUID12 = require_randomUUID();
|
|
64798
64984
|
var decimalToHex6 = Array.from({ length: 256 }, (_2, i32) => i32.toString(16).padStart(2, "0"));
|
|
64799
64985
|
var v46 = /* @__PURE__ */ __name(() => {
|
|
64800
|
-
if (
|
|
64801
|
-
return
|
|
64986
|
+
if (randomUUID12.randomUUID) {
|
|
64987
|
+
return randomUUID12.randomUUID();
|
|
64802
64988
|
}
|
|
64803
64989
|
const rnds = new Uint8Array(16);
|
|
64804
64990
|
crypto.getRandomValues(rnds);
|
|
@@ -178323,11 +178509,6 @@ async function getNestedStackArn(nestedStackLogicalId, listStackResources) {
|
|
|
178323
178509
|
function isCdkManagedNestedStack(stackResource) {
|
|
178324
178510
|
return stackResource.Type === "AWS::CloudFormation::Stack" && stackResource.Metadata && stackResource.Metadata["aws:asset:path"];
|
|
178325
178511
|
}
|
|
178326
|
-
function templateContainsNestedStacks(template) {
|
|
178327
|
-
return Object.values(template?.Resources ?? {}).some(
|
|
178328
|
-
(resource) => resource.Type === "AWS::CloudFormation::Stack"
|
|
178329
|
-
);
|
|
178330
|
-
}
|
|
178331
178512
|
var path17, fs17;
|
|
178332
178513
|
var init_nested_stack_helpers = __esm({
|
|
178333
178514
|
"../@aws-cdk/toolkit-lib/lib/api/cloudformation/nested-stack-helpers.ts"() {
|
|
@@ -178344,7 +178525,6 @@ var init_nested_stack_helpers = __esm({
|
|
|
178344
178525
|
__name(getNestedStackTemplates, "getNestedStackTemplates");
|
|
178345
178526
|
__name(getNestedStackArn, "getNestedStackArn");
|
|
178346
178527
|
__name(isCdkManagedNestedStack, "isCdkManagedNestedStack");
|
|
178347
|
-
__name(templateContainsNestedStacks, "templateContainsNestedStacks");
|
|
178348
178528
|
}
|
|
178349
178529
|
});
|
|
178350
178530
|
|
|
@@ -179205,7 +179385,6 @@ var cfn_api_exports = {};
|
|
|
179205
179385
|
__export(cfn_api_exports, {
|
|
179206
179386
|
ParameterValues: () => ParameterValues,
|
|
179207
179387
|
TemplateParameters: () => TemplateParameters,
|
|
179208
|
-
createChangeSetAndCleanup: () => createChangeSetAndCleanup,
|
|
179209
179388
|
createDiffChangeSet: () => createDiffChangeSet,
|
|
179210
179389
|
stabilizeStack: () => stabilizeStack,
|
|
179211
179390
|
uploadStackTemplateAssets: () => uploadStackTemplateAssets,
|
|
@@ -179246,13 +179425,13 @@ async function waitFor(valueProvider, timeout = 5e3) {
|
|
|
179246
179425
|
async function waitForChangeSet(cfn, ioHelper, stackNameOrArn, changeSetNameOrArn, { fetchAll, diagnoser }) {
|
|
179247
179426
|
const stackDisplayName = stackNameFromArn(stackNameOrArn);
|
|
179248
179427
|
const changeSetDisplayName = changeSetNameFromArn(changeSetNameOrArn);
|
|
179249
|
-
await ioHelper.defaults.debug((0,
|
|
179428
|
+
await ioHelper.defaults.debug((0, import_node_util.format)("Waiting for changeset %s on stack %s to finish creating...", changeSetDisplayName, stackDisplayName));
|
|
179250
179429
|
const ret = await waitFor(async () => {
|
|
179251
179430
|
const description = await describeChangeSet(cfn, stackNameOrArn, changeSetNameOrArn, {
|
|
179252
179431
|
fetchAll
|
|
179253
179432
|
});
|
|
179254
179433
|
if (description.Status === "CREATE_PENDING" || description.Status === "CREATE_IN_PROGRESS") {
|
|
179255
|
-
await ioHelper.defaults.debug((0,
|
|
179434
|
+
await ioHelper.defaults.debug((0, import_node_util.format)("Changeset %s on stack %s is still creating", changeSetDisplayName, stackDisplayName));
|
|
179256
179435
|
return void 0;
|
|
179257
179436
|
}
|
|
179258
179437
|
const diag = await diagnoser.diagnoseChangeSet(description);
|
|
@@ -179269,7 +179448,7 @@ async function waitForChangeSet(cfn, ioHelper, stackNameOrArn, changeSetNameOrAr
|
|
|
179269
179448
|
async function waitForChangeSetGone(cfn, ioHelper, stackNameOrArn, changeSetNameOrArn) {
|
|
179270
179449
|
const stackDisplayName = stackNameFromArn(stackNameOrArn);
|
|
179271
179450
|
const changeSetDisplayName = changeSetNameFromArn(changeSetNameOrArn);
|
|
179272
|
-
await ioHelper.defaults.debug((0,
|
|
179451
|
+
await ioHelper.defaults.debug((0, import_node_util.format)("Waiting for changeset %s on stack %s to finish deleting...", changeSetDisplayName, stackDisplayName));
|
|
179273
179452
|
await waitFor(async () => {
|
|
179274
179453
|
try {
|
|
179275
179454
|
const description = await cfn.describeChangeSet({
|
|
@@ -179293,7 +179472,7 @@ async function createDiffChangeSet(ioHelper, options) {
|
|
|
179293
179472
|
const env3 = await options.deployments.envs.accessStackForMutableStackOperations(options.stack);
|
|
179294
179473
|
return await uploadBodyParameterAndCreateChangeSet(ioHelper, env3, {
|
|
179295
179474
|
...options,
|
|
179296
|
-
includeNestedStacks:
|
|
179475
|
+
includeNestedStacks: true
|
|
179297
179476
|
});
|
|
179298
179477
|
} catch (e32) {
|
|
179299
179478
|
if (options.failOnError) {
|
|
@@ -179331,7 +179510,7 @@ async function uploadBodyParameterAndCreateChangeSet(ioHelper, env3, options) {
|
|
|
179331
179510
|
);
|
|
179332
179511
|
const cfn = env3.sdk.cloudFormation();
|
|
179333
179512
|
const stack = await CloudFormationStack.lookup(cfn, options.stack.stackName, false);
|
|
179334
|
-
const exists = stack.exists && stack.stackStatus.name !== "REVIEW_IN_PROGRESS";
|
|
179513
|
+
const exists = stack.exists && stack.stackStatus.name !== "REVIEW_IN_PROGRESS" && stack.stackStatus.name !== "DELETE_IN_PROGRESS";
|
|
179335
179514
|
const executionRoleArn = await env3.replacePlaceholders(options.stack.cloudFormationExecutionRoleArn);
|
|
179336
179515
|
await ioHelper.defaults.info(
|
|
179337
179516
|
"Hold on while we create a read-only change set to get a diff with accurate replacement information (use --method=template to use a less accurate but faster template-only diff)\n"
|
|
@@ -179397,7 +179576,7 @@ async function createChangeSetAndCleanup(ioHelper, options) {
|
|
|
179397
179576
|
Tags: toCfnTags(options.stack.tags),
|
|
179398
179577
|
Capabilities: ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM", "CAPABILITY_AUTO_EXPAND"]
|
|
179399
179578
|
});
|
|
179400
|
-
await ioHelper.defaults.debug((0,
|
|
179579
|
+
await ioHelper.defaults.debug((0, import_node_util.format)("Initiated creation of changeset: %s; waiting for it to finish creating...", changeSet.Id));
|
|
179401
179580
|
const createdChangeSet = await waitForChangeSet(
|
|
179402
179581
|
options.cfn,
|
|
179403
179582
|
ioHelper,
|
|
@@ -179414,6 +179593,13 @@ async function createChangeSetAndCleanup(ioHelper, options) {
|
|
|
179414
179593
|
changeSet.Id ?? options.changeSetName,
|
|
179415
179594
|
changeSet.StackId ?? options.stack.stackName
|
|
179416
179595
|
);
|
|
179596
|
+
if (!options.exists) {
|
|
179597
|
+
await ioHelper.defaults.debug((0, import_node_util.format)("Deleting empty stack created by diff changeset: %s", changeSet.StackId ?? options.stack.stackName));
|
|
179598
|
+
await options.cfn.deleteStack({
|
|
179599
|
+
StackName: changeSet.StackId ?? options.stack.stackName,
|
|
179600
|
+
ClientRequestToken: (0, import_node_crypto3.randomUUID)()
|
|
179601
|
+
});
|
|
179602
|
+
}
|
|
179417
179603
|
return createdChangeSet;
|
|
179418
179604
|
}
|
|
179419
179605
|
function toCfnTags(tags) {
|
|
@@ -179465,28 +179651,29 @@ async function waitForStackDeploy(cfn, ioHelper, stackName) {
|
|
|
179465
179651
|
}
|
|
179466
179652
|
async function stabilizeStack(cfn, ioHelper, stackNameOrArn) {
|
|
179467
179653
|
const stackDisplayName = stackNameFromArn(stackNameOrArn);
|
|
179468
|
-
await ioHelper.defaults.debug((0,
|
|
179654
|
+
await ioHelper.defaults.debug((0, import_node_util.format)("Waiting for stack %s to finish creating or updating...", stackDisplayName));
|
|
179469
179655
|
return waitFor(async () => {
|
|
179470
179656
|
const stack = await CloudFormationStack.lookup(cfn, stackNameOrArn);
|
|
179471
179657
|
if (!stack.exists) {
|
|
179472
|
-
await ioHelper.defaults.debug((0,
|
|
179658
|
+
await ioHelper.defaults.debug((0, import_node_util.format)("Stack %s does not exist", stackDisplayName));
|
|
179473
179659
|
return null;
|
|
179474
179660
|
}
|
|
179475
179661
|
const status = stack.stackStatus;
|
|
179476
179662
|
if (status.isInProgress) {
|
|
179477
|
-
await ioHelper.defaults.debug((0,
|
|
179663
|
+
await ioHelper.defaults.debug((0, import_node_util.format)("Stack %s has an ongoing operation in progress and is not stable (%s)", stackDisplayName, status));
|
|
179478
179664
|
return void 0;
|
|
179479
179665
|
} else if (status.isReviewInProgress) {
|
|
179480
|
-
await ioHelper.defaults.debug((0,
|
|
179666
|
+
await ioHelper.defaults.debug((0, import_node_util.format)("Stack %s is in REVIEW_IN_PROGRESS state. Considering this is a stable status (%s)", stackDisplayName, status));
|
|
179481
179667
|
}
|
|
179482
179668
|
return stack;
|
|
179483
179669
|
});
|
|
179484
179670
|
}
|
|
179485
|
-
var
|
|
179671
|
+
var import_node_crypto3, import_node_util, import_cdk_assets_lib3, cxapi2, import_cloud_assembly_api4, import_client_cloudformation3, TemplateParameters, ParameterValues;
|
|
179486
179672
|
var init_cfn_api = __esm({
|
|
179487
179673
|
"../@aws-cdk/toolkit-lib/lib/api/deployments/cfn-api.ts"() {
|
|
179488
179674
|
"use strict";
|
|
179489
|
-
|
|
179675
|
+
import_node_crypto3 = require("node:crypto");
|
|
179676
|
+
import_node_util = require("node:util");
|
|
179490
179677
|
import_cdk_assets_lib3 = __toESM(require_lib6());
|
|
179491
179678
|
cxapi2 = __toESM(require_lib3());
|
|
179492
179679
|
import_cloud_assembly_api4 = __toESM(require_lib3());
|
|
@@ -190150,11 +190337,11 @@ function _diffStrings(oldStr, newStr, context) {
|
|
|
190150
190337
|
}
|
|
190151
190338
|
__name(_findIndent, "_findIndent");
|
|
190152
190339
|
}
|
|
190153
|
-
var
|
|
190340
|
+
var import_util19, chalk7, PATH_METADATA_KEY3, structuredPatch, ADDITION2, CONTEXT, UPDATE2, REMOVAL2, IMPORT, Formatter;
|
|
190154
190341
|
var init_format = __esm({
|
|
190155
190342
|
"../@aws-cdk/cloudformation-diff/lib/format.ts"() {
|
|
190156
190343
|
"use strict";
|
|
190157
|
-
|
|
190344
|
+
import_util19 = require("util");
|
|
190158
190345
|
chalk7 = __toESM(require_source());
|
|
190159
190346
|
init_util4();
|
|
190160
190347
|
init_diff_template();
|
|
@@ -190183,10 +190370,10 @@ var init_format = __esm({
|
|
|
190183
190370
|
__name(this, "Formatter");
|
|
190184
190371
|
}
|
|
190185
190372
|
print(fmt, ...args) {
|
|
190186
|
-
this.stream.write(chalk7.reset((0,
|
|
190373
|
+
this.stream.write(chalk7.reset((0, import_util19.format)(fmt, ...args)) + "\n");
|
|
190187
190374
|
}
|
|
190188
190375
|
warning(fmt, ...args) {
|
|
190189
|
-
this.stream.write(chalk7.yellow((0,
|
|
190376
|
+
this.stream.write(chalk7.yellow((0, import_util19.format)(fmt, ...args)) + "\n");
|
|
190190
190377
|
}
|
|
190191
190378
|
formatSection(title, entryType, collection, formatter = this.formatDifference.bind(this)) {
|
|
190192
190379
|
if (collection.differenceCount === 0) {
|
|
@@ -192150,7 +192337,7 @@ async function applyHotswapOperation(sdk, ioSpan, hotswapOperation) {
|
|
|
192150
192337
|
sdk.appendCustomUserAgent(customUserAgent);
|
|
192151
192338
|
const resourceText = /* @__PURE__ */ __name((r32) => r32.description ?? `${r32.resourceType} '${r32.physicalName ?? r32.logicalId}'`, "resourceText");
|
|
192152
192339
|
await ioSpan.notify(IO.CDK_TOOLKIT_I5402.msg(
|
|
192153
|
-
hotswapOperation.change.resources.map((r32) => (0,
|
|
192340
|
+
hotswapOperation.change.resources.map((r32) => (0, import_util25.format)(` ${ICON} %s`, chalk9.bold(resourceText(r32)))).join("\n"),
|
|
192154
192341
|
hotswapOperation.change
|
|
192155
192342
|
));
|
|
192156
192343
|
try {
|
|
@@ -192165,7 +192352,7 @@ async function applyHotswapOperation(sdk, ioSpan, hotswapOperation) {
|
|
|
192165
192352
|
throw e32;
|
|
192166
192353
|
}
|
|
192167
192354
|
await ioSpan.notify(IO.CDK_TOOLKIT_I5403.msg(
|
|
192168
|
-
hotswapOperation.change.resources.map((r32) => (0,
|
|
192355
|
+
hotswapOperation.change.resources.map((r32) => (0, import_util25.format)(` ${ICON} %s %s`, chalk9.bold(resourceText(r32)), chalk9.green("hotswapped!"))).join("\n"),
|
|
192169
192356
|
hotswapOperation.change
|
|
192170
192357
|
));
|
|
192171
192358
|
sdk.removeCustomUserAgent(customUserAgent);
|
|
@@ -192194,9 +192381,9 @@ async function logRejectedChanges(ioSpan, rejectedChanges, hotswapMode) {
|
|
|
192194
192381
|
}
|
|
192195
192382
|
const messages = [""];
|
|
192196
192383
|
if (hotswapMode === "hotswap-only") {
|
|
192197
|
-
messages.push((0,
|
|
192384
|
+
messages.push((0, import_util25.format)("%s %s", chalk9.red("\u26A0\uFE0F"), chalk9.red("The following non-hotswappable changes were found. To reconcile these using CloudFormation, specify --hotswap-fallback")));
|
|
192198
192385
|
} else {
|
|
192199
|
-
messages.push((0,
|
|
192386
|
+
messages.push((0, import_util25.format)("%s %s", chalk9.red("\u26A0\uFE0F"), chalk9.red("The following non-hotswappable changes were found:")));
|
|
192200
192387
|
}
|
|
192201
192388
|
for (const { change } of rejectedChanges) {
|
|
192202
192389
|
messages.push(" " + nonHotswappableChangeMessage(change));
|
|
@@ -192209,7 +192396,7 @@ function nonHotswappableChangeMessage(change) {
|
|
|
192209
192396
|
const reason = change.description ?? change.reason;
|
|
192210
192397
|
switch (subject.type) {
|
|
192211
192398
|
case "Output":
|
|
192212
|
-
return (0,
|
|
192399
|
+
return (0, import_util25.format)(
|
|
192213
192400
|
"output: %s, reason: %s",
|
|
192214
192401
|
chalk9.bold(subject.logicalId),
|
|
192215
192402
|
chalk9.red(reason)
|
|
@@ -192220,7 +192407,7 @@ function nonHotswappableChangeMessage(change) {
|
|
|
192220
192407
|
}
|
|
192221
192408
|
function nonHotswappableResourceMessage(subject, reason) {
|
|
192222
192409
|
if (subject.rejectedProperties?.length) {
|
|
192223
|
-
return (0,
|
|
192410
|
+
return (0, import_util25.format)(
|
|
192224
192411
|
"resource: %s, type: %s, rejected changes: %s, reason: %s",
|
|
192225
192412
|
chalk9.bold(subject.logicalId),
|
|
192226
192413
|
chalk9.bold(subject.resourceType),
|
|
@@ -192228,18 +192415,18 @@ function nonHotswappableResourceMessage(subject, reason) {
|
|
|
192228
192415
|
chalk9.red(reason)
|
|
192229
192416
|
);
|
|
192230
192417
|
}
|
|
192231
|
-
return (0,
|
|
192418
|
+
return (0, import_util25.format)(
|
|
192232
192419
|
"resource: %s, type: %s, reason: %s",
|
|
192233
192420
|
chalk9.bold(subject.logicalId),
|
|
192234
192421
|
chalk9.bold(subject.resourceType),
|
|
192235
192422
|
chalk9.red(reason)
|
|
192236
192423
|
);
|
|
192237
192424
|
}
|
|
192238
|
-
var
|
|
192425
|
+
var import_util25, cfn_diff, chalk9, pLimit2, RESOURCE_DETECTORS;
|
|
192239
192426
|
var init_hotswap_deployments = __esm({
|
|
192240
192427
|
"../@aws-cdk/toolkit-lib/lib/api/hotswap/hotswap-deployments.ts"() {
|
|
192241
192428
|
"use strict";
|
|
192242
|
-
|
|
192429
|
+
import_util25 = require("util");
|
|
192243
192430
|
cfn_diff = __toESM(require_lib10());
|
|
192244
192431
|
chalk9 = __toESM(require_source());
|
|
192245
192432
|
init_payloads();
|
|
@@ -192345,7 +192532,7 @@ async function deployStack(options, ioHelper) {
|
|
|
192345
192532
|
await ioHelper.defaults.debug(
|
|
192346
192533
|
`Found existing stack ${deployName} that had previously failed creation. Deleting it before attempting to re-create it.`
|
|
192347
192534
|
);
|
|
192348
|
-
await cfn.deleteStack({ StackName: cloudFormationStack.stackId, ClientRequestToken: (0,
|
|
192535
|
+
await cfn.deleteStack({ StackName: cloudFormationStack.stackId, ClientRequestToken: (0, import_node_crypto4.randomUUID)() });
|
|
192349
192536
|
const deletedStack = await waitForStackDelete(cfn, ioHelper, cloudFormationStack.stackId);
|
|
192350
192537
|
if (deletedStack && deletedStack.stackStatus.name !== "DELETE_COMPLETE") {
|
|
192351
192538
|
throw new DeploymentError(
|
|
@@ -192370,7 +192557,7 @@ async function deployStack(options, ioHelper) {
|
|
|
192370
192557
|
await ioHelper.defaults.debug(`${deployName}: skipping deployment (use --force to override)`);
|
|
192371
192558
|
if (deploymentMethod?.method === "hotswap") {
|
|
192372
192559
|
await ioHelper.defaults.info(
|
|
192373
|
-
(0,
|
|
192560
|
+
(0, import_node_util2.format)(
|
|
192374
192561
|
`
|
|
192375
192562
|
${ICON} %s
|
|
192376
192563
|
`,
|
|
@@ -192424,7 +192611,7 @@ async function deployStack(options, ioHelper) {
|
|
|
192424
192611
|
);
|
|
192425
192612
|
return hotswapDeploymentResult;
|
|
192426
192613
|
}
|
|
192427
|
-
await ioHelper.defaults.info((0,
|
|
192614
|
+
await ioHelper.defaults.info((0, import_node_util2.format)(
|
|
192428
192615
|
"Could not perform a hotswap deployment, as the stack %s contains non-Asset changes",
|
|
192429
192616
|
stackArtifact.displayName
|
|
192430
192617
|
));
|
|
@@ -192432,7 +192619,7 @@ async function deployStack(options, ioHelper) {
|
|
|
192432
192619
|
if (!(e32 instanceof CfnEvaluationException)) {
|
|
192433
192620
|
throw e32;
|
|
192434
192621
|
}
|
|
192435
|
-
await ioHelper.defaults.info((0,
|
|
192622
|
+
await ioHelper.defaults.info((0, import_node_util2.format)(
|
|
192436
192623
|
"Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: %s",
|
|
192437
192624
|
formatErrorMessage(e32)
|
|
192438
192625
|
));
|
|
@@ -192477,7 +192664,7 @@ async function destroyStack(options, ioHelper) {
|
|
|
192477
192664
|
});
|
|
192478
192665
|
await monitor.start();
|
|
192479
192666
|
try {
|
|
192480
|
-
await cfn.deleteStack({ StackName: currentStack.stackId, RoleARN: options.roleArn, ClientRequestToken: (0,
|
|
192667
|
+
await cfn.deleteStack({ StackName: currentStack.stackId, RoleARN: options.roleArn, ClientRequestToken: (0, import_node_crypto4.randomUUID)() });
|
|
192481
192668
|
const destroyedStack = await waitForStackDelete(cfn, ioHelper, currentStack.stackId);
|
|
192482
192669
|
if (destroyedStack && destroyedStack.stackStatus.name !== "DELETE_COMPLETE") {
|
|
192483
192670
|
throw new DeploymentError(`Failed to destroy ${deployName}: ${destroyedStack.stackStatus}`, "StackDestroyFailed");
|
|
@@ -192568,12 +192755,12 @@ function hasReplacement(cs) {
|
|
|
192568
192755
|
return a32 === "ReplaceAndDelete" || a32 === "ReplaceAndRetain" || a32 === "ReplaceAndSnapshot";
|
|
192569
192756
|
});
|
|
192570
192757
|
}
|
|
192571
|
-
var
|
|
192758
|
+
var import_node_crypto4, import_node_util2, chalk10, FullCloudFormationDeployment;
|
|
192572
192759
|
var init_deploy_stack = __esm({
|
|
192573
192760
|
"../@aws-cdk/toolkit-lib/lib/api/deployments/deploy-stack.ts"() {
|
|
192574
192761
|
"use strict";
|
|
192575
|
-
|
|
192576
|
-
|
|
192762
|
+
import_node_crypto4 = require("node:crypto");
|
|
192763
|
+
import_node_util2 = require("node:util");
|
|
192577
192764
|
chalk10 = __toESM(require_source());
|
|
192578
192765
|
init_asset_manifest_builder();
|
|
192579
192766
|
init_asset_publishing();
|
|
@@ -192607,7 +192794,7 @@ var init_deploy_stack = __esm({
|
|
|
192607
192794
|
this.stackName = options.deployName ?? stackArtifact.stackName;
|
|
192608
192795
|
this.update = cloudFormationStack.exists && cloudFormationStack.stackStatus.name !== "REVIEW_IN_PROGRESS";
|
|
192609
192796
|
this.verb = this.update ? "update" : "create";
|
|
192610
|
-
this.uuid = (0,
|
|
192797
|
+
this.uuid = (0, import_node_crypto4.randomUUID)();
|
|
192611
192798
|
}
|
|
192612
192799
|
deploymentMethod;
|
|
192613
192800
|
options;
|
|
@@ -192648,9 +192835,9 @@ var init_deploy_stack = __esm({
|
|
|
192648
192835
|
const changeSetDescription = await this.createChangeSet(changeSetName, execute2, importExistingResources, revertDrift);
|
|
192649
192836
|
await this.updateTerminationProtection();
|
|
192650
192837
|
if (changeSetHasNoChanges(changeSetDescription)) {
|
|
192651
|
-
await this.ioHelper.defaults.debug((0,
|
|
192838
|
+
await this.ioHelper.defaults.debug((0, import_node_util2.format)("No changes are to be performed on %s.", this.stackName));
|
|
192652
192839
|
if (execute2) {
|
|
192653
|
-
await this.ioHelper.defaults.debug((0,
|
|
192840
|
+
await this.ioHelper.defaults.debug((0, import_node_util2.format)("Deleting empty change set %s", changeSetDescription.ChangeSetId));
|
|
192654
192841
|
await this.cfn.deleteChangeSet({
|
|
192655
192842
|
StackName: changeSetDescription.StackId ?? this.stackName,
|
|
192656
192843
|
ChangeSetName: changeSetDescription.ChangeSetId ?? changeSetName
|
|
@@ -192675,7 +192862,7 @@ var init_deploy_stack = __esm({
|
|
|
192675
192862
|
};
|
|
192676
192863
|
}
|
|
192677
192864
|
if (!execute2) {
|
|
192678
|
-
await this.ioHelper.defaults.info((0,
|
|
192865
|
+
await this.ioHelper.defaults.info((0, import_node_util2.format)(
|
|
192679
192866
|
"Changeset %s created and waiting in review for manual execution (--no-execute)",
|
|
192680
192867
|
changeSetDescription.ChangeSetId
|
|
192681
192868
|
));
|
|
@@ -192726,7 +192913,7 @@ var init_deploy_stack = __esm({
|
|
|
192726
192913
|
async createChangeSet(changeSetName, willExecute, importExistingResources, revertDrift) {
|
|
192727
192914
|
await this.cleanupOldChangeset(changeSetName);
|
|
192728
192915
|
await this.ioHelper.defaults.debug(`Attempting to create ChangeSet with name ${changeSetName} to ${this.verb} stack ${this.stackName}`);
|
|
192729
|
-
await this.ioHelper.defaults.info((0,
|
|
192916
|
+
await this.ioHelper.defaults.info((0, import_node_util2.format)("%s: creating CloudFormation changeset...", chalk10.bold(this.stackName)));
|
|
192730
192917
|
const changeSet = await this.cfn.createChangeSet({
|
|
192731
192918
|
StackName: this.stackName,
|
|
192732
192919
|
ChangeSetName: changeSetName,
|
|
@@ -192736,20 +192923,17 @@ var init_deploy_stack = __esm({
|
|
|
192736
192923
|
ClientToken: `create${this.uuid}`,
|
|
192737
192924
|
ImportExistingResources: importExistingResources,
|
|
192738
192925
|
DeploymentMode: revertDrift ? "REVERT_DRIFT" : void 0,
|
|
192739
|
-
|
|
192740
|
-
// TODO: We currently have a test explicitly checking that this is NOT set to true, but on the other
|
|
192741
|
-
// hand for 'cdk diff' we DO turn it on. Investigate later.
|
|
192742
|
-
// IncludeNestedStacks: true,
|
|
192926
|
+
IncludeNestedStacks: this.options.resourcesToImport || revertDrift ? void 0 : true,
|
|
192743
192927
|
...this.commonPrepareOptions()
|
|
192744
192928
|
});
|
|
192745
|
-
await this.ioHelper.defaults.debug((0,
|
|
192929
|
+
await this.ioHelper.defaults.debug((0, import_node_util2.format)("Initiated creation of changeset: %s; waiting for it to finish creating...", changeSet.Id));
|
|
192746
192930
|
return waitForChangeSet(this.cfn, this.ioHelper, changeSet.StackId ?? this.stackName, changeSet.Id ?? changeSetName, {
|
|
192747
192931
|
fetchAll: willExecute,
|
|
192748
192932
|
diagnoser: this.diagnoser
|
|
192749
192933
|
});
|
|
192750
192934
|
}
|
|
192751
192935
|
async executeChangeSet(changeSet) {
|
|
192752
|
-
await this.ioHelper.defaults.debug((0,
|
|
192936
|
+
await this.ioHelper.defaults.debug((0, import_node_util2.format)("Initiating execution of changeset %s on stack %s", changeSet.ChangeSetId, this.stackName));
|
|
192753
192937
|
await this.cfn.executeChangeSet({
|
|
192754
192938
|
StackName: changeSet.StackId ?? this.stackName,
|
|
192755
192939
|
ChangeSetName: changeSet.ChangeSetId,
|
|
@@ -192757,7 +192941,7 @@ var init_deploy_stack = __esm({
|
|
|
192757
192941
|
...this.commonExecuteOptions()
|
|
192758
192942
|
});
|
|
192759
192943
|
await this.ioHelper.defaults.debug(
|
|
192760
|
-
(0,
|
|
192944
|
+
(0, import_node_util2.format)(
|
|
192761
192945
|
"Execution of changeset %s on stack %s has started; waiting for the update to complete...",
|
|
192762
192946
|
changeSet.ChangeSetId,
|
|
192763
192947
|
this.stackName
|
|
@@ -192781,7 +192965,7 @@ var init_deploy_stack = __esm({
|
|
|
192781
192965
|
const terminationProtection = this.stackArtifact.terminationProtection ?? false;
|
|
192782
192966
|
if (!!this.cloudFormationStack.terminationProtection !== terminationProtection) {
|
|
192783
192967
|
await this.ioHelper.defaults.debug(
|
|
192784
|
-
(0,
|
|
192968
|
+
(0, import_node_util2.format)(
|
|
192785
192969
|
"Updating termination protection from %s to %s for stack %s",
|
|
192786
192970
|
this.cloudFormationStack.terminationProtection,
|
|
192787
192971
|
terminationProtection,
|
|
@@ -192792,11 +192976,11 @@ var init_deploy_stack = __esm({
|
|
|
192792
192976
|
StackName: this.stackName,
|
|
192793
192977
|
EnableTerminationProtection: terminationProtection
|
|
192794
192978
|
});
|
|
192795
|
-
await this.ioHelper.defaults.debug((0,
|
|
192979
|
+
await this.ioHelper.defaults.debug((0, import_node_util2.format)("Termination protection updated to %s for stack %s", terminationProtection, this.stackName));
|
|
192796
192980
|
}
|
|
192797
192981
|
}
|
|
192798
192982
|
async directDeployment() {
|
|
192799
|
-
await this.ioHelper.defaults.info((0,
|
|
192983
|
+
await this.ioHelper.defaults.info((0, import_node_util2.format)("%s: %s stack...", chalk10.bold(this.stackName), this.update ? "updating" : "creating"));
|
|
192800
192984
|
const startTime = /* @__PURE__ */ new Date();
|
|
192801
192985
|
if (this.update) {
|
|
192802
192986
|
await this.updateTerminationProtection();
|
|
@@ -192810,7 +192994,7 @@ var init_deploy_stack = __esm({
|
|
|
192810
192994
|
return await this.monitorDeployment(startTime, stack.StackId, void 0);
|
|
192811
192995
|
} catch (err) {
|
|
192812
192996
|
if (err.message === "No updates are to be performed.") {
|
|
192813
|
-
await this.ioHelper.defaults.debug((0,
|
|
192997
|
+
await this.ioHelper.defaults.debug((0, import_node_util2.format)("No updates are to be performed for stack %s", this.stackName));
|
|
192814
192998
|
return {
|
|
192815
192999
|
type: "did-deploy-stack",
|
|
192816
193000
|
noOp: true,
|
|
@@ -192861,7 +193045,7 @@ var init_deploy_stack = __esm({
|
|
|
192861
193045
|
} finally {
|
|
192862
193046
|
await monitor.stop();
|
|
192863
193047
|
}
|
|
192864
|
-
await this.ioHelper.defaults.debug((0,
|
|
193048
|
+
await this.ioHelper.defaults.debug((0, import_node_util2.format)("Stack %s has completed updating", this.stackName));
|
|
192865
193049
|
return {
|
|
192866
193050
|
type: "did-deploy-stack",
|
|
192867
193051
|
noOp: false,
|
|
@@ -193557,11 +193741,11 @@ var init_notices2 = __esm({
|
|
|
193557
193741
|
});
|
|
193558
193742
|
|
|
193559
193743
|
// ../@aws-cdk/toolkit-lib/lib/api/toolkit-info.ts
|
|
193560
|
-
var
|
|
193744
|
+
var import_util31, chalk11, DEFAULT_TOOLKIT_STACK_NAME, ToolkitInfo, ExistingToolkitInfo, BootstrapStackNotFoundInfo;
|
|
193561
193745
|
var init_toolkit_info = __esm({
|
|
193562
193746
|
"../@aws-cdk/toolkit-lib/lib/api/toolkit-info.ts"() {
|
|
193563
193747
|
"use strict";
|
|
193564
|
-
|
|
193748
|
+
import_util31 = require("util");
|
|
193565
193749
|
chalk11 = __toESM(require_source());
|
|
193566
193750
|
init_bootstrap_props();
|
|
193567
193751
|
init_toolkit_error();
|
|
@@ -193581,7 +193765,7 @@ var init_toolkit_info = __esm({
|
|
|
193581
193765
|
const stack = await stabilizeStack(cfn, ioHelper, stackName);
|
|
193582
193766
|
if (!stack) {
|
|
193583
193767
|
await ioHelper.defaults.debug(
|
|
193584
|
-
(0,
|
|
193768
|
+
(0, import_util31.format)(
|
|
193585
193769
|
"The environment %s doesn't have the CDK toolkit stack (%s) installed. Use %s to setup your environment for use with the toolkit.",
|
|
193586
193770
|
environment.name,
|
|
193587
193771
|
stackName,
|
|
@@ -193592,7 +193776,7 @@ var init_toolkit_info = __esm({
|
|
|
193592
193776
|
}
|
|
193593
193777
|
if (stack.stackStatus.isCreationFailure) {
|
|
193594
193778
|
await ioHelper.defaults.debug(
|
|
193595
|
-
(0,
|
|
193779
|
+
(0, import_util31.format)(
|
|
193596
193780
|
"The environment %s has a CDK toolkit stack (%s) that failed to create. Use %s to try provisioning it again.",
|
|
193597
193781
|
environment.name,
|
|
193598
193782
|
stackName,
|
|
@@ -194145,11 +194329,11 @@ var init_environment2 = __esm({
|
|
|
194145
194329
|
function suffixWithErrors2(msg, errors) {
|
|
194146
194330
|
return errors && errors.length > 0 ? `${msg}: ${errors.join(", ")}` : msg;
|
|
194147
194331
|
}
|
|
194148
|
-
var
|
|
194332
|
+
var import_node_crypto5, cdk_assets, chalk12, BOOTSTRAP_STACK_VERSION_FOR_ROLLBACK, Deployments, ParallelSafeAssetProgress;
|
|
194149
194333
|
var init_deployments = __esm({
|
|
194150
194334
|
"../@aws-cdk/toolkit-lib/lib/api/deployments/deployments.ts"() {
|
|
194151
194335
|
"use strict";
|
|
194152
|
-
|
|
194336
|
+
import_node_crypto5 = require("node:crypto");
|
|
194153
194337
|
cdk_assets = __toESM(require_lib6());
|
|
194154
194338
|
chalk12 = __toESM(require_source());
|
|
194155
194339
|
init_asset_manifest_builder();
|
|
@@ -194320,7 +194504,7 @@ var init_deployments = __esm({
|
|
|
194320
194504
|
}
|
|
194321
194505
|
await cfn.deleteChangeSet({ StackName: deployName, ChangeSetName: changeSetName });
|
|
194322
194506
|
if (cloudFormationStack.stackStatus.name === "REVIEW_IN_PROGRESS") {
|
|
194323
|
-
await cfn.deleteStack({ StackName: deployName, ClientRequestToken: (0,
|
|
194507
|
+
await cfn.deleteStack({ StackName: deployName, ClientRequestToken: (0, import_node_crypto5.randomUUID)() });
|
|
194324
194508
|
await waitForStackDelete(cfn, this.ioHelper, deployName);
|
|
194325
194509
|
}
|
|
194326
194510
|
}
|
|
@@ -194376,7 +194560,7 @@ var init_deployments = __esm({
|
|
|
194376
194560
|
await cfn.rollbackStack({
|
|
194377
194561
|
StackName: stackArn,
|
|
194378
194562
|
RoleARN: executionRoleArn,
|
|
194379
|
-
ClientRequestToken: (0,
|
|
194563
|
+
ClientRequestToken: (0, import_node_crypto5.randomUUID)(),
|
|
194380
194564
|
// Enabling this is just the better overall default, the only reason it isn't the upstream default is backwards compatibility
|
|
194381
194565
|
RetainExceptOnCreate: true
|
|
194382
194566
|
});
|
|
@@ -194394,7 +194578,7 @@ var init_deployments = __esm({
|
|
|
194394
194578
|
await this.ioHelper.defaults.warn(`Continuing rollback of stack ${deployName}${skipDescription}`);
|
|
194395
194579
|
await cfn.continueUpdateRollback({
|
|
194396
194580
|
StackName: stackArn,
|
|
194397
|
-
ClientRequestToken: (0,
|
|
194581
|
+
ClientRequestToken: (0, import_node_crypto5.randomUUID)(),
|
|
194398
194582
|
RoleARN: executionRoleArn,
|
|
194399
194583
|
ResourcesToSkip: resourcesToSkip
|
|
194400
194584
|
});
|
|
@@ -197730,14 +197914,14 @@ var init_getProfileName = __esm({
|
|
|
197730
197914
|
});
|
|
197731
197915
|
|
|
197732
197916
|
// ../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
|
|
197733
|
-
var
|
|
197917
|
+
var import_node_crypto6, import_node_path2, getSSOTokenFilepath;
|
|
197734
197918
|
var init_getSSOTokenFilepath = __esm({
|
|
197735
197919
|
"../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js"() {
|
|
197736
|
-
|
|
197920
|
+
import_node_crypto6 = require("node:crypto");
|
|
197737
197921
|
import_node_path2 = require("node:path");
|
|
197738
197922
|
init_getHomeDir();
|
|
197739
197923
|
getSSOTokenFilepath = /* @__PURE__ */ __name((id) => {
|
|
197740
|
-
const hasher = (0,
|
|
197924
|
+
const hasher = (0, import_node_crypto6.createHash)("sha1");
|
|
197741
197925
|
const cacheName = hasher.update(id).digest("hex");
|
|
197742
197926
|
return (0, import_node_path2.join)(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
197743
197927
|
}, "getSSOTokenFilepath");
|
|
@@ -199972,10 +200156,10 @@ function castSourceData(toCast, encoding) {
|
|
|
199972
200156
|
}
|
|
199973
200157
|
return fromArrayBuffer(toCast);
|
|
199974
200158
|
}
|
|
199975
|
-
var
|
|
200159
|
+
var import_node_crypto7, Hash19;
|
|
199976
200160
|
var init_hash_node = __esm({
|
|
199977
200161
|
"../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/core/dist-es/submodules/serde/hash-node/hash-node.js"() {
|
|
199978
|
-
|
|
200162
|
+
import_node_crypto7 = require("node:crypto");
|
|
199979
200163
|
init_buffer_from();
|
|
199980
200164
|
init_toUint8Array();
|
|
199981
200165
|
Hash19 = class {
|
|
@@ -199997,7 +200181,7 @@ var init_hash_node = __esm({
|
|
|
199997
200181
|
return Promise.resolve(this.hash.digest());
|
|
199998
200182
|
}
|
|
199999
200183
|
reset() {
|
|
200000
|
-
this.hash = this.secret ? (0,
|
|
200184
|
+
this.hash = this.secret ? (0, import_node_crypto7.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_node_crypto7.createHash)(this.algorithmIdentifier);
|
|
200001
200185
|
}
|
|
200002
200186
|
};
|
|
200003
200187
|
__name(castSourceData, "castSourceData");
|
|
@@ -200998,10 +201182,10 @@ __export(serde_exports2, {
|
|
|
200998
201182
|
toUtf8: () => toUtf836,
|
|
200999
201183
|
v4: () => v42
|
|
201000
201184
|
});
|
|
201001
|
-
var
|
|
201185
|
+
var import_node_crypto8, Uint8ArrayBlobAdapter2, _getRandomValues, v42, generateIdempotencyToken2;
|
|
201002
201186
|
var init_serde3 = __esm({
|
|
201003
201187
|
"../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/core/dist-es/submodules/serde/index.js"() {
|
|
201004
|
-
|
|
201188
|
+
import_node_crypto8 = require("node:crypto");
|
|
201005
201189
|
init_fromBase64();
|
|
201006
201190
|
init_toBase64();
|
|
201007
201191
|
init_Uint8ArrayBlobAdapter();
|
|
@@ -201039,7 +201223,7 @@ var init_serde3 = __esm({
|
|
|
201039
201223
|
__name(this, "Uint8ArrayBlobAdapter");
|
|
201040
201224
|
}
|
|
201041
201225
|
};
|
|
201042
|
-
_getRandomValues =
|
|
201226
|
+
_getRandomValues = import_node_crypto8.getRandomValues;
|
|
201043
201227
|
v42 = bindV4(_getRandomValues);
|
|
201044
201228
|
generateIdempotencyToken2 = v42;
|
|
201045
201229
|
}
|
|
@@ -214885,10 +215069,10 @@ function castSourceData2(toCast, encoding) {
|
|
|
214885
215069
|
}
|
|
214886
215070
|
return fromArrayBuffer2(toCast);
|
|
214887
215071
|
}
|
|
214888
|
-
var
|
|
215072
|
+
var import_node_crypto9, Hash20;
|
|
214889
215073
|
var init_hash_node2 = __esm({
|
|
214890
215074
|
"../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/signature-v4/node_modules/@smithy/core/dist-es/submodules/serde/hash-node/hash-node.js"() {
|
|
214891
|
-
|
|
215075
|
+
import_node_crypto9 = require("node:crypto");
|
|
214892
215076
|
init_buffer_from2();
|
|
214893
215077
|
init_toUint8Array2();
|
|
214894
215078
|
Hash20 = class {
|
|
@@ -214910,7 +215094,7 @@ var init_hash_node2 = __esm({
|
|
|
214910
215094
|
return Promise.resolve(this.hash.digest());
|
|
214911
215095
|
}
|
|
214912
215096
|
reset() {
|
|
214913
|
-
this.hash = this.secret ? (0,
|
|
215097
|
+
this.hash = this.secret ? (0, import_node_crypto9.createHmac)(this.algorithmIdentifier, castSourceData2(this.secret)) : (0, import_node_crypto9.createHash)(this.algorithmIdentifier);
|
|
214914
215098
|
}
|
|
214915
215099
|
};
|
|
214916
215100
|
__name(castSourceData2, "castSourceData");
|
|
@@ -215911,10 +216095,10 @@ __export(serde_exports3, {
|
|
|
215911
216095
|
toUtf8: () => toUtf838,
|
|
215912
216096
|
v4: () => v43
|
|
215913
216097
|
});
|
|
215914
|
-
var
|
|
216098
|
+
var import_node_crypto10, Uint8ArrayBlobAdapter3, _getRandomValues2, v43, generateIdempotencyToken3;
|
|
215915
216099
|
var init_serde4 = __esm({
|
|
215916
216100
|
"../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/signature-v4/node_modules/@smithy/core/dist-es/submodules/serde/index.js"() {
|
|
215917
|
-
|
|
216101
|
+
import_node_crypto10 = require("node:crypto");
|
|
215918
216102
|
init_fromBase642();
|
|
215919
216103
|
init_toBase642();
|
|
215920
216104
|
init_Uint8ArrayBlobAdapter2();
|
|
@@ -215952,7 +216136,7 @@ var init_serde4 = __esm({
|
|
|
215952
216136
|
__name(this, "Uint8ArrayBlobAdapter");
|
|
215953
216137
|
}
|
|
215954
216138
|
};
|
|
215955
|
-
_getRandomValues2 =
|
|
216139
|
+
_getRandomValues2 = import_node_crypto10.getRandomValues;
|
|
215956
216140
|
v43 = bindV42(_getRandomValues2);
|
|
215957
216141
|
generateIdempotencyToken3 = v43;
|
|
215958
216142
|
}
|
|
@@ -217091,14 +217275,14 @@ var init_getProfileName3 = __esm({
|
|
|
217091
217275
|
});
|
|
217092
217276
|
|
|
217093
217277
|
// ../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
|
|
217094
|
-
var
|
|
217278
|
+
var import_node_crypto11, import_node_path13, getSSOTokenFilepath2;
|
|
217095
217279
|
var init_getSSOTokenFilepath2 = __esm({
|
|
217096
217280
|
"../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js"() {
|
|
217097
|
-
|
|
217281
|
+
import_node_crypto11 = require("node:crypto");
|
|
217098
217282
|
import_node_path13 = require("node:path");
|
|
217099
217283
|
init_getHomeDir3();
|
|
217100
217284
|
getSSOTokenFilepath2 = /* @__PURE__ */ __name((id) => {
|
|
217101
|
-
const hasher = (0,
|
|
217285
|
+
const hasher = (0, import_node_crypto11.createHash)("sha1");
|
|
217102
217286
|
const cacheName = hasher.update(id).digest("hex");
|
|
217103
217287
|
return (0, import_node_path13.join)(getHomeDir3(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
217104
217288
|
}, "getSSOTokenFilepath");
|
|
@@ -218945,10 +219129,10 @@ var init_sdk_stream_mixin3 = __esm({
|
|
|
218945
219129
|
});
|
|
218946
219130
|
|
|
218947
219131
|
// ../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/index.js
|
|
218948
|
-
var
|
|
219132
|
+
var import_node_crypto12, Uint8ArrayBlobAdapter4, _getRandomValues3, v44, generateIdempotencyToken4;
|
|
218949
219133
|
var init_serde5 = __esm({
|
|
218950
219134
|
"../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/index.js"() {
|
|
218951
|
-
|
|
219135
|
+
import_node_crypto12 = require("node:crypto");
|
|
218952
219136
|
init_fromBase643();
|
|
218953
219137
|
init_toBase643();
|
|
218954
219138
|
init_Uint8ArrayBlobAdapter3();
|
|
@@ -218969,7 +219153,7 @@ var init_serde5 = __esm({
|
|
|
218969
219153
|
__name(this, "Uint8ArrayBlobAdapter");
|
|
218970
219154
|
}
|
|
218971
219155
|
};
|
|
218972
|
-
_getRandomValues3 =
|
|
219156
|
+
_getRandomValues3 = import_node_crypto12.getRandomValues;
|
|
218973
219157
|
v44 = bindV43(_getRandomValues3);
|
|
218974
219158
|
generateIdempotencyToken4 = v44;
|
|
218975
219159
|
}
|
|
@@ -224139,10 +224323,10 @@ var init_sdk_stream_mixin4 = __esm({
|
|
|
224139
224323
|
});
|
|
224140
224324
|
|
|
224141
224325
|
// ../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/serde/index.js
|
|
224142
|
-
var
|
|
224326
|
+
var import_node_crypto13, Uint8ArrayBlobAdapter5, _getRandomValues4, v45, generateIdempotencyToken5;
|
|
224143
224327
|
var init_serde6 = __esm({
|
|
224144
224328
|
"../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/serde/index.js"() {
|
|
224145
|
-
|
|
224329
|
+
import_node_crypto13 = require("node:crypto");
|
|
224146
224330
|
init_fromBase644();
|
|
224147
224331
|
init_toBase644();
|
|
224148
224332
|
init_Uint8ArrayBlobAdapter4();
|
|
@@ -224163,7 +224347,7 @@ var init_serde6 = __esm({
|
|
|
224163
224347
|
__name(this, "Uint8ArrayBlobAdapter");
|
|
224164
224348
|
}
|
|
224165
224349
|
};
|
|
224166
|
-
_getRandomValues4 =
|
|
224350
|
+
_getRandomValues4 = import_node_crypto13.getRandomValues;
|
|
224167
224351
|
v45 = bindV44(_getRandomValues4);
|
|
224168
224352
|
generateIdempotencyToken5 = v45;
|
|
224169
224353
|
}
|
|
@@ -426165,11 +426349,11 @@ function sdkRequestHandler(agent) {
|
|
|
426165
426349
|
httpAgent: agent
|
|
426166
426350
|
};
|
|
426167
426351
|
}
|
|
426168
|
-
var
|
|
426352
|
+
var import_node_util3, import_credential_providers2, import_ec2_metadata_service, import_shared_ini_file_loader, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_TIMEOUT, AwsCliCompatible;
|
|
426169
426353
|
var init_awscli_compatible = __esm({
|
|
426170
426354
|
"../@aws-cdk/toolkit-lib/lib/api/aws-auth/awscli-compatible.ts"() {
|
|
426171
426355
|
"use strict";
|
|
426172
|
-
|
|
426356
|
+
import_node_util3 = require("node:util");
|
|
426173
426357
|
import_credential_providers2 = __toESM(require_dist_cjs128());
|
|
426174
426358
|
import_ec2_metadata_service = __toESM(require_dist_cjs222());
|
|
426175
426359
|
import_shared_ini_file_loader = __toESM(require_dist_cjs28());
|
|
@@ -426308,7 +426492,7 @@ var init_awscli_compatible = __esm({
|
|
|
426308
426492
|
* Result is send to callback function for SDK to authorize the request
|
|
426309
426493
|
*/
|
|
426310
426494
|
async tokenCodeFn(deviceArn) {
|
|
426311
|
-
const debugFn = /* @__PURE__ */ __name((msg, ...args) => this.ioHelper.defaults.debug((0,
|
|
426495
|
+
const debugFn = /* @__PURE__ */ __name((msg, ...args) => this.ioHelper.defaults.debug((0, import_node_util3.format)(msg, ...args)), "debugFn");
|
|
426312
426496
|
await debugFn("Require MFA token from MFA device with ARN", deviceArn);
|
|
426313
426497
|
try {
|
|
426314
426498
|
const token = await this.ioHelper.requestResponse(IO.CDK_SDK_I1100.req(`MFA token for ${deviceArn}`, {
|
|
@@ -426341,7 +426525,7 @@ async function v3ProviderFromPlugin(producer) {
|
|
|
426341
426525
|
} else if (isV2Credentials(initial)) {
|
|
426342
426526
|
return v3ProviderFromV2Credentials(initial);
|
|
426343
426527
|
} else {
|
|
426344
|
-
throw new AuthenticationError("InvalidPluginCredentials", `Plugin returned a value that doesn't resemble AWS credentials: ${(0,
|
|
426528
|
+
throw new AuthenticationError("InvalidPluginCredentials", `Plugin returned a value that doesn't resemble AWS credentials: ${(0, import_util42.inspect)(initial)}`);
|
|
426345
426529
|
}
|
|
426346
426530
|
}
|
|
426347
426531
|
function v3ProviderFromV2Credentials(x) {
|
|
@@ -426360,7 +426544,7 @@ function refreshFromPluginProvider(current, producer) {
|
|
|
426360
426544
|
if (credentialsAboutToExpire(current)) {
|
|
426361
426545
|
const newCreds = await producer();
|
|
426362
426546
|
if (!isV3Credentials(newCreds)) {
|
|
426363
|
-
throw new AuthenticationError("PluginCredentialTypeMismatch", `Plugin initially returned static V3 credentials but now returned something else: ${(0,
|
|
426547
|
+
throw new AuthenticationError("PluginCredentialTypeMismatch", `Plugin initially returned static V3 credentials but now returned something else: ${(0, import_util42.inspect)(newCreds)}`);
|
|
426364
426548
|
}
|
|
426365
426549
|
current = newCreds;
|
|
426366
426550
|
}
|
|
@@ -426376,11 +426560,11 @@ function isV2Credentials(x) {
|
|
|
426376
426560
|
function isV3Credentials(x) {
|
|
426377
426561
|
return !!(x && typeof x === "object" && x.accessKeyId && !isV2Credentials(x));
|
|
426378
426562
|
}
|
|
426379
|
-
var
|
|
426563
|
+
var import_util42, CredentialPlugins;
|
|
426380
426564
|
var init_credential_plugins = __esm({
|
|
426381
426565
|
"../@aws-cdk/toolkit-lib/lib/api/aws-auth/credential-plugins.ts"() {
|
|
426382
426566
|
"use strict";
|
|
426383
|
-
|
|
426567
|
+
import_util42 = require("util");
|
|
426384
426568
|
init_provider_caching();
|
|
426385
426569
|
init_toolkit_error();
|
|
426386
426570
|
init_util3();
|
|
@@ -426779,7 +426963,7 @@ function formatSdkLoggerContent(content) {
|
|
|
426779
426963
|
return apiFmt;
|
|
426780
426964
|
}
|
|
426781
426965
|
}
|
|
426782
|
-
return content.map((x) => typeof x === "string" ? x : (0,
|
|
426966
|
+
return content.map((x) => typeof x === "string" ? x : (0, import_util45.inspect)(x)).join("");
|
|
426783
426967
|
}
|
|
426784
426968
|
function formatApiCall(content) {
|
|
426785
426969
|
if (!isSdkApiCallSuccess(content) && !isSdkApiCallError(content)) {
|
|
@@ -426805,11 +426989,11 @@ function isSdkApiCallSuccess(x) {
|
|
|
426805
426989
|
function isSdkApiCallError(x) {
|
|
426806
426990
|
return x && typeof x === "object" && x.commandName && x.error;
|
|
426807
426991
|
}
|
|
426808
|
-
var
|
|
426992
|
+
var import_util45, IoHostSdkLogger;
|
|
426809
426993
|
var init_sdk_logger = __esm({
|
|
426810
426994
|
"../@aws-cdk/toolkit-lib/lib/api/aws-auth/sdk-logger.ts"() {
|
|
426811
426995
|
"use strict";
|
|
426812
|
-
|
|
426996
|
+
import_util45 = require("util");
|
|
426813
426997
|
init_util3();
|
|
426814
426998
|
init_private();
|
|
426815
426999
|
IoHostSdkLogger = class {
|
|
@@ -426821,7 +427005,7 @@ var init_sdk_logger = __esm({
|
|
|
426821
427005
|
this.ioHelper = ioHelper;
|
|
426822
427006
|
}
|
|
426823
427007
|
notify(level, ...content) {
|
|
426824
|
-
void this.ioHelper.notify(IO.CDK_SDK_I0100.msg((0,
|
|
427008
|
+
void this.ioHelper.notify(IO.CDK_SDK_I0100.msg((0, import_util45.format)("[SDK %s] %s", level, formatSdkLoggerContent(content)), {
|
|
426825
427009
|
sdkLevel: level,
|
|
426826
427010
|
content
|
|
426827
427011
|
}));
|
|
@@ -431700,14 +431884,14 @@ function settingsFromSynthOptions(synthOpts = {}) {
|
|
|
431700
431884
|
function parametersFromSynthOptions(synthOptions) {
|
|
431701
431885
|
return synthParametersFromSettings(settingsFromSynthOptions(synthOptions ?? {}));
|
|
431702
431886
|
}
|
|
431703
|
-
var import_dispose_polyfill4, os10, path31,
|
|
431887
|
+
var import_dispose_polyfill4, os10, path31, import_node_util4, import_cloud_assembly_api11, cxschema10, cxapi5, fs30, import_semver, ExecutionEnvironment;
|
|
431704
431888
|
var init_prepare_source = __esm({
|
|
431705
431889
|
"../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/prepare-source.ts"() {
|
|
431706
431890
|
"use strict";
|
|
431707
431891
|
import_dispose_polyfill4 = __toESM(require_dispose_polyfill());
|
|
431708
431892
|
os10 = __toESM(require("node:os"));
|
|
431709
431893
|
path31 = __toESM(require("node:path"));
|
|
431710
|
-
|
|
431894
|
+
import_node_util4 = require("node:util");
|
|
431711
431895
|
import_cloud_assembly_api11 = __toESM(require_lib3());
|
|
431712
431896
|
cxschema10 = __toESM(require_lib2());
|
|
431713
431897
|
cxapi5 = __toESM(require_lib12());
|
|
@@ -431845,10 +432029,10 @@ var init_prepare_source = __esm({
|
|
|
431845
432029
|
const debugFn = /* @__PURE__ */ __name((msg) => this.ioHelper.notify(IO.CDK_ASSEMBLY_I0010.msg(msg)), "debugFn");
|
|
431846
432030
|
const env3 = this.options.resolveDefaultAppEnv ? await prepareDefaultEnvironment(this.sdkProvider, debugFn) : {};
|
|
431847
432031
|
env3[cxapi5.OUTDIR_ENV] = this.outdir;
|
|
431848
|
-
await debugFn((0,
|
|
432032
|
+
await debugFn((0, import_node_util4.format)("outdir:", this.outdir));
|
|
431849
432033
|
env3[cxapi5.CLI_ASM_VERSION_ENV] = cxschema10.Manifest.version();
|
|
431850
432034
|
env3[cxapi5.CLI_VERSION_ENV] = versionNumber();
|
|
431851
|
-
await debugFn((0,
|
|
432035
|
+
await debugFn((0, import_node_util4.format)("env:", env3));
|
|
431852
432036
|
return env3;
|
|
431853
432037
|
}
|
|
431854
432038
|
/**
|
|
@@ -431913,12 +432097,12 @@ var init_readable_assembly = __esm({
|
|
|
431913
432097
|
});
|
|
431914
432098
|
|
|
431915
432099
|
// ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/source-builder.ts
|
|
431916
|
-
var path32,
|
|
432100
|
+
var path32, import_util50, cxapi6, fs32, CloudAssemblySourceBuilder;
|
|
431917
432101
|
var init_source_builder = __esm({
|
|
431918
432102
|
"../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/source-builder.ts"() {
|
|
431919
432103
|
"use strict";
|
|
431920
432104
|
path32 = __toESM(require("path"));
|
|
431921
|
-
|
|
432105
|
+
import_util50 = require("util");
|
|
431922
432106
|
cxapi6 = __toESM(require_lib3());
|
|
431923
432107
|
fs32 = __toESM(require_lib4());
|
|
431924
432108
|
init_context_store();
|
|
@@ -431984,7 +432168,7 @@ var init_source_builder = __esm({
|
|
|
431984
432168
|
...await contextStore.read(),
|
|
431985
432169
|
...synthParams.context
|
|
431986
432170
|
};
|
|
431987
|
-
await services.ioHelper.defaults.debug((0,
|
|
432171
|
+
await services.ioHelper.defaults.debug((0, import_util50.format)("context:", fullContext));
|
|
431988
432172
|
const env3 = noUndefined({
|
|
431989
432173
|
// Versioning, outdir, default account and region
|
|
431990
432174
|
...await execution.defaultEnvVars(),
|
|
@@ -432123,7 +432307,7 @@ var init_source_builder = __esm({
|
|
|
432123
432307
|
...await contextStore.read(),
|
|
432124
432308
|
...synthParams.context
|
|
432125
432309
|
};
|
|
432126
|
-
await services.ioHelper.defaults.debug((0,
|
|
432310
|
+
await services.ioHelper.defaults.debug((0, import_util50.format)("context:", fullContext));
|
|
432127
432311
|
const env3 = noUndefined({
|
|
432128
432312
|
// Need to start with full env of `writeContextToEnv` will not be able to do the size
|
|
432129
432313
|
// calculation correctly.
|
|
@@ -432803,11 +432987,11 @@ function obscureDiff(diff) {
|
|
|
432803
432987
|
});
|
|
432804
432988
|
}
|
|
432805
432989
|
}
|
|
432806
|
-
var
|
|
432990
|
+
var import_node_util5, import_cloudformation_diff, chalk14, DiffFormatter;
|
|
432807
432991
|
var init_diff_formatter = __esm({
|
|
432808
432992
|
"../@aws-cdk/toolkit-lib/lib/api/diff/diff-formatter.ts"() {
|
|
432809
432993
|
"use strict";
|
|
432810
|
-
|
|
432994
|
+
import_node_util5 = require("node:util");
|
|
432811
432995
|
import_cloudformation_diff = __toESM(require_lib10());
|
|
432812
432996
|
chalk14 = __toESM(require_source());
|
|
432813
432997
|
init_payloads();
|
|
@@ -432891,7 +433075,7 @@ var init_diff_formatter = __esm({
|
|
|
432891
433075
|
let filteredChangesCount = 0;
|
|
432892
433076
|
try {
|
|
432893
433077
|
if (stackName && (!options.quiet || !diff.isEmpty)) {
|
|
432894
|
-
stream.write((0,
|
|
433078
|
+
stream.write((0, import_node_util5.format)(`Stack ${chalk14.bold(stackName)}
|
|
432895
433079
|
`));
|
|
432896
433080
|
}
|
|
432897
433081
|
if (!options.quiet && this.isImport) {
|
|
@@ -432966,7 +433150,7 @@ var init_diff_formatter = __esm({
|
|
|
432966
433150
|
const permissionChangeType = permissionTypeFromDiff(diff);
|
|
432967
433151
|
const stream = new StringWriteStream();
|
|
432968
433152
|
if (!options.quiet || permissionChangeType !== "none" /* NONE */) {
|
|
432969
|
-
stream.write((0,
|
|
433153
|
+
stream.write((0, import_node_util5.format)(`Stack ${chalk14.bold(stackName)}
|
|
432970
433154
|
`));
|
|
432971
433155
|
}
|
|
432972
433156
|
try {
|
|
@@ -433049,11 +433233,11 @@ var init_io = __esm({
|
|
|
433049
433233
|
});
|
|
433050
433234
|
|
|
433051
433235
|
// ../@aws-cdk/toolkit-lib/lib/api/logs-monitor/logs-monitor.ts
|
|
433052
|
-
var
|
|
433236
|
+
var import_node_crypto14, util6, chalk15, CloudWatchLogEventMonitor;
|
|
433053
433237
|
var init_logs_monitor2 = __esm({
|
|
433054
433238
|
"../@aws-cdk/toolkit-lib/lib/api/logs-monitor/logs-monitor.ts"() {
|
|
433055
433239
|
"use strict";
|
|
433056
|
-
|
|
433240
|
+
import_node_crypto14 = require("node:crypto");
|
|
433057
433241
|
util6 = __toESM(require("node:util"));
|
|
433058
433242
|
chalk15 = __toESM(require_source());
|
|
433059
433243
|
init_util3();
|
|
@@ -433089,7 +433273,7 @@ var init_logs_monitor2 = __esm({
|
|
|
433089
433273
|
* resume reading/printing events
|
|
433090
433274
|
*/
|
|
433091
433275
|
async activate() {
|
|
433092
|
-
this.monitorId = (0,
|
|
433276
|
+
this.monitorId = (0, import_node_crypto14.randomUUID)();
|
|
433093
433277
|
await this.ioHelper.notify(IO.CDK_TOOLKIT_I5032.msg("Start monitoring log groups", {
|
|
433094
433278
|
monitor: this.monitorId,
|
|
433095
433279
|
logGroupNames: this.logGroupNames()
|
|
@@ -433356,11 +433540,11 @@ function removeNonImportResources(stack) {
|
|
|
433356
433540
|
delete template.Outputs;
|
|
433357
433541
|
return template;
|
|
433358
433542
|
}
|
|
433359
|
-
var
|
|
433543
|
+
var import_util55, cfnDiff, chalk16, fs33, ResourceImporter;
|
|
433360
433544
|
var init_importer = __esm({
|
|
433361
433545
|
"../@aws-cdk/toolkit-lib/lib/api/resource-import/importer.ts"() {
|
|
433362
433546
|
"use strict";
|
|
433363
|
-
|
|
433547
|
+
import_util55 = require("util");
|
|
433364
433548
|
cfnDiff = __toESM(require_lib10());
|
|
433365
433549
|
chalk16 = __toESM(require_source());
|
|
433366
433550
|
fs33 = __toESM(require_lib4());
|
|
@@ -433424,12 +433608,12 @@ var init_importer = __esm({
|
|
|
433424
433608
|
const descr = this.describeResource(resource.logicalId);
|
|
433425
433609
|
const idProps = remaining[resource.logicalId];
|
|
433426
433610
|
if (idProps) {
|
|
433427
|
-
await this.ioHelper.defaults.info((0,
|
|
433611
|
+
await this.ioHelper.defaults.info((0, import_util55.format)("%s: importing using %s", chalk16.blue(descr), chalk16.blue(fmtdict(idProps))));
|
|
433428
433612
|
ret.importResources.push(resource);
|
|
433429
433613
|
ret.resourceMap[resource.logicalId] = idProps;
|
|
433430
433614
|
delete remaining[resource.logicalId];
|
|
433431
433615
|
} else {
|
|
433432
|
-
await this.ioHelper.defaults.info((0,
|
|
433616
|
+
await this.ioHelper.defaults.info((0, import_util55.format)("%s: skipping", chalk16.blue(descr)));
|
|
433433
433617
|
}
|
|
433434
433618
|
}
|
|
433435
433619
|
const unknown = Object.keys(remaining);
|
|
@@ -433473,9 +433657,9 @@ var init_importer = __esm({
|
|
|
433473
433657
|
});
|
|
433474
433658
|
assertIsSuccessfulDeployStackResult(result2);
|
|
433475
433659
|
const message2 = result2.noOp ? " \u2705 %s (no changes)" : " \u2705 %s";
|
|
433476
|
-
await this.ioHelper.defaults.info("\n" + chalk16.green((0,
|
|
433660
|
+
await this.ioHelper.defaults.info("\n" + chalk16.green((0, import_util55.format)(message2, this.stack.displayName)));
|
|
433477
433661
|
} catch (e32) {
|
|
433478
|
-
await this.ioHelper.notify(IO.CDK_TOOLKIT_E3900.msg((0,
|
|
433662
|
+
await this.ioHelper.notify(IO.CDK_TOOLKIT_E3900.msg((0, import_util55.format)("\n \u274C %s failed: %s", chalk16.bold(this.stack.displayName), e32), { error: e32 }));
|
|
433479
433663
|
throw e32;
|
|
433480
433664
|
}
|
|
433481
433665
|
}
|
|
@@ -433605,7 +433789,7 @@ var init_importer = __esm({
|
|
|
433605
433789
|
for (const idProp of idProps) {
|
|
433606
433790
|
const defaultValue2 = resourceProps[idProp] ?? "";
|
|
433607
433791
|
const response = await this.ioHelper.requestResponse(IO.CDK_TOOLKIT_I3110.req(
|
|
433608
|
-
(0,
|
|
433792
|
+
(0, import_util55.format)(promptPattern, chalk16.blue(idProp)),
|
|
433609
433793
|
{
|
|
433610
433794
|
resource: {
|
|
433611
433795
|
name: resourceName,
|
|
@@ -435631,7 +435815,6 @@ __export(api_exports, {
|
|
|
435631
435815
|
some: () => some,
|
|
435632
435816
|
spaceAvailableForContext: () => spaceAvailableForContext,
|
|
435633
435817
|
synthParametersFromSettings: () => synthParametersFromSettings,
|
|
435634
|
-
templateContainsNestedStacks: () => templateContainsNestedStacks,
|
|
435635
435818
|
writeContextToEnv: () => writeContextToEnv
|
|
435636
435819
|
});
|
|
435637
435820
|
var init_api = __esm({
|
|
@@ -439298,7 +439481,7 @@ async function cfnDiff2(ioHelper, stacks, deployments, options, sdkProvider, inc
|
|
|
439298
439481
|
parameters: methodOptions.parameters ?? {},
|
|
439299
439482
|
failOnError: !(methodOptions.fallbackToTemplate ?? true),
|
|
439300
439483
|
importExistingResources: methodOptions.importExistingResources,
|
|
439301
|
-
uuid: (0,
|
|
439484
|
+
uuid: (0, import_node_crypto15.randomUUID)(),
|
|
439302
439485
|
willExecute: false
|
|
439303
439486
|
}) : void 0;
|
|
439304
439487
|
if (changeSet) {
|
|
@@ -439349,11 +439532,11 @@ function appendObject(obj1, obj2) {
|
|
|
439349
439532
|
}
|
|
439350
439533
|
return obj1;
|
|
439351
439534
|
}
|
|
439352
|
-
var
|
|
439535
|
+
var import_node_crypto15, fs35;
|
|
439353
439536
|
var init_helpers5 = __esm({
|
|
439354
439537
|
"../@aws-cdk/toolkit-lib/lib/actions/diff/private/helpers.ts"() {
|
|
439355
439538
|
"use strict";
|
|
439356
|
-
|
|
439539
|
+
import_node_crypto15 = require("node:crypto");
|
|
439357
439540
|
fs35 = __toESM(require_lib4());
|
|
439358
439541
|
init_diff4();
|
|
439359
439542
|
init_cfn_api();
|
|
@@ -439487,11 +439670,11 @@ var init_tags2 = __esm({
|
|
|
439487
439670
|
});
|
|
439488
439671
|
|
|
439489
439672
|
// ../@aws-cdk/toolkit-lib/lib/api/drift/drift-formatter.ts
|
|
439490
|
-
var
|
|
439673
|
+
var import_node_util6, import_cloudformation_diff3, import_client_cloudformation5, chalk23, DriftFormatter, ADDITION3, CONTEXT2, UPDATE3, REMOVAL3;
|
|
439491
439674
|
var init_drift_formatter = __esm({
|
|
439492
439675
|
"../@aws-cdk/toolkit-lib/lib/api/drift/drift-formatter.ts"() {
|
|
439493
439676
|
"use strict";
|
|
439494
|
-
|
|
439677
|
+
import_node_util6 = require("node:util");
|
|
439495
439678
|
import_cloudformation_diff3 = __toESM(require_lib10());
|
|
439496
439679
|
import_client_cloudformation5 = __toESM(require_dist_cjs144());
|
|
439497
439680
|
chalk23 = __toESM(require_source());
|
|
@@ -439523,7 +439706,7 @@ var init_drift_formatter = __esm({
|
|
|
439523
439706
|
formatStackDrift() {
|
|
439524
439707
|
const formatterOutput = this.formatStackDriftChanges(buildLogicalToPathMap(this.stack).toPath);
|
|
439525
439708
|
const actualDrifts = this.resourceDriftResults.filter((d32) => (d32.StackResourceDriftStatus === "MODIFIED" || d32.StackResourceDriftStatus === "DELETED") && d32.ResourceType !== "AWS::CDK::Metadata");
|
|
439526
|
-
const stackHeader = (0,
|
|
439709
|
+
const stackHeader = (0, import_node_util6.format)(`Stack ${chalk23.bold(this.stackName)}
|
|
439527
439710
|
`);
|
|
439528
439711
|
if (actualDrifts.length === 0) {
|
|
439529
439712
|
const finalResult2 = chalk23.green("No drift detected\n");
|
|
@@ -439645,15 +439828,15 @@ ${actualDrifts.length} resource${actualDrifts.length === 1 ? "" : "s"} ${actualD
|
|
|
439645
439828
|
return "\n";
|
|
439646
439829
|
}
|
|
439647
439830
|
formatTreeDiff(propertyPath, difference2, isLast) {
|
|
439648
|
-
let result2 = (0,
|
|
439831
|
+
let result2 = (0, import_node_util6.format)(
|
|
439649
439832
|
" %s\u2500 %s %s\n",
|
|
439650
439833
|
isLast ? "\u2514" : "\u251C",
|
|
439651
439834
|
difference2.isAddition ? ADDITION3 : difference2.isRemoval ? REMOVAL3 : UPDATE3,
|
|
439652
439835
|
propertyPath
|
|
439653
439836
|
);
|
|
439654
439837
|
if (difference2.isUpdate) {
|
|
439655
|
-
result2 += (0,
|
|
439656
|
-
result2 += (0,
|
|
439838
|
+
result2 += (0, import_node_util6.format)(" \u251C\u2500 %s %s\n", REMOVAL3, chalk23.red(difference2.oldValue));
|
|
439839
|
+
result2 += (0, import_node_util6.format)(" \u2514\u2500 %s %s\n", ADDITION3, chalk23.green(difference2.newValue));
|
|
439657
439840
|
}
|
|
439658
439841
|
return result2;
|
|
439659
439842
|
}
|
|
@@ -439671,7 +439854,7 @@ async function detectStackDrift(cfn, ioHelper, stackName) {
|
|
|
439671
439854
|
StackName: stackName
|
|
439672
439855
|
});
|
|
439673
439856
|
await ioHelper.defaults.trace(
|
|
439674
|
-
(0,
|
|
439857
|
+
(0, import_node_util7.format)("Detecting drift with ID %s for stack %s...", driftDetection.StackDriftDetectionId, stackName)
|
|
439675
439858
|
);
|
|
439676
439859
|
const driftStatus = await waitForDriftDetection(cfn, ioHelper, driftDetection.StackDriftDetectionId);
|
|
439677
439860
|
if (driftStatus?.StackDriftStatus === "UNKNOWN") {
|
|
@@ -439721,11 +439904,11 @@ async function waitForDriftDetection(cfn, ioHelper, driftDetectionId) {
|
|
|
439721
439904
|
await new Promise((resolve15) => setTimeout(resolve15, timeBetweenApiCalls));
|
|
439722
439905
|
}
|
|
439723
439906
|
}
|
|
439724
|
-
var
|
|
439907
|
+
var import_node_util7;
|
|
439725
439908
|
var init_drift2 = __esm({
|
|
439726
439909
|
"../@aws-cdk/toolkit-lib/lib/api/drift/drift.ts"() {
|
|
439727
439910
|
"use strict";
|
|
439728
|
-
|
|
439911
|
+
import_node_util7 = require("node:util");
|
|
439729
439912
|
init_toolkit_error();
|
|
439730
439913
|
init_string_manipulation();
|
|
439731
439914
|
__name(detectStackDrift, "detectStackDrift");
|
|
@@ -442014,7 +442197,7 @@ async function getOrCreateInstallationId(ioHelper) {
|
|
|
442014
442197
|
return cachedId;
|
|
442015
442198
|
}
|
|
442016
442199
|
}
|
|
442017
|
-
const newId = (0,
|
|
442200
|
+
const newId = (0, import_node_crypto16.randomUUID)();
|
|
442018
442201
|
try {
|
|
442019
442202
|
fs37.writeFileSync(INSTALLATION_ID_PATH, newId);
|
|
442020
442203
|
} catch (e32) {
|
|
@@ -442023,14 +442206,14 @@ async function getOrCreateInstallationId(ioHelper) {
|
|
|
442023
442206
|
return newId;
|
|
442024
442207
|
} catch (e32) {
|
|
442025
442208
|
await ioHelper.defaults.trace(`Error getting installation ID: ${e32}`);
|
|
442026
|
-
return (0,
|
|
442209
|
+
return (0, import_node_crypto16.randomUUID)();
|
|
442027
442210
|
}
|
|
442028
442211
|
}
|
|
442029
|
-
var
|
|
442212
|
+
var import_node_crypto16, fs37, path35, INSTALLATION_ID_PATH;
|
|
442030
442213
|
var init_installation_id = __esm({
|
|
442031
442214
|
"lib/cli/telemetry/installation-id.ts"() {
|
|
442032
442215
|
"use strict";
|
|
442033
|
-
|
|
442216
|
+
import_node_crypto16 = require("node:crypto");
|
|
442034
442217
|
fs37 = __toESM(require("node:fs"));
|
|
442035
442218
|
path35 = __toESM(require("node:path"));
|
|
442036
442219
|
init_util9();
|
|
@@ -442043,7 +442226,7 @@ var init_installation_id = __esm({
|
|
|
442043
442226
|
async function getLibraryVersion(ioHelper) {
|
|
442044
442227
|
try {
|
|
442045
442228
|
const command = `node -e 'process.stdout.write(require.resolve("aws-cdk-lib"))'`;
|
|
442046
|
-
const { stdout } = await (0,
|
|
442229
|
+
const { stdout } = await (0, import_util68.promisify)(import_child_process.exec)(command);
|
|
442047
442230
|
if (!fs38.existsSync(stdout)) {
|
|
442048
442231
|
await ioHelper.defaults.trace('Could not get CDK Library Version: require.resolve("aws-cdk-lib") did not return a file path');
|
|
442049
442232
|
return;
|
|
@@ -442060,13 +442243,13 @@ async function getLibraryVersion(ioHelper) {
|
|
|
442060
442243
|
return;
|
|
442061
442244
|
}
|
|
442062
442245
|
}
|
|
442063
|
-
var import_child_process, path36,
|
|
442246
|
+
var import_child_process, path36, import_util68, fs38;
|
|
442064
442247
|
var init_library_version = __esm({
|
|
442065
442248
|
"lib/cli/telemetry/library-version.ts"() {
|
|
442066
442249
|
"use strict";
|
|
442067
442250
|
import_child_process = require("child_process");
|
|
442068
442251
|
path36 = __toESM(require("path"));
|
|
442069
|
-
|
|
442252
|
+
import_util68 = require("util");
|
|
442070
442253
|
fs38 = __toESM(require_lib4());
|
|
442071
442254
|
__name(getLibraryVersion, "getLibraryVersion");
|
|
442072
442255
|
}
|
|
@@ -443578,11 +443761,11 @@ function isAbortedError(error5) {
|
|
|
443578
443761
|
function mutable(x) {
|
|
443579
443762
|
return x;
|
|
443580
443763
|
}
|
|
443581
|
-
var
|
|
443764
|
+
var import_node_crypto17, import_toolkit_lib3, ABORTED_ERROR_MESSAGE, TelemetrySession;
|
|
443582
443765
|
var init_session = __esm({
|
|
443583
443766
|
"lib/cli/telemetry/session.ts"() {
|
|
443584
443767
|
"use strict";
|
|
443585
|
-
|
|
443768
|
+
import_node_crypto17 = require("node:crypto");
|
|
443586
443769
|
import_toolkit_lib3 = __toESM(require_lib13());
|
|
443587
443770
|
init_installation_id();
|
|
443588
443771
|
init_library_version();
|
|
@@ -443608,7 +443791,7 @@ var init_session = __esm({
|
|
|
443608
443791
|
this._sessionInfo = {
|
|
443609
443792
|
identifiers: {
|
|
443610
443793
|
installationId: await getOrCreateInstallationId(this.ioHost.asIoHelper()),
|
|
443611
|
-
sessionId: (0,
|
|
443794
|
+
sessionId: (0, import_node_crypto17.randomUUID)(),
|
|
443612
443795
|
telemetryVersion: "2.0",
|
|
443613
443796
|
cdkCliVersion: versionNumber2(),
|
|
443614
443797
|
cdkLibraryVersion: await getLibraryVersion(this.ioHost.asIoHelper())
|
|
@@ -444993,7 +445176,7 @@ async function execProgram(aws, ioHelper, config2) {
|
|
|
444993
445176
|
...config2.context.all,
|
|
444994
445177
|
...params.context
|
|
444995
445178
|
};
|
|
444996
|
-
await debugFn((0,
|
|
445179
|
+
await debugFn((0, import_util70.format)("context:", context));
|
|
444997
445180
|
if (params.env.CDK_DEBUG === "true") {
|
|
444998
445181
|
await ioHelper.defaults.info("\u{1F50D} Synthesizing with debug information. This may take a bit longer.");
|
|
444999
445182
|
}
|
|
@@ -445043,7 +445226,7 @@ async function execProgram(aws, ioHelper, config2) {
|
|
|
445043
445226
|
const perfCountersFile = path39.join(outdir, "performance-counters.json");
|
|
445044
445227
|
await fs43.promises.rm(perfCountersFile, { force: true });
|
|
445045
445228
|
env3.CDK_PERF_COUNTERS_FILE = perfCountersFile;
|
|
445046
|
-
await debugFn((0,
|
|
445229
|
+
await debugFn((0, import_util70.format)("env:", env3));
|
|
445047
445230
|
const cleanupTemp = writeContextToEnv(env3, context, "add-process-env-later");
|
|
445048
445231
|
try {
|
|
445049
445232
|
await exec5(commandLine);
|
|
@@ -445096,12 +445279,12 @@ function createAssembly(appDir) {
|
|
|
445096
445279
|
function noUndefined2(xs) {
|
|
445097
445280
|
return Object.fromEntries(Object.entries(xs).filter(([_2, v]) => v !== void 0));
|
|
445098
445281
|
}
|
|
445099
|
-
var path39,
|
|
445282
|
+
var path39, import_util70, import_cloud_assembly_api16, cxschema11, cxapi10, import_toolkit_lib12, fs43;
|
|
445100
445283
|
var init_exec2 = __esm({
|
|
445101
445284
|
"lib/cxapp/exec.ts"() {
|
|
445102
445285
|
"use strict";
|
|
445103
445286
|
path39 = __toESM(require("path"));
|
|
445104
|
-
|
|
445287
|
+
import_util70 = require("util");
|
|
445105
445288
|
import_cloud_assembly_api16 = __toESM(require_lib3());
|
|
445106
445289
|
cxschema11 = __toESM(require_lib2());
|
|
445107
445290
|
cxapi10 = __toESM(require_lib12());
|
|
@@ -448013,13 +448196,13 @@ function stackMetadataLogger(ioHelper, verbose) {
|
|
|
448013
448196
|
function requiresApproval(requireApproval, permissionChangeType) {
|
|
448014
448197
|
return requireApproval === import_cloud_assembly_schema7.RequireApproval.ANYCHANGE || requireApproval === import_cloud_assembly_schema7.RequireApproval.BROADENING && permissionChangeType === import_toolkit_lib18.PermissionChangeType.BROADENING;
|
|
448015
448198
|
}
|
|
448016
|
-
var
|
|
448199
|
+
var import_node_crypto18, path44, import_node_util8, cxapi11, import_cloud_assembly_schema7, import_toolkit_lib18, chalk31, fs47, pLimit5, FILE_EVENTS2, InternalToolkit, CdkToolkit;
|
|
448017
448200
|
var init_cdk_toolkit = __esm({
|
|
448018
448201
|
"lib/cli/cdk-toolkit.ts"() {
|
|
448019
448202
|
"use strict";
|
|
448020
|
-
|
|
448203
|
+
import_node_crypto18 = require("node:crypto");
|
|
448021
448204
|
path44 = __toESM(require("node:path"));
|
|
448022
|
-
|
|
448205
|
+
import_node_util8 = require("node:util");
|
|
448023
448206
|
cxapi11 = __toESM(require_lib3());
|
|
448024
448207
|
import_cloud_assembly_schema7 = __toESM(require_lib2());
|
|
448025
448208
|
import_toolkit_lib18 = __toESM(require_lib13());
|
|
@@ -448205,7 +448388,7 @@ var init_cdk_toolkit = __esm({
|
|
|
448205
448388
|
}
|
|
448206
448389
|
}
|
|
448207
448390
|
}
|
|
448208
|
-
await this.ioHost.asIoHelper().defaults.info((0,
|
|
448391
|
+
await this.ioHost.asIoHelper().defaults.info((0, import_node_util8.format)("\n\u2728 Number of stacks with differences: %s\n", diffs));
|
|
448209
448392
|
return diffs && options.fail ? 1 : 0;
|
|
448210
448393
|
}
|
|
448211
448394
|
/**
|
|
@@ -448234,7 +448417,7 @@ var init_cdk_toolkit = __esm({
|
|
|
448234
448417
|
}
|
|
448235
448418
|
return cfn_api_exports.createDiffChangeSet(asIoHelper(this.ioHost, "diff"), {
|
|
448236
448419
|
stack,
|
|
448237
|
-
uuid: (0,
|
|
448420
|
+
uuid: (0, import_node_crypto18.randomUUID)(),
|
|
448238
448421
|
deployments: this.props.deployments,
|
|
448239
448422
|
willExecute: false,
|
|
448240
448423
|
sdkProvider: this.props.sdkProvider,
|
|
@@ -449284,14 +449467,14 @@ async function execNpmView(currentVersion) {
|
|
|
449284
449467
|
throw err;
|
|
449285
449468
|
}
|
|
449286
449469
|
}
|
|
449287
|
-
var import_child_process2,
|
|
449470
|
+
var import_child_process2, import_util75, import_toolkit_lib19, exec2;
|
|
449288
449471
|
var init_npm = __esm({
|
|
449289
449472
|
"lib/cli/util/npm.ts"() {
|
|
449290
449473
|
"use strict";
|
|
449291
449474
|
import_child_process2 = require("child_process");
|
|
449292
|
-
|
|
449475
|
+
import_util75 = require("util");
|
|
449293
449476
|
import_toolkit_lib19 = __toESM(require_lib13());
|
|
449294
|
-
exec2 = (0,
|
|
449477
|
+
exec2 = (0, import_util75.promisify)(import_child_process2.exec);
|
|
449295
449478
|
__name(execNpmView, "execNpmView");
|
|
449296
449479
|
}
|
|
449297
449480
|
});
|
|
@@ -483913,7 +484096,7 @@ async function docs(options) {
|
|
|
483913
484096
|
await ioHelper.defaults.info(chalk35.green(url));
|
|
483914
484097
|
const browserCommand = options.browser.replace(/%u/g, url);
|
|
483915
484098
|
await ioHelper.defaults.debug(`Opening documentation ${chalk35.green(browserCommand)}`);
|
|
483916
|
-
const exec5 = (0,
|
|
484099
|
+
const exec5 = (0, import_node_util9.promisify)(childProcess2.exec);
|
|
483917
484100
|
try {
|
|
483918
484101
|
const { stdout, stderr } = await exec5(browserCommand);
|
|
483919
484102
|
if (stdout) {
|
|
@@ -483928,12 +484111,12 @@ async function docs(options) {
|
|
|
483928
484111
|
}
|
|
483929
484112
|
return 0;
|
|
483930
484113
|
}
|
|
483931
|
-
var childProcess2,
|
|
484114
|
+
var childProcess2, import_node_util9, chalk35;
|
|
483932
484115
|
var init_docs = __esm({
|
|
483933
484116
|
"lib/commands/docs.ts"() {
|
|
483934
484117
|
"use strict";
|
|
483935
484118
|
childProcess2 = __toESM(require("child_process"));
|
|
483936
|
-
|
|
484119
|
+
import_node_util9 = require("node:util");
|
|
483937
484120
|
chalk35 = __toESM(require_source());
|
|
483938
484121
|
__name(docs, "docs");
|
|
483939
484122
|
}
|
|
@@ -488939,15 +489122,17 @@ function collectKnownOptions(optionDefs) {
|
|
|
488939
489122
|
}
|
|
488940
489123
|
function findUnknownOptions(argv) {
|
|
488941
489124
|
const command = argv._[0];
|
|
488942
|
-
const
|
|
489125
|
+
const canonicalCommand = commandAliasMap.get(command) ?? command;
|
|
489126
|
+
const commandDef = config.commands[canonicalCommand];
|
|
488943
489127
|
const commandKnownOptions = commandDef?.options ? collectKnownOptions(commandDef.options) : /* @__PURE__ */ new Set();
|
|
488944
|
-
const
|
|
489128
|
+
const positionalArgRaw = commandDef?.arg?.name;
|
|
489129
|
+
const positionalArgs = positionalArgRaw ? /* @__PURE__ */ new Set([positionalArgRaw, positionalArgRaw.toLowerCase()]) : /* @__PURE__ */ new Set();
|
|
488945
489130
|
const unknown = [];
|
|
488946
489131
|
for (const key of Object.keys(argv)) {
|
|
488947
489132
|
if (argv[key] === void 0) {
|
|
488948
489133
|
continue;
|
|
488949
489134
|
}
|
|
488950
|
-
if (yargsInternals.has(key) || key
|
|
489135
|
+
if (yargsInternals.has(key) || positionalArgs.has(key)) {
|
|
488951
489136
|
continue;
|
|
488952
489137
|
}
|
|
488953
489138
|
if (globalKnownOptions.has(key) || commandKnownOptions.has(key)) {
|
|
@@ -488967,13 +489152,21 @@ function isFromEnvPrefix(key, prefix) {
|
|
|
488967
489152
|
const screamingSnake = key.replace(/[A-Z]/g, (m20) => `_${m20}`).toUpperCase();
|
|
488968
489153
|
return process.env[`${prefix}_${screamingSnake}`] !== void 0;
|
|
488969
489154
|
}
|
|
488970
|
-
var config, globalKnownOptions, yargsInternals;
|
|
489155
|
+
var config, globalKnownOptions, commandAliasMap, yargsInternals;
|
|
488971
489156
|
var init_check_unknown_options = __esm({
|
|
488972
489157
|
"lib/cli/util/check-unknown-options.ts"() {
|
|
488973
489158
|
"use strict";
|
|
488974
489159
|
config = require_cli_type_registry();
|
|
488975
489160
|
__name(collectKnownOptions, "collectKnownOptions");
|
|
488976
489161
|
globalKnownOptions = collectKnownOptions(config.globalOptions);
|
|
489162
|
+
commandAliasMap = /* @__PURE__ */ new Map();
|
|
489163
|
+
for (const [name, def] of Object.entries(config.commands)) {
|
|
489164
|
+
if (def.aliases) {
|
|
489165
|
+
for (const alias of def.aliases) {
|
|
489166
|
+
commandAliasMap.set(alias, name);
|
|
489167
|
+
}
|
|
489168
|
+
}
|
|
489169
|
+
}
|
|
488977
489170
|
yargsInternals = /* @__PURE__ */ new Set(["_", "$0", "help", "h", "version"]);
|
|
488978
489171
|
__name(findUnknownOptions, "findUnknownOptions");
|
|
488979
489172
|
__name(kebabToCamel, "kebabToCamel");
|