cdk-local 0.164.0 → 0.164.2
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/dist/{assembly-path-R96uhMm1.js → assembly-path-CRZKTo_F.js} +2 -2
- package/dist/{assembly-path-R96uhMm1.js.map → assembly-path-CRZKTo_F.js.map} +1 -1
- package/dist/{cdkl-io-host-DFQf5KWv.js → cdkl-io-host-DHcFlfj1.js} +2 -2
- package/dist/{cdkl-io-host-DFQf5KWv.js.map → cdkl-io-host-DHcFlfj1.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{docker-cmd-Cjg3jGYF.js → docker-cmd-BVIfcfkl.js} +3 -3
- package/dist/{docker-cmd-Cjg3jGYF.js.map → docker-cmd-BVIfcfkl.js.map} +1 -1
- package/dist/{docker-runner-D6K15jJP.js → docker-runner-D4NZ2Mtf.js} +19 -10
- package/dist/{docker-runner-D6K15jJP.js.map → docker-runner-D4NZ2Mtf.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/internal.d.ts +7 -3
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +5 -5
- package/dist/{local-studio-nWE5yJK1.d.ts → local-studio-DAafqqRv.d.ts} +17 -3
- package/dist/local-studio-DAafqqRv.d.ts.map +1 -0
- package/dist/{local-studio-C78UofCN.js → local-studio-DMHQSBlO.js} +72 -36
- package/dist/local-studio-DMHQSBlO.js.map +1 -0
- package/dist/{logger-Co5XVwco.js → logger-uzapot2X.js} +6 -3
- package/dist/logger-uzapot2X.js.map +1 -0
- package/dist/{workload-identity-CCXbr0KK.js → workload-identity-BofTjFzQ.js} +243 -56
- package/dist/workload-identity-BofTjFzQ.js.map +1 -0
- package/package.json +1 -1
- package/dist/local-studio-C78UofCN.js.map +0 -1
- package/dist/local-studio-nWE5yJK1.d.ts.map +0 -1
- package/dist/logger-Co5XVwco.js.map +0 -1
- package/dist/workload-identity-CCXbr0KK.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as displayIdent, c as getEmbedConfig, i as STACK_REF_MAX_CODE_POINTS, o as displayStackName, s as displayToolOutput, t as getLogger, u as setEmbedConfig } from "./logger-
|
|
2
|
-
import {
|
|
3
|
-
import { c as clampErrorName, d as flattenToOneLine, f as isAwsServiceException, l as describeAwsFailureForWarn, m as stringifyThrown, o as renderAssemblyPathEscape, p as sanitizeServiceExceptionMessage, r as displayUntrustedValue, s as resolveAssemblyPath, t as absoluteAssemblyPathEscape, u as describeCredentialLoadFailure } from "./assembly-path-
|
|
4
|
-
import { $ as isIamRoleArn, A as buildDockerImage, B as substituteImagePlaceholders, D as isImageInLocalCache, E as warnIfEmulatedPlatform, F as parseEcrRegistryHost, G as LocalStartServiceError, H as CdkLocalError, I as contextForContainer, J as withErrorHandling, K as RouteDiscoveryError, L as derivePartitionAndUrlSuffix, M as createShutdownSignalHandler, N as signalExitCode, O as parseEcrUri, P as describeExitWithoutArgv, Q as describeRejectedRoleArn, R as derivePseudoParametersFromRegion, T as buildContainerImage, U as InteractiveTtyRequiredError, V as tryResolveImageFnJoin, W as LocalInvokeBuildError, X as applyRoleArnIfSet, Y as AssumeRoleFailure, Z as assumeRoleCredentials, a as describeRefusedSensitiveEnvKeys, c as execEnvForSecrets, d as rememberForwardedPorts, et as refusedRoleArnMessage, f as removeContainer, h as streamLogs, i as attachLoopbackForwarder, j as resolveAssetSourcePath, k as pullEcrImage, l as pickFreePort, m as startNamespaceOwnerForwarder, n as SENSITIVE_ENV_KEYS, nt as resolveProfileCredentials, p as runDetached, q as TargetSelectionCancelledError, r as appendEnvFlags, s as ensureDockerAvailable, t as DockerRunnerError, tt as buildStsClientConfig, u as pullImage, w as architectureToPlatform, z as formatStateRemedy } from "./docker-runner-
|
|
5
|
-
import { a as isDockerClientEnvKey, c as runDockerStreaming, i as getDockerCmd, n as finchSecretArgvRefusal, o as isMalformedEnvKey, u as warnFinchArgvExposure } from "./docker-cmd-
|
|
1
|
+
import { a as displayIdent, c as getEmbedConfig, i as STACK_REF_MAX_CODE_POINTS, o as displayStackName, s as displayToolOutput, t as getLogger, u as setEmbedConfig } from "./logger-uzapot2X.js";
|
|
2
|
+
import { At as hostFromAuthority, C as effectiveLoopbackPorts, Ct as readEnvVarsFileText, Dt as isWildcardHostname, Et as isLoopbackHostname, F as resolveHostDefaultCredentials, J as awsEndpointOverrideClientConfig, Ot as formatAuthority, R as takeAwsEmulatorStateSourceHint, St as applyEnvOverrideMap, Tt as defineOwnKey, X as deployArtifactClientConfig, Z as deployArtifactsReadEmulator, b as awsEmulatorEnvName, d as workloadStsClientConfig, et as isAwsServiceRoutedToEmulator, kt as formatHostForAuthority, l as warnWorkloadCredentialsStripped, lt as createMixedModeStateProvider, n as accountLookupStsClientConfig, q as awsEmulatorRealServices, r as applyWorkloadEnvCredentials, rt as proxyAwareFetch, u as workloadClientConfig, v as activateWorkloadAwsWiring, w as getActiveWorkloadAwsWiring, wt as resolveEnvVars$1, y as applyWorkloadAwsWiringToEnv, z as workloadGetsEmulatorKeysOnly } from "./workload-identity-BofTjFzQ.js";
|
|
3
|
+
import { c as clampErrorName, d as flattenToOneLine, f as isAwsServiceException, l as describeAwsFailureForWarn, m as stringifyThrown, o as renderAssemblyPathEscape, p as sanitizeServiceExceptionMessage, r as displayUntrustedValue, s as resolveAssemblyPath, t as absoluteAssemblyPathEscape, u as describeCredentialLoadFailure } from "./assembly-path-CRZKTo_F.js";
|
|
4
|
+
import { $ as isIamRoleArn, A as buildDockerImage, B as substituteImagePlaceholders, D as isImageInLocalCache, E as warnIfEmulatedPlatform, F as parseEcrRegistryHost, G as LocalStartServiceError, H as CdkLocalError, I as contextForContainer, J as withErrorHandling, K as RouteDiscoveryError, L as derivePartitionAndUrlSuffix, M as createShutdownSignalHandler, N as signalExitCode, O as parseEcrUri, P as describeExitWithoutArgv, Q as describeRejectedRoleArn, R as derivePseudoParametersFromRegion, T as buildContainerImage, U as InteractiveTtyRequiredError, V as tryResolveImageFnJoin, W as LocalInvokeBuildError, X as applyRoleArnIfSet, Y as AssumeRoleFailure, Z as assumeRoleCredentials, a as describeRefusedSensitiveEnvKeys, c as execEnvForSecrets, d as rememberForwardedPorts, et as refusedRoleArnMessage, f as removeContainer, h as streamLogs, i as attachLoopbackForwarder, j as resolveAssetSourcePath, k as pullEcrImage, l as pickFreePort, m as startNamespaceOwnerForwarder, n as SENSITIVE_ENV_KEYS, nt as resolveProfileCredentials, p as runDetached, q as TargetSelectionCancelledError, r as appendEnvFlags, s as ensureDockerAvailable, t as DockerRunnerError, tt as buildStsClientConfig, u as pullImage, w as architectureToPlatform, z as formatStateRemedy } from "./docker-runner-D4NZ2Mtf.js";
|
|
5
|
+
import { a as isDockerClientEnvKey, c as runDockerStreaming, i as getDockerCmd, n as finchSecretArgvRefusal, o as isMalformedEnvKey, u as warnFinchArgvExposure } from "./docker-cmd-BVIfcfkl.js";
|
|
6
6
|
import { chmodSync, cpSync, createWriteStream, existsSync, lstatSync, mkdirSync, mkdtempSync, promises, readFileSync, readdirSync, readlinkSync, realpathSync, rmSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { Command, InvalidArgumentError, Option } from "commander";
|
|
8
8
|
import { STSClient } from "@aws-sdk/client-sts";
|
|
@@ -2767,7 +2767,7 @@ async function resolveMultiTarget(provided, params) {
|
|
|
2767
2767
|
async function loadSynthDeps() {
|
|
2768
2768
|
const [toolkitLib, { CdklIoHost }, { AssetManifestArtifact }] = await Promise.all([
|
|
2769
2769
|
import("@aws-cdk/toolkit-lib"),
|
|
2770
|
-
import("./cdkl-io-host-
|
|
2770
|
+
import("./cdkl-io-host-DHcFlfj1.js"),
|
|
2771
2771
|
import("@aws-cdk/cloud-assembly-api")
|
|
2772
2772
|
]);
|
|
2773
2773
|
return {
|
|
@@ -10269,7 +10269,8 @@ function layerFailureDetail(err, operation) {
|
|
|
10269
10269
|
async function materializeLayerFromArn(layer, options = {}) {
|
|
10270
10270
|
const logger = getLogger();
|
|
10271
10271
|
let credentials;
|
|
10272
|
-
if (options.roleArn)
|
|
10272
|
+
if (options.roleArn && deployArtifactsReadEmulator("LAMBDA", options.workload)) logger.debug("--layer-role-arn is not assumed under --aws-emulator: the layer is read from AWS Emulator.");
|
|
10273
|
+
else if (options.roleArn) try {
|
|
10273
10274
|
credentials = await assumeRoleForLayer(options.roleArn, layer.region, options);
|
|
10274
10275
|
logger.debug(`Layer ${displayUntrustedValue(layer.arn)}: assumed role ${options.roleArn} for GetLayerVersion`);
|
|
10275
10276
|
} catch (err) {
|
|
@@ -10305,7 +10306,7 @@ async function materializeLayerFromArn(layer, options = {}) {
|
|
|
10305
10306
|
return dir;
|
|
10306
10307
|
}
|
|
10307
10308
|
async function fetchLayerContentUrl(layer, credentials, options) {
|
|
10308
|
-
const client = (options.lambdaClientFactory ?? await defaultLambdaClientFactory())(layer.region, credentials);
|
|
10309
|
+
const client = (options.lambdaClientFactory ?? await defaultLambdaClientFactory(options.workload))(layer.region, credentials);
|
|
10309
10310
|
try {
|
|
10310
10311
|
const versionSuffix = /^(.*):(\d+)$/.exec(layer.arn);
|
|
10311
10312
|
if (!versionSuffix) throw new LayerMaterializationError(`Layer ${displayUntrustedValue(layer.arn)}: not a layer-version ARN (no ':<version>' suffix to strip). Expected arn:<partition>:lambda:<region>:<account>:layer:<name>:<version>.`);
|
|
@@ -10334,12 +10335,15 @@ async function assumeRoleForLayer(roleArn, region, options) {
|
|
|
10334
10335
|
client.destroy?.();
|
|
10335
10336
|
}
|
|
10336
10337
|
}
|
|
10337
|
-
async function defaultLambdaClientFactory() {
|
|
10338
|
+
async function defaultLambdaClientFactory(workload) {
|
|
10338
10339
|
const { LambdaClient } = await import("@aws-sdk/client-lambda");
|
|
10339
10340
|
return (region, credentials) => new LambdaClient({
|
|
10340
|
-
...
|
|
10341
|
+
...workloadClientConfig({
|
|
10342
|
+
service: "LAMBDA",
|
|
10343
|
+
workload
|
|
10344
|
+
}),
|
|
10341
10345
|
region,
|
|
10342
|
-
...credentials && !deployArtifactsReadEmulator() && { credentials: {
|
|
10346
|
+
...credentials && !deployArtifactsReadEmulator("LAMBDA", workload) && { credentials: {
|
|
10343
10347
|
accessKeyId: credentials.accessKeyId,
|
|
10344
10348
|
secretAccessKey: credentials.secretAccessKey,
|
|
10345
10349
|
...credentials.sessionToken !== void 0 && { sessionToken: credentials.sessionToken }
|
|
@@ -11443,7 +11447,10 @@ async function buildContainerSpec(args) {
|
|
|
11443
11447
|
codeDir = materialized.dir;
|
|
11444
11448
|
if (materialized.tmpDir) inlineTmpDirs.add(materialized.tmpDir);
|
|
11445
11449
|
} else codeDir = materializeInlineCode$2(lambda.handler, lambda.inlineCode ?? "", resolveRuntimeFileExtension(lambda.runtime), inlineTmpDirs);
|
|
11446
|
-
optDir = await materializeLambdaLayers$1(lambda.layers, layerTmpDirs, layerRoleArn
|
|
11450
|
+
optDir = await materializeLambdaLayers$1(lambda.layers, layerTmpDirs, layerRoleArn, {
|
|
11451
|
+
logicalId: lambda.logicalId,
|
|
11452
|
+
cdkPath: readCdkPathOrUndefined(lambda.resource)
|
|
11453
|
+
});
|
|
11447
11454
|
} else {
|
|
11448
11455
|
imageRef = (await resolveContainerImageForStartApi(lambda, skipPull, args.profile, {
|
|
11449
11456
|
...args.skipBuild !== void 0 && { noBuild: args.skipBuild },
|
|
@@ -11617,6 +11624,10 @@ async function resolveContainerImageForStartApi(lambda, skipPull, profile, optio
|
|
|
11617
11624
|
logger.info(`No matching cdk.out asset for ${lambda.imageUri}; falling back to ECR pull...`);
|
|
11618
11625
|
return { imageRef: await pullEcrImage(lambda.imageUri, {
|
|
11619
11626
|
skipPull,
|
|
11627
|
+
workload: {
|
|
11628
|
+
logicalId: lambda.logicalId,
|
|
11629
|
+
cdkPath: readCdkPathOrUndefined(lambda.resource)
|
|
11630
|
+
},
|
|
11620
11631
|
...profile !== void 0 && { profile },
|
|
11621
11632
|
...options?.ecrRoleArn !== void 0 && { ecrRoleArn: options.ecrRoleArn },
|
|
11622
11633
|
...options?.region !== void 0 && { region: options.region }
|
|
@@ -11636,7 +11647,7 @@ async function resolveLocalBuildPlan$1(lambda) {
|
|
|
11636
11647
|
assetOutdir: assetPathDirs(lambda.stack).assetOutdir
|
|
11637
11648
|
};
|
|
11638
11649
|
}
|
|
11639
|
-
async function materializeLambdaLayers$1(layers, layerTmpDirs, layerRoleArn) {
|
|
11650
|
+
async function materializeLambdaLayers$1(layers, layerTmpDirs, layerRoleArn, workload) {
|
|
11640
11651
|
if (layers.length === 0) return void 0;
|
|
11641
11652
|
const flat = [];
|
|
11642
11653
|
for (const layer of layers) {
|
|
@@ -11647,7 +11658,10 @@ async function materializeLambdaLayers$1(layers, layerTmpDirs, layerRoleArn) {
|
|
|
11647
11658
|
});
|
|
11648
11659
|
continue;
|
|
11649
11660
|
}
|
|
11650
|
-
const dir = await materializeLayerFromArn(layer, {
|
|
11661
|
+
const dir = await materializeLayerFromArn(layer, {
|
|
11662
|
+
...layerRoleArn !== void 0 && { roleArn: layerRoleArn },
|
|
11663
|
+
...workload !== void 0 && { workload }
|
|
11664
|
+
});
|
|
11651
11665
|
layerTmpDirs.add(dir);
|
|
11652
11666
|
flat.push({
|
|
11653
11667
|
logicalId: layer.arn,
|
|
@@ -12302,7 +12316,7 @@ async function resolveZipImagePlan$1(lambda, options) {
|
|
|
12302
12316
|
const image = resolveRuntimeImage(lambda.runtime);
|
|
12303
12317
|
const platform = architectureToPlatform(lambda.architecture);
|
|
12304
12318
|
await pullImage(image, options.pull === false, platform);
|
|
12305
|
-
const layerPlan = await materializeLambdaLayersIncludingArns(lambda.layers, options);
|
|
12319
|
+
const layerPlan = await materializeLambdaLayersIncludingArns(lambda.layers, options, lambdaWorkload(lambda));
|
|
12306
12320
|
const containerCodePath = resolveRuntimeCodeMountPath(lambda.runtime);
|
|
12307
12321
|
const tmpfs = resolveTmpfsForLambda(lambda);
|
|
12308
12322
|
return {
|
|
@@ -12325,7 +12339,7 @@ async function resolveZipImagePlan$1(lambda, options) {
|
|
|
12325
12339
|
function assumeRoleDetail(err, op) {
|
|
12326
12340
|
return err instanceof AssumeRoleFailure ? err.detail : describeAwsFailureForWarn(err, op);
|
|
12327
12341
|
}
|
|
12328
|
-
async function materializeLambdaLayersIncludingArns(layers, options) {
|
|
12342
|
+
async function materializeLambdaLayersIncludingArns(layers, options, workload) {
|
|
12329
12343
|
const extraTmpDirs = [];
|
|
12330
12344
|
const flat = [];
|
|
12331
12345
|
for (const layer of layers) {
|
|
@@ -12336,7 +12350,10 @@ async function materializeLambdaLayersIncludingArns(layers, options) {
|
|
|
12336
12350
|
});
|
|
12337
12351
|
continue;
|
|
12338
12352
|
}
|
|
12339
|
-
const dir = await materializeLayerFromArn(layer, {
|
|
12353
|
+
const dir = await materializeLayerFromArn(layer, {
|
|
12354
|
+
...options.layerRoleArn !== void 0 && { roleArn: options.layerRoleArn },
|
|
12355
|
+
...workload !== void 0 && { workload }
|
|
12356
|
+
});
|
|
12340
12357
|
extraTmpDirs.push(dir);
|
|
12341
12358
|
flat.push({
|
|
12342
12359
|
logicalId: layer.arn,
|
|
@@ -12401,7 +12418,8 @@ async function resolveContainerImagePlan$1(lambda, options) {
|
|
|
12401
12418
|
skipPull: options.pull === false,
|
|
12402
12419
|
...options.region !== void 0 && { region: options.region },
|
|
12403
12420
|
...options.ecrRoleArn !== void 0 && { ecrRoleArn: options.ecrRoleArn },
|
|
12404
|
-
...options.profile !== void 0 && { profile: options.profile }
|
|
12421
|
+
...options.profile !== void 0 && { profile: options.profile },
|
|
12422
|
+
workload: lambdaWorkload(lambda)
|
|
12405
12423
|
});
|
|
12406
12424
|
}
|
|
12407
12425
|
const tmpfs = resolveTmpfsForLambda(lambda);
|
|
@@ -13082,11 +13100,16 @@ function resolveSafeEntryPath(root, entry) {
|
|
|
13082
13100
|
function defaultFetchObject$1(options) {
|
|
13083
13101
|
return async (location) => {
|
|
13084
13102
|
const { S3Client, GetObjectCommand } = await import("@aws-sdk/client-s3");
|
|
13103
|
+
const fromEmulator = deployArtifactsReadEmulator("S3", options.workload);
|
|
13085
13104
|
const client = new S3Client({
|
|
13086
|
-
...deployArtifactClientConfig({
|
|
13105
|
+
...deployArtifactClientConfig({
|
|
13106
|
+
service: "S3",
|
|
13107
|
+
profile: options.profile,
|
|
13108
|
+
workload: options.workload
|
|
13109
|
+
}),
|
|
13087
13110
|
...options.region && { region: options.region },
|
|
13088
|
-
...options.profile && !options.credentials && !
|
|
13089
|
-
...options.credentials && !
|
|
13111
|
+
...options.profile && !options.credentials && !fromEmulator && { profile: options.profile },
|
|
13112
|
+
...options.credentials && !fromEmulator && { credentials: {
|
|
13090
13113
|
accessKeyId: options.credentials.accessKeyId,
|
|
13091
13114
|
secretAccessKey: options.credentials.secretAccessKey,
|
|
13092
13115
|
...options.credentials.sessionToken && { sessionToken: options.credentials.sessionToken }
|
|
@@ -14009,7 +14032,11 @@ async function resolveAgentCoreImage(resolved, options, loaded, stateProvider) {
|
|
|
14009
14032
|
skipPull: options.pull === false,
|
|
14010
14033
|
...options.region !== void 0 && { region: options.region },
|
|
14011
14034
|
...options.ecrRoleArn !== void 0 && { ecrRoleArn: options.ecrRoleArn },
|
|
14012
|
-
...options.profile !== void 0 && { profile: options.profile }
|
|
14035
|
+
...options.profile !== void 0 && { profile: options.profile },
|
|
14036
|
+
workload: {
|
|
14037
|
+
logicalId: resolved.logicalId,
|
|
14038
|
+
cdkPath: readCdkPathOrUndefined(resolved.resource)
|
|
14039
|
+
}
|
|
14013
14040
|
});
|
|
14014
14041
|
}
|
|
14015
14042
|
await pullImage(containerUri, options.pull === false);
|
|
@@ -14059,7 +14086,11 @@ async function resolveAgentCoreCodeImageFromS3(resolved, code, s3Source, options
|
|
|
14059
14086
|
const bundle = await downloadAndExtractS3Bundle(location, {
|
|
14060
14087
|
...region !== void 0 && { region },
|
|
14061
14088
|
...options.profile !== void 0 && { profile: options.profile },
|
|
14062
|
-
...credentials !== void 0 && { credentials }
|
|
14089
|
+
...credentials !== void 0 && { credentials },
|
|
14090
|
+
workload: {
|
|
14091
|
+
logicalId: resolved.logicalId,
|
|
14092
|
+
cdkPath: readCdkPathOrUndefined(resolved.resource)
|
|
14093
|
+
}
|
|
14063
14094
|
});
|
|
14064
14095
|
try {
|
|
14065
14096
|
return await buildAgentCoreCodeImage({
|
|
@@ -15647,6 +15678,7 @@ async function prepareOneImage(task, container, options) {
|
|
|
15647
15678
|
return image.uri;
|
|
15648
15679
|
case "ecr": return pullEcrImage(image.uri, {
|
|
15649
15680
|
skipPull: options.skipPull,
|
|
15681
|
+
workload: { containerName: container.name },
|
|
15650
15682
|
...options.region !== void 0 && { region: options.region },
|
|
15651
15683
|
...options.ecrRoleArn !== void 0 && { ecrRoleArn: options.ecrRoleArn },
|
|
15652
15684
|
...options.profile !== void 0 && { profile: options.profile }
|
|
@@ -16790,7 +16822,7 @@ async function softReloadReplica(args) {
|
|
|
16790
16822
|
const defaultDockerInspectWorkdirImpl = async (containerId) => {
|
|
16791
16823
|
const { execFile } = await import("node:child_process");
|
|
16792
16824
|
const { promisify } = await import("node:util");
|
|
16793
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
16825
|
+
const { getDockerCmd } = await import("./docker-cmd-BVIfcfkl.js").then((n) => n.t);
|
|
16794
16826
|
const { stdout } = await promisify(execFile)(getDockerCmd(), [
|
|
16795
16827
|
"inspect",
|
|
16796
16828
|
"--format",
|
|
@@ -16803,7 +16835,7 @@ let dockerInspectWorkdirImpl = defaultDockerInspectWorkdirImpl;
|
|
|
16803
16835
|
const defaultDockerCpImpl = async (src, dst) => {
|
|
16804
16836
|
const { execFile } = await import("node:child_process");
|
|
16805
16837
|
const { promisify } = await import("node:util");
|
|
16806
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
16838
|
+
const { getDockerCmd } = await import("./docker-cmd-BVIfcfkl.js").then((n) => n.t);
|
|
16807
16839
|
await promisify(execFile)(getDockerCmd(), [
|
|
16808
16840
|
"cp",
|
|
16809
16841
|
src,
|
|
@@ -16814,19 +16846,19 @@ let dockerCpImpl = defaultDockerCpImpl;
|
|
|
16814
16846
|
const defaultDockerStopImpl = async (containerId) => {
|
|
16815
16847
|
const { execFile } = await import("node:child_process");
|
|
16816
16848
|
const { promisify } = await import("node:util");
|
|
16817
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
16849
|
+
const { getDockerCmd } = await import("./docker-cmd-BVIfcfkl.js").then((n) => n.t);
|
|
16818
16850
|
await promisify(execFile)(getDockerCmd(), ["stop", containerId]);
|
|
16819
16851
|
};
|
|
16820
16852
|
const defaultDockerStartImpl = async (containerId, opts = {}) => {
|
|
16821
16853
|
const { execFile } = await import("node:child_process");
|
|
16822
16854
|
const { promisify } = await import("node:util");
|
|
16823
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
16855
|
+
const { getDockerCmd } = await import("./docker-cmd-BVIfcfkl.js").then((n) => n.t);
|
|
16824
16856
|
await promisify(execFile)(getDockerCmd(), ["start", containerId]);
|
|
16825
16857
|
if (opts.joinedForwarder) return;
|
|
16826
|
-
const { getActiveWorkloadAwsWiring } = await import("./workload-identity-
|
|
16858
|
+
const { getActiveWorkloadAwsWiring } = await import("./workload-identity-BofTjFzQ.js").then((n) => n.B);
|
|
16827
16859
|
const wiring = getActiveWorkloadAwsWiring();
|
|
16828
16860
|
if (wiring) {
|
|
16829
|
-
const { attachLoopbackForwarder } = await import("./docker-runner-
|
|
16861
|
+
const { attachLoopbackForwarder } = await import("./docker-runner-D4NZ2Mtf.js").then((n) => n.o);
|
|
16830
16862
|
await attachLoopbackForwarder(containerId, wiring);
|
|
16831
16863
|
}
|
|
16832
16864
|
};
|
|
@@ -16896,7 +16928,7 @@ async function attachToSharedNetwork(plan, withAliases) {
|
|
|
16896
16928
|
const defaultDockerNetworkConnectImpl = async (networkName, containerId, opts) => {
|
|
16897
16929
|
const { execFile } = await import("node:child_process");
|
|
16898
16930
|
const { promisify } = await import("node:util");
|
|
16899
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
16931
|
+
const { getDockerCmd } = await import("./docker-cmd-BVIfcfkl.js").then((n) => n.t);
|
|
16900
16932
|
const args = ["network", "connect"];
|
|
16901
16933
|
if (opts.ip) args.push("--ip", opts.ip);
|
|
16902
16934
|
for (const a of opts.aliases) args.push("--alias", a);
|
|
@@ -16907,7 +16939,7 @@ let dockerNetworkConnectImpl = defaultDockerNetworkConnectImpl;
|
|
|
16907
16939
|
const defaultDockerInspectPublishesHostPortsImpl = async (containerId) => {
|
|
16908
16940
|
const { execFile } = await import("node:child_process");
|
|
16909
16941
|
const { promisify } = await import("node:util");
|
|
16910
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
16942
|
+
const { getDockerCmd } = await import("./docker-cmd-BVIfcfkl.js").then((n) => n.t);
|
|
16911
16943
|
const { stdout } = await promisify(execFile)(getDockerCmd(), [
|
|
16912
16944
|
"inspect",
|
|
16913
16945
|
"--format",
|
|
@@ -16946,7 +16978,7 @@ async function disconnectOldFromSharedNetwork(oldInstance, opts = {}) {
|
|
|
16946
16978
|
const defaultDockerNetworkDisconnectImpl = async (networkName, containerId) => {
|
|
16947
16979
|
const { execFile } = await import("node:child_process");
|
|
16948
16980
|
const { promisify } = await import("node:util");
|
|
16949
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
16981
|
+
const { getDockerCmd } = await import("./docker-cmd-BVIfcfkl.js").then((n) => n.t);
|
|
16950
16982
|
await promisify(execFile)(getDockerCmd(), [
|
|
16951
16983
|
"network",
|
|
16952
16984
|
"disconnect",
|
|
@@ -17037,7 +17069,7 @@ const LISTEN_PROBE_SCRIPT = [
|
|
|
17037
17069
|
async function dockerExecListenProbe(containerId, port, timeoutMs = 1e4) {
|
|
17038
17070
|
const { execFile } = await import("node:child_process");
|
|
17039
17071
|
const { promisify } = await import("node:util");
|
|
17040
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
17072
|
+
const { getDockerCmd } = await import("./docker-cmd-BVIfcfkl.js").then((n) => n.t);
|
|
17041
17073
|
try {
|
|
17042
17074
|
await promisify(execFile)(getDockerCmd(), [
|
|
17043
17075
|
"exec",
|
|
@@ -17191,7 +17223,7 @@ function pickEssentialContainerId(instance, service) {
|
|
|
17191
17223
|
const defaultWaitForExitImpl = async (containerId) => {
|
|
17192
17224
|
const { execFile } = await import("node:child_process");
|
|
17193
17225
|
const { promisify } = await import("node:util");
|
|
17194
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
17226
|
+
const { getDockerCmd } = await import("./docker-cmd-BVIfcfkl.js").then((n) => n.t);
|
|
17195
17227
|
const { stdout } = await promisify(execFile)(getDockerCmd(), ["wait", containerId], { maxBuffer: 1024 * 1024 });
|
|
17196
17228
|
const code = parseInt(stdout.trim(), 10);
|
|
17197
17229
|
return Number.isFinite(code) ? code : -1;
|
|
@@ -17201,7 +17233,7 @@ const EXIT_LOG_TAIL_LINES = 50;
|
|
|
17201
17233
|
const defaultReadContainerLogsImpl = async (containerId) => {
|
|
17202
17234
|
const { execFile } = await import("node:child_process");
|
|
17203
17235
|
const { promisify } = await import("node:util");
|
|
17204
|
-
const { getDockerCmd } = await import("./docker-cmd-
|
|
17236
|
+
const { getDockerCmd } = await import("./docker-cmd-BVIfcfkl.js").then((n) => n.t);
|
|
17205
17237
|
const { stdout, stderr } = await promisify(execFile)(getDockerCmd(), [
|
|
17206
17238
|
"logs",
|
|
17207
17239
|
"--tail",
|
|
@@ -18615,6 +18647,10 @@ async function resolveContainerImagePlan(lambda, opts) {
|
|
|
18615
18647
|
logger.info(`No matching cdk.out asset for ${displayUntrustedValue(lambda.imageUri)}; falling back to ECR pull...`);
|
|
18616
18648
|
imageRef = await pullEcrImage(lambda.imageUri, {
|
|
18617
18649
|
skipPull: opts.skipPull === true,
|
|
18650
|
+
workload: {
|
|
18651
|
+
logicalId: lambda.logicalId,
|
|
18652
|
+
cdkPath: readCdkPathOrUndefined(lambda.resource)
|
|
18653
|
+
},
|
|
18618
18654
|
...opts.region !== void 0 && { region: opts.region },
|
|
18619
18655
|
...opts.ecrRoleArn !== void 0 && { ecrRoleArn: opts.ecrRoleArn }
|
|
18620
18656
|
});
|
|
@@ -32193,4 +32229,4 @@ function addStudioSpecificOptions(cmd) {
|
|
|
32193
32229
|
|
|
32194
32230
|
//#endregion
|
|
32195
32231
|
export { postHook as $, withoutKeys as $a, buildConnectEvent as $i, addImageOverrideOptions as $n, addStartApiSpecificOptions as $r, classifyS3Error as $t, microvmFidelityWarnings as A, filterWebSocketApisByIdentifiers as Aa, buildCorsConfigByApiId as Ai, stripCloudFrontImport as An, A2A_CONTAINER_PORT as Ar, readContainerLogTail as At, MICROVM_WS_BASE_PROTOCOL as B, AGENTCORE_RUNTIME_TYPE as Ba, pickResponseTemplate as Bi, createLocalStartAlbCommand as Bn, AGENTCORE_SESSION_ID_HEADER as Br, parseWebFunctionBuildConfig as Bt, addListSpecificOptions as C, resolveWatchConfig as Ca, buildMethodArn as Ci, WEB_FUNCTION_REVISION_TYPE as Cn, setShadowReadyTimeoutMs as Cr, parseKvsFileOverrides as Ct, buildMicrovmLambdaView as D, availableWebSocketApiIdentifiers as Da, invokeTokenAuthorizer as Di, compileCloudFrontFunction as Dn, createLocalInvokeAgentCoreCommand as Dr, WEB_FUNCTION_CONTAINER_PORT as Dt, addStartMicrovmSpecificOptions as E, listTargets as Ea, invokeRequestAuthorizer as Ei, resolveWebFunctionTarget as En, addInvokeAgentCoreSpecificOptions as Er, RecentOutput as Et, microvmImageTag as F, resolveLambdaArnIntrinsic as Fa, translateLambdaResponse as Fi, findFileAssetForObjectKey as Fn, MCP_PROTOCOL_VERSION as Fr, buildNodeEntryFileStart as Ft, startMicrovmFrontDoor as G, DynamicReferenceResolver as Ga, HOST_GATEWAY_MIN_VERSION as Gi, addStartServiceSpecificOptions as Gn, SUPPORTED_CODE_RUNTIMES as Gr, readWebFunctionServiceConfig as Gt, PROXY_PORT_HEADER as H, pickAgentCoreCandidateStack as Ha, tryParseStatus as Hi, resolveAlbTarget as Hn, waitForAgentCoreHttpReady as Hr, WEB_FUNCTION_HTTP_ENDPOINT_ENV as Ht, planMicrovmPorts as I, AGENTCORE_A2A_PROTOCOL as Ia, applyAuthorizerOverlay as Ii, isBucketDeploymentResource as In, mcpInvokeOnce as Ir, defaultWebFunctionPlatform as It, MICROVM_HOOK_PATH_PREFIX as J, firstUsableRegion as Ja, bufferToBody as Ji, addRunTaskSpecificOptions as Jn, renderCodeDockerfile as Jr, idFromArn as Jt, stripMicrovmProxyHeaders as K, containsDynamicReference as Ka, probeHostGatewaySupport as Ki, createLocalStartServiceCommand as Kn, buildAgentCoreCodeImage as Kr, webFunctionAssumeRole as Kt, readExposedPorts as L, AGENTCORE_AGUI_PROTOCOL as La, buildHttpApiV2Event as Li, resolveBucketDeploymentObjectKey as Ln, parseSseForJsonRpc as Lr, resolveWebFunctionRuntime as Lt, DEFAULT_TERMINATE_HOOK_TIMEOUT_MS as M, webSocketApiMatchesIdentifier as Ma, isFunctionUrlOacFronted as Mi, createLocalFileKvsDataSource as Mn, a2aInvokeOnce as Mr, waitForWebFunctionReady as Mt, LocalMicrovm as N, discoverRoutes as Na, matchPreflight as Ni, createUnboundCloudFrontModule as Nn, MCP_CONTAINER_PORT as Nr, watchContainerExit as Nt, createLocalStartMicrovmCommand as O, discoverWebSocketApis as Oa, attachAuthorizers as Oi, runViewerRequest as On, bridgeAgentCoreWs as Or, containerFailure as Ot, buildMicrovmImage as P, pickRefLogicalId as Pa, matchRoute as Pi, bucketDeploymentSourceObjectKeys as Pn, MCP_PATH as Pr, WEB_FUNCTION_RUNTIMES as Pt, pollBuildHook as Q, resolveDynamicReferencesInEnv as Qa, parseConnectionsPath as Qi, addEcsAssumeRoleOptions as Qn, createLocalInvokeCommand as Qr, resolveDeployedOriginBucket as Qt, setContainerPaused as R, AGENTCORE_HTTP_PROTOCOL as Ra, buildRestV1Event as Ri, addAlbSpecificOptions as Rn, AGENTCORE_SIGV4_SERVICE as Rr, supportedWebFunctionRuntimes as Rt, StudioEventBus as S, resolveSsmParameters as Sa, verifyJwtViaDiscovery as Si, WEB_FUNCTION_ENDPOINT_TYPE as Sn, SOFT_RELOAD_COMPLETION_LOG_SUFFIX as Sr, normalizeKvsFileKeys as St, formatTargetListing as T, countTargets as Ta, evaluateCachedLambdaPolicy as Ti, WebFunctionResolutionError as Tn, attachContainerLogStreamer as Tr, resolveCloudFrontTarget as Tt, rewriteUpgradeResponseHead as U, resolveAgentCoreTarget as Ua, VtlEvaluationError as Ui, isApplicationLoadBalancer as Un, waitForAgentCorePing as Ur, buildWebFunctionLambdaView as Ut, MicrovmStateError as V, AgentCoreResolutionError as Va, selectIntegrationResponse as Vi, parseLbPortOverrides as Vn, invokeAgentCore as Vr, resolveWebFunctionArtifact as Vt, selectTargetPort as W, DynamicReferenceResolutionError as Wa, HOST_DOCKER_INTERNAL_GATEWAY as Wi, resolveAlbFrontDoor as Wn, downloadAndExtractS3Bundle as Wr, finalizeWebFunctionEnv as Wt, callRuntimeHook as X, keysOverriddenBy as Xa, buildMgmtEndpointEnvUrl as Xi, MAX_TASKS_SUBNET_RANGE_CAP as Xn, classifySourceChange as Xr, createDeployedKvsDataSource as Xt, MicrovmHookError as Y, keysNotFromTemplate as Ya, ConnectionRegistry as Yi, createLocalRunTaskCommand as Yn, toCmdArgv as Yr, resolveKvsModulesForDistribution as Yt, generateMicrovmId as Z, parseDynamicReference as Za, handleConnectionsRequest as Zi, addCommonEcsServiceOptions as Zn, addInvokeSpecificOptions as Zr, resolveDeployedKvsArnByName as Zt, filterStudioTargetGroups as _, resolveCfnFallbackRegion as _a, buildCognitoJwksUrl as _i, pickKvsLogicalIdFromArn as _n, isLocalCdkAssetImage as _r, attachAgentCoreWsBridge as _t, createLocalStudioCommand as a, EcsTaskResolutionError as aa, attachStageContext as ai, serveLambdaUrlOrigin as an, resolveSharedSidecarCredentials as ar, disposeMicrovmCodeArtifact as at, renderStudioHtml as b, CfnLocalStateProvider as ba, verifyCognitoJwt as bi, pickWebFunctionEndpointLogicalIdFromOrigin as bn, CloudMapRegistry as br, addStartCloudFrontSpecificOptions as bt, startStudioProxy as c, substituteAgainstStateAsync as ca, availableApiIdentifiers as ci, buildEdgeRequestEvent as cn, buildImageOverrideTag as cr, resolveMicrovmImageTarget as ct, createStudioDispatcher as d, LocalStateSourceError as da, groupRoutesByServer as di, httpHeadersToEdge as dn, mergeForService as dr, createLocalStartWebFunctionCommand as dt, buildDisconnectEvent as ea, createLocalStartApiCommand as ei, createS3OriginReader as en, addAwsEndpointOptions as eo, buildEcsImageResolutionContext$1 as er, runHookBody as et, filterStudioCustomResources as f, UNNAMED_WORKLOAD as fa, readMtlsMaterialsFromDisk as fi, CLOUDFRONT_DISTRIBUTION_TYPE as fn, parseImageOverrideFlags as fr, addStartAgentCoreSpecificOptions as ft, annotatePinnedEcsTargets as g, rejectExplicitCfnStackWithMultipleStacks as ga, defaultCredentialsLoader as gi, pickFunctionUrlLogicalIdFromOrigin as gn, imageOverrideKeyAliases as gr, startAgentCoreHttpServer as gt, annotateEcsTaskPinnedTargets as h, isCfnFlagPresent as ha, resolveServiceIntegrationParameters as hi, isCloudFrontDistribution as hn, describePinnedImageUri as hr, selectServeInboundAuth as ht, coerceStopRequest as i, resolveRuntimeImage as ia, createFileWatcher as ii, serveFromStaticOrigin as in, resolveEcsAssumeRoleOption as ir, MicrovmResolutionError as it, readRunHookPayload as j, parseSelectionExpressionPath as ja, buildCorsConfigFromCloudFrontChain as ji, createCloudFrontModule as jn, A2A_PATH as jr, startWebFunctionContainer as jt, finalizeMicrovmEnv as k, discoverWebSocketApisOrThrow as ka, applyCorsResponseHeaders as ki, runViewerResponse as kn, invokeAgentCoreWs as kr, planWebFunctionContainer as kt, relayServeRequest as l, substituteEnvVarsFromState as la, filterRoutesByApiIdentifier as li, buildEdgeResponseEvent as ln, canonicalizeImageOverrideKeys as lr, s3KeyOfUri as lt, annotateAlbPinnedBackingServices as m, groupWorkloadsRoutedApart as ma, resolveSelectionExpression as mi, extractKvsAssociations as mn, runImageOverrideBuilds as mr, buildAgentCoreServeAuthCheck as mt, coerceRunRequest as n, resolveRuntimeCodeMountPath as na, resolveApiTargetSubset as ni, startCloudFrontServer as nn, parseMaxTasks as nr, MICROVM_DEFAULT_INGRESS_PORT as nt, resolveServeBaseUrl as o, assertEcsTaskImagesResolvable as oa, buildStageMap as oi, applyEdgeRequestResult as on, runEcsServiceEmulator as or, readMicrovmImageConfig as ot, isCustomResourceLambdaTarget as p, createLocalStateProvider as pa, startApiServer as pi, describeS3OriginDomain as pn, resolveImageOverrides as pr, createLocalStartAgentCoreCommand as pt, MAX_RUN_HOOK_PAYLOAD_BYTES as q, deployedFillMayBeSecret as qa, resolveHostGatewayExtraHosts as qi, serviceStrategy as qn, computeCodeImageTag as qr, webFunctionFidelityWarnings as qt, coerceServeRequest as r, resolveRuntimeFileExtension as ra, createAuthorizerCache as ri, resolveErrorResponseCandidates as rn, parseRestartPolicy as rr, MICROVM_IMAGE_TYPE as rt, createStudioServeManager as s, substituteAgainstState as sa, materializeLayerFromArn as si, applyEdgeResponseResult as sn, ImageOverrideError as sr, resolveMicrovmCodeArtifact as st, addStudioSpecificOptions as t, buildMessageEvent as ta, createWatchPredicates as ti, matchBehavior as tn, awsEndpointOptions as to, ecsClusterOption as tr, waitForAppAnswer as tt, reinvoke as u, substituteEnvVarsFromStateAsync as ua, filterRoutesByApiIdentifiers as ui, edgeHeadersToHttp as un, enforceImageOverrideOrphans as ur, addStartWebFunctionSpecificOptions as ut, startStudioServer as v, resolveCfnRegion as va, buildJwksUrlFromIssuer as vi, pickLambdaEdgeFunctionLogicalId as vn, listPinnedTargets as vr, startAgentCoreWsBridge as vt, createLocalListCommand as w, resolveSingleTarget as wa, computeRequestIdentityHash as wi, WEB_FUNCTION_TYPE as wn, getContainerNetworkIp as wr, parseOriginOverrides as wt, createStudioStore as x, collectSsmParameterRefs as xa, verifyJwtAuthorizer as xi, resolveCloudFrontDistribution as xn, DEFAULT_SHADOW_READY_TIMEOUT_MS as xr, createLocalStartCloudFrontCommand as xt, toStudioTargetGroups as y, resolveCfnStackName as ya, createJwksCache as yi, pickTargetFunctionLogicalId as yn, buildCloudMapIndex as yr, LocalStartCloudFrontError as yt, MICROVM_CONTROL_PATH as z, AGENTCORE_MCP_PROTOCOL as za, evaluateResponseParameters as zi, albStrategy as zn, signAgentCoreInvocation as zr, disposeWebFunctionArtifact as zt };
|
|
32196
|
-
//# sourceMappingURL=local-studio-
|
|
32232
|
+
//# sourceMappingURL=local-studio-DMHQSBlO.js.map
|