@aws-cdk/integ-runner 2.203.0 → 2.203.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/lib/workers/extract/index.js +33 -29
- package/package.json +4 -4
|
@@ -4766,7 +4766,7 @@ var require_semver2 = __commonJS({
|
|
|
4766
4766
|
// ../cloud-assembly-schema/cli-version.json
|
|
4767
4767
|
var require_cli_version = __commonJS({
|
|
4768
4768
|
"../cloud-assembly-schema/cli-version.json"(exports2, module2) {
|
|
4769
|
-
module2.exports = { version: "2.1132.
|
|
4769
|
+
module2.exports = { version: "2.1132.1" };
|
|
4770
4770
|
}
|
|
4771
4771
|
});
|
|
4772
4772
|
|
|
@@ -289953,7 +289953,7 @@ function ensureNonEmptyResources(template) {
|
|
|
289953
289953
|
};
|
|
289954
289954
|
}
|
|
289955
289955
|
}
|
|
289956
|
-
function
|
|
289956
|
+
function resolveStackAndConstructPaths(paths, availableStackIds) {
|
|
289957
289957
|
if (paths.length === 0) {
|
|
289958
289958
|
throw new ToolkitError("MissingConstructPath", "At least one construct path is required (e.g. cdk orphan MyStack/MyTable)");
|
|
289959
289959
|
}
|
|
@@ -289961,25 +289961,31 @@ function parseAndValidateConstructPaths(paths) {
|
|
|
289961
289961
|
let stackId;
|
|
289962
289962
|
for (const raw of paths) {
|
|
289963
289963
|
const p3 = raw.replace(/^\//, "");
|
|
289964
|
-
const
|
|
289965
|
-
if (
|
|
289966
|
-
throw new ToolkitError(
|
|
289964
|
+
const matchedStack = availableStackIds.filter((id) => p3 === id || p3.startsWith(`${id}/`)).sort((a6, b6) => b6.length - a6.length)[0];
|
|
289965
|
+
if (!matchedStack) {
|
|
289966
|
+
throw new ToolkitError(
|
|
289967
|
+
"StackNotFound",
|
|
289968
|
+
`No stack found for construct path '${raw}'. Available stacks: ${availableStackIds.join(", ")}`
|
|
289969
|
+
);
|
|
289970
|
+
}
|
|
289971
|
+
const constructPath = p3.substring(matchedStack.length + 1);
|
|
289972
|
+
if (constructPath === "") {
|
|
289973
|
+
throw new ToolkitError(
|
|
289974
|
+
"InvalidConstructPath",
|
|
289975
|
+
`Construct path '${raw}' must include a construct path within the stack (e.g. ${matchedStack}/MyTable)`
|
|
289976
|
+
);
|
|
289967
289977
|
}
|
|
289968
|
-
|
|
289969
|
-
|
|
289970
|
-
if (stackId && thisStack !== stackId) {
|
|
289971
|
-
throw new ToolkitError("MultipleStacks", `All construct paths must reference the same stack, but got '${stackId}' and '${thisStack}'`);
|
|
289978
|
+
if (stackId && matchedStack !== stackId) {
|
|
289979
|
+
throw new ToolkitError("MultipleStacks", `All construct paths must reference the same stack, but got '${stackId}' and '${matchedStack}'`);
|
|
289972
289980
|
}
|
|
289973
|
-
stackId =
|
|
289981
|
+
stackId = matchedStack;
|
|
289974
289982
|
constructPaths.push(constructPath);
|
|
289975
289983
|
}
|
|
289976
289984
|
return { stackId, constructPaths };
|
|
289977
289985
|
}
|
|
289978
|
-
var import_cloud_assembly_api16;
|
|
289979
289986
|
var init_helpers6 = __esm({
|
|
289980
289987
|
"../toolkit-lib/lib/api/orphan/private/helpers.ts"() {
|
|
289981
289988
|
"use strict";
|
|
289982
|
-
import_cloud_assembly_api16 = __toESM(require_lib3());
|
|
289983
289989
|
init_toolkit_error();
|
|
289984
289990
|
__name(walkObject, "walkObject");
|
|
289985
289991
|
__name(replaceInObject, "replaceInObject");
|
|
@@ -289987,7 +289993,7 @@ var init_helpers6 = __esm({
|
|
|
289987
289993
|
__name(removeDependsOn, "removeDependsOn");
|
|
289988
289994
|
__name(assertDeploySucceeded, "assertDeploySucceeded");
|
|
289989
289995
|
__name(ensureNonEmptyResources, "ensureNonEmptyResources");
|
|
289990
|
-
__name(
|
|
289996
|
+
__name(resolveStackAndConstructPaths, "resolveStackAndConstructPaths");
|
|
289991
289997
|
}
|
|
289992
289998
|
});
|
|
289993
289999
|
|
|
@@ -290376,6 +290382,7 @@ function formatValidationReports(fileRoot, reports) {
|
|
|
290376
290382
|
});
|
|
290377
290383
|
return [
|
|
290378
290384
|
...pluginFailures.map(formatPluginFailure),
|
|
290385
|
+
...successfullyExecutedPlugins.flatMap((r6) => r6.preamble ? [`${import_chalk27.default.underline(sanitize(r6.pluginName))}: ${sanitize(r6.preamble)}`] : []),
|
|
290379
290386
|
...violations.map((v) => formatViolationBlock(fileRoot, v))
|
|
290380
290387
|
];
|
|
290381
290388
|
}
|
|
@@ -290452,7 +290459,7 @@ function formatConstructInfo(fileRoot, construct) {
|
|
|
290452
290459
|
const logicalId = sanitize(construct.cloudFormationResource?.logicalId);
|
|
290453
290460
|
if (construct.constructPath) {
|
|
290454
290461
|
const cPath = sanitize(construct.constructPath);
|
|
290455
|
-
parts.push(logicalId ? `${
|
|
290462
|
+
parts.push(logicalId ? `${cPath} (${logicalId})` : cPath);
|
|
290456
290463
|
} else {
|
|
290457
290464
|
if (construct.cloudFormationResource?.templatePath) {
|
|
290458
290465
|
parts.push(humanFriendlyFilename(fileRoot, sanitize(construct.cloudFormationResource.templatePath)));
|
|
@@ -291815,16 +291822,13 @@ ${deployResult.stackArn}`));
|
|
|
291815
291822
|
try {
|
|
291816
291823
|
this.requireUnstableFeature("orphan");
|
|
291817
291824
|
const ioHelper = asIoHelper(this.ioHost, "orphan");
|
|
291818
|
-
const parsed = parseAndValidateConstructPaths(options.constructPaths);
|
|
291819
291825
|
const assembly = __using(_stack, await synthAndMeasure(ioHelper, cx, ALL_STACKS), true);
|
|
291820
291826
|
const allStacks = await assembly.selectStacksV2(ALL_STACKS);
|
|
291827
|
+
const parsed = resolveStackAndConstructPaths(
|
|
291828
|
+
options.constructPaths,
|
|
291829
|
+
allStacks.stackArtifacts.map((s) => s.hierarchicalId)
|
|
291830
|
+
);
|
|
291821
291831
|
const stack = allStacks.stackArtifacts.find((s) => s.hierarchicalId === parsed.stackId);
|
|
291822
|
-
if (!stack) {
|
|
291823
|
-
throw new ToolkitError(
|
|
291824
|
-
"StackNotFound",
|
|
291825
|
-
`No stack found with construct ID '${parsed.stackId}'. Available stacks: ${allStacks.stackArtifacts.map((s) => s.hierarchicalId).join(", ")}`
|
|
291826
|
-
);
|
|
291827
|
-
}
|
|
291828
291832
|
const deployments = await this.deploymentsForAction("orphan");
|
|
291829
291833
|
const orphaner = new ResourceOrphaner({
|
|
291830
291834
|
deployments,
|
|
@@ -321423,12 +321427,12 @@ var init_proxy_agent = __esm({
|
|
|
321423
321427
|
});
|
|
321424
321428
|
|
|
321425
321429
|
// lib/engines/toolkit-lib.ts
|
|
321426
|
-
var path38,
|
|
321430
|
+
var path38, import_cloud_assembly_api16, import_toolkit_lib, import_chalk29, fs41, ToolkitLibRunnerEngine, IntegRunnerIoHost, NoopIoHost;
|
|
321427
321431
|
var init_toolkit_lib = __esm({
|
|
321428
321432
|
"lib/engines/toolkit-lib.ts"() {
|
|
321429
321433
|
"use strict";
|
|
321430
321434
|
path38 = __toESM(require("node:path"));
|
|
321431
|
-
|
|
321435
|
+
import_cloud_assembly_api16 = __toESM(require_lib3());
|
|
321432
321436
|
import_toolkit_lib = __toESM(require_lib11());
|
|
321433
321437
|
import_chalk29 = __toESM(require_source());
|
|
321434
321438
|
fs41 = __toESM(require_lib4());
|
|
@@ -321655,11 +321659,11 @@ var init_toolkit_lib = __esm({
|
|
|
321655
321659
|
* This catches that misconfiguration.
|
|
321656
321660
|
*/
|
|
321657
321661
|
async validateRegion(asm) {
|
|
321658
|
-
if (this.options.region ===
|
|
321662
|
+
if (this.options.region === import_cloud_assembly_api16.UNKNOWN_REGION) {
|
|
321659
321663
|
return;
|
|
321660
321664
|
}
|
|
321661
321665
|
for (const stack of asm.cloudAssembly.stacksRecursively) {
|
|
321662
|
-
if (stack.environment.region !== this.options.region && stack.environment.region !==
|
|
321666
|
+
if (stack.environment.region !== this.options.region && stack.environment.region !== import_cloud_assembly_api16.UNKNOWN_REGION) {
|
|
321663
321667
|
this.ioHost.notify({
|
|
321664
321668
|
action: "deploy",
|
|
321665
321669
|
code: "CDK_RUNNER_W0000",
|
|
@@ -321741,12 +321745,12 @@ var init_files2 = __esm({
|
|
|
321741
321745
|
function currentlyRecommendedAwsCdkLibFlags() {
|
|
321742
321746
|
return recommended_feature_flags_exports;
|
|
321743
321747
|
}
|
|
321744
|
-
var path40,
|
|
321748
|
+
var path40, import_cloud_assembly_api17, import_cloud_assembly_schema11, fs42, DESTRUCTIVE_CHANGES, CdkTestApp, DEFAULT_SYNTH_OPTIONS, DEFAULT_ARGS;
|
|
321745
321749
|
var init_cdk_test_app = __esm({
|
|
321746
321750
|
"lib/runner/cdk-test-app.ts"() {
|
|
321747
321751
|
"use strict";
|
|
321748
321752
|
path40 = __toESM(require("path"));
|
|
321749
|
-
|
|
321753
|
+
import_cloud_assembly_api17 = __toESM(require_lib3());
|
|
321750
321754
|
import_cloud_assembly_schema11 = __toESM(require_lib2());
|
|
321751
321755
|
fs42 = __toESM(require_lib4());
|
|
321752
321756
|
init_integ_test_suite();
|
|
@@ -321763,7 +321767,7 @@ var init_cdk_test_app = __esm({
|
|
|
321763
321767
|
constructor(options, testSpecificContext) {
|
|
321764
321768
|
this.options = options;
|
|
321765
321769
|
this.testSpecificContext = testSpecificContext;
|
|
321766
|
-
this.hasValidRegion = options.region !==
|
|
321770
|
+
this.hasValidRegion = options.region !== import_cloud_assembly_api17.UNKNOWN_REGION;
|
|
321767
321771
|
this.test = options.test;
|
|
321768
321772
|
const outputDirectoryNameTemplate = options.outputDirectoryNameTemplate;
|
|
321769
321773
|
this.outputDirectory = absAwareJoin(this.test.testDirectory, this.test.specializeTemplate(outputDirectoryNameTemplate));
|
|
@@ -322197,7 +322201,7 @@ var init_cdk_test_app = __esm({
|
|
|
322197
322201
|
context: {
|
|
322198
322202
|
// We have traditionally set this, but it's quite a bad idea. It makes region-agnostic stacks undeployable, and there's really no reason for that.
|
|
322199
322203
|
// However, if we unset this, we will break many existing snapshots so we keep it for now.
|
|
322200
|
-
[
|
|
322204
|
+
[import_cloud_assembly_api17.AVAILABILITY_ZONE_FALLBACK_CONTEXT_KEY]: ["test-region-1a", "test-region-1b", "test-region-1c"],
|
|
322201
322205
|
"availability-zones:account=12345678:region=test-region": ["test-region-1a", "test-region-1b", "test-region-1c"],
|
|
322202
322206
|
"ssm:account=12345678:parameterName=/aws/service/ami-amazon-linux-latest/amzn-ami-hvm-x86_64-gp2:region=test-region": "ami-1234",
|
|
322203
322207
|
"ssm:account=12345678:parameterName=/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2:region=test-region": "ami-1234",
|
package/package.json
CHANGED
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"ts-jest": "^29.4.11",
|
|
65
65
|
"typescript": "5.9",
|
|
66
66
|
"@aws-cdk/aws-service-spec": "^0.1.190",
|
|
67
|
-
"@aws-cdk/cdk-assets-lib": "1.4.
|
|
67
|
+
"@aws-cdk/cdk-assets-lib": "1.4.15",
|
|
68
68
|
"@aws-cdk/cloud-assembly-api": "2.3.0",
|
|
69
|
-
"@aws-cdk/cloud-assembly-schema": ">=54.
|
|
69
|
+
"@aws-cdk/cloud-assembly-schema": ">=54.13.0",
|
|
70
70
|
"@aws-cdk/cloudformation-diff": "2.187.2",
|
|
71
|
-
"@aws-cdk/toolkit-lib": "1.
|
|
71
|
+
"@aws-cdk/toolkit-lib": "1.36.0",
|
|
72
72
|
"@aws-sdk/client-cloudformation": "^3",
|
|
73
73
|
"chalk": "^4",
|
|
74
74
|
"chokidar": "^4",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"publishConfig": {
|
|
101
101
|
"access": "public"
|
|
102
102
|
},
|
|
103
|
-
"version": "2.203.
|
|
103
|
+
"version": "2.203.1",
|
|
104
104
|
"packageManager": "yarn@4.13.0",
|
|
105
105
|
"types": "lib/index.d.ts",
|
|
106
106
|
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"yarn projen\"."
|