cdk-local 0.163.3 → 0.163.5
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/cli.js +2 -2
- package/dist/{docker-runner-C15ixW5k.js → docker-runner-6cuoe4H9.js} +3 -14
- package/dist/docker-runner-6cuoe4H9.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.d.ts +13 -36
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +4 -4
- package/dist/{local-studio-CjZkQNy5.js → local-studio-DIxEENzj.js} +200 -135
- package/dist/local-studio-DIxEENzj.js.map +1 -0
- package/dist/{local-studio-C7-FMMpT.d.ts → local-studio-Dyp2aN5T.d.ts} +94 -30
- package/dist/local-studio-Dyp2aN5T.d.ts.map +1 -0
- package/dist/{workload-identity-D5zkhVcF.js → workload-identity-BOEZuEDO.js} +751 -141
- package/dist/workload-identity-BOEZuEDO.js.map +1 -0
- package/package.json +1 -1
- package/dist/docker-runner-C15ixW5k.js.map +0 -1
- package/dist/local-studio-C7-FMMpT.d.ts.map +0 -1
- package/dist/local-studio-CjZkQNy5.js.map +0 -1
- package/dist/workload-identity-D5zkhVcF.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
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-Co5XVwco.js";
|
|
2
|
-
import {
|
|
2
|
+
import { C as effectiveLoopbackPorts, F as resolveHostDefaultCredentials, G as awsEndpointOverrideClientConfig, K as buildProxyClientConfig, Q as proxyAwareFetch, W as awsEmulatorRoutedServices, Y as isAwsServiceRoutedToEmulator, _t as isLoopbackHostname, b as awsEmulatorEnvName, bt as formatHostForAuthority, d as workloadStsClientConfig, gt as defineOwnKey, ht as resolveEnvVars$1, l as warnWorkloadCredentialsStripped, mt as readEnvVarsFileText, n as accountLookupStsClientConfig, pt as applyEnvOverrideMap, r as applyWorkloadEnvCredentials, rt as createMixedModeStateProvider, u as workloadClientConfig, v as activateWorkloadAwsWiring, vt as isWildcardHostname, w as getActiveWorkloadAwsWiring, xt as hostFromAuthority, y as applyWorkloadAwsWiringToEnv, yt as formatAuthority } from "./workload-identity-BOEZuEDO.js";
|
|
3
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-R96uhMm1.js";
|
|
4
|
-
import { $ as
|
|
4
|
+
import { $ as refusedRoleArnMessage, A as buildDockerImage, B as tryResolveImageFnJoin, D as isImageInLocalCache, E as warnIfEmulatedPlatform, F as parseEcrRegistryHost, G as RouteDiscoveryError, H as InteractiveTtyRequiredError, I as derivePartitionAndUrlSuffix, J as AssumeRoleFailure, K as TargetSelectionCancelledError, L as derivePseudoParametersFromRegion, M as createShutdownSignalHandler, N as signalExitCode, O as parseEcrUri, P as describeExitWithoutArgv, Q as isIamRoleArn, R as formatStateRemedy, T as buildContainerImage, U as LocalInvokeBuildError, V as CdkLocalError, W as LocalStartServiceError, X as assumeRoleCredentials, Y as applyRoleArnIfSet, Z as describeRejectedRoleArn, a as describeRefusedSensitiveEnvKeys, c as execEnvForSecrets, d as rememberForwardedPorts, et as buildStsClientConfig, 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, p as runDetached, q as withErrorHandling, r as appendEnvFlags, s as ensureDockerAvailable, t as DockerRunnerError, tt as resolveProfileCredentials, u as pullImage, w as architectureToPlatform, z as substituteImagePlaceholders } from "./docker-runner-6cuoe4H9.js";
|
|
5
5
|
import { a as isDockerClientEnvKey, c as runDockerStreaming, i as getDockerCmd, n as finchSecretArgvRefusal, o as isMalformedEnvKey, u as warnFinchArgvExposure } from "./docker-cmd-Cjg3jGYF.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";
|
|
@@ -321,10 +321,17 @@ var DynamicReferenceResolver = class {
|
|
|
321
321
|
return Promise.reject(new DynamicReferenceResolutionError(`${err.message.replace(/\.$/, "")} (${opts.consumer}).`));
|
|
322
322
|
}
|
|
323
323
|
const region = firstUsableRegion(ref.arnRegion, opts.region);
|
|
324
|
-
const
|
|
324
|
+
const workload = opts.workload ?? this.options.workload;
|
|
325
|
+
const emulator = isAwsServiceRoutedToEmulator(ref.service === "secretsmanager" ? "SECRETS_MANAGER" : "SSM", workload);
|
|
326
|
+
const cacheKey = `${emulator ? "emulator" : "aws"}\u0000${region ?? ""}\u0000${raw}`;
|
|
325
327
|
let pending = this.cache.get(cacheKey);
|
|
326
328
|
if (!pending) {
|
|
327
|
-
|
|
329
|
+
const target = {
|
|
330
|
+
region,
|
|
331
|
+
workload,
|
|
332
|
+
emulator
|
|
333
|
+
};
|
|
334
|
+
pending = ref.service === "secretsmanager" ? this.fetchSecret(ref, target) : this.fetchParameter(ref, target);
|
|
328
335
|
this.cache.set(cacheKey, pending);
|
|
329
336
|
pending.catch(() => this.cache.delete(cacheKey));
|
|
330
337
|
}
|
|
@@ -336,12 +343,20 @@ var DynamicReferenceResolver = class {
|
|
|
336
343
|
throw err instanceof DeferredFailure ? err.render(opts) : err;
|
|
337
344
|
});
|
|
338
345
|
}
|
|
339
|
-
smClient(
|
|
340
|
-
const
|
|
346
|
+
smClient(target) {
|
|
347
|
+
const { region, workload } = target;
|
|
348
|
+
const key = `${target.emulator ? "emulator" : "aws"}\u0000${region ?? ""}`;
|
|
341
349
|
let c = this.smClients.get(key);
|
|
342
350
|
if (!c) {
|
|
343
|
-
c = this.options.secretsManagerClientFactory?.(region
|
|
344
|
-
|
|
351
|
+
c = this.options.secretsManagerClientFactory?.(region, {
|
|
352
|
+
workload,
|
|
353
|
+
emulator: target.emulator
|
|
354
|
+
}) ?? new SecretsManagerClient({
|
|
355
|
+
...workloadClientConfig({
|
|
356
|
+
profile: this.options.profile,
|
|
357
|
+
service: "SECRETS_MANAGER",
|
|
358
|
+
workload
|
|
359
|
+
}),
|
|
345
360
|
...region && { region },
|
|
346
361
|
...this.options.profile && { profile: this.options.profile }
|
|
347
362
|
});
|
|
@@ -349,12 +364,20 @@ var DynamicReferenceResolver = class {
|
|
|
349
364
|
}
|
|
350
365
|
return c;
|
|
351
366
|
}
|
|
352
|
-
ssmClient(
|
|
353
|
-
const
|
|
367
|
+
ssmClient(target) {
|
|
368
|
+
const { region, workload } = target;
|
|
369
|
+
const key = `${target.emulator ? "emulator" : "aws"}\u0000${region ?? ""}`;
|
|
354
370
|
let c = this.ssmClients.get(key);
|
|
355
371
|
if (!c) {
|
|
356
|
-
c = this.options.ssmClientFactory?.(region
|
|
357
|
-
|
|
372
|
+
c = this.options.ssmClientFactory?.(region, {
|
|
373
|
+
workload,
|
|
374
|
+
emulator: target.emulator
|
|
375
|
+
}) ?? new SSMClient({
|
|
376
|
+
...workloadClientConfig({
|
|
377
|
+
profile: this.options.profile,
|
|
378
|
+
service: "SSM",
|
|
379
|
+
workload
|
|
380
|
+
}),
|
|
358
381
|
...region && { region },
|
|
359
382
|
...this.options.profile && { profile: this.options.profile }
|
|
360
383
|
});
|
|
@@ -370,11 +393,12 @@ var DynamicReferenceResolver = class {
|
|
|
370
393
|
const detail = describeAwsFailureForWarn(err, operation);
|
|
371
394
|
return deferred((consumer, overridable) => `Could not resolve CloudFormation dynamic reference ${displayUntrustedValue(ref.raw)} for ${consumer} (${operation} in ${region ?? "the default region"}): ${detail}.${hint} Resolving it needs ${requiredPermissionsFor(ref)}. cdk-local does not fall back to the unresolved token` + (overridable ? "; override the variable with --env-vars to skip the lookup." : "."));
|
|
372
395
|
}
|
|
373
|
-
async fetchSecret(ref,
|
|
374
|
-
const
|
|
396
|
+
async fetchSecret(ref, target) {
|
|
397
|
+
const { region } = target;
|
|
398
|
+
const operation = `SecretsManager GetSecretValue${target.emulator ? " on AWS Emulator" : ""}`;
|
|
375
399
|
let secretString;
|
|
376
400
|
try {
|
|
377
|
-
secretString = (await this.smClient(
|
|
401
|
+
secretString = (await this.smClient(target).send(new GetSecretValueCommand({
|
|
378
402
|
SecretId: ref.secretId,
|
|
379
403
|
...ref.versionStage && { VersionStage: ref.versionStage },
|
|
380
404
|
...ref.versionId && { VersionId: ref.versionId }
|
|
@@ -397,12 +421,13 @@ var DynamicReferenceResolver = class {
|
|
|
397
421
|
const value = parsed[jsonKey];
|
|
398
422
|
return typeof value === "string" ? value : JSON.stringify(value);
|
|
399
423
|
}
|
|
400
|
-
async fetchParameter(ref,
|
|
401
|
-
const
|
|
424
|
+
async fetchParameter(ref, target) {
|
|
425
|
+
const { region } = target;
|
|
426
|
+
const operation = `SSM GetParameter${target.emulator ? " on AWS Emulator" : ""}`;
|
|
402
427
|
let value;
|
|
403
428
|
let type;
|
|
404
429
|
try {
|
|
405
|
-
const resp = await this.ssmClient(
|
|
430
|
+
const resp = await this.ssmClient(target).send(new GetParameterCommand({
|
|
406
431
|
Name: ref.version !== void 0 ? `${ref.name}:${ref.version}` : ref.name,
|
|
407
432
|
WithDecryption: ref.service === "ssm-secure"
|
|
408
433
|
}));
|
|
@@ -416,6 +441,14 @@ var DynamicReferenceResolver = class {
|
|
|
416
441
|
return value;
|
|
417
442
|
}
|
|
418
443
|
};
|
|
444
|
+
function crossStackDynamicReferenceHook(resolver, consumer) {
|
|
445
|
+
return (value, producerRegion, workload) => resolver.resolveString(value, {
|
|
446
|
+
region: producerRegion,
|
|
447
|
+
workload,
|
|
448
|
+
consumer,
|
|
449
|
+
overridable: false
|
|
450
|
+
});
|
|
451
|
+
}
|
|
419
452
|
function keysNotFromTemplate(templateEnv, finalEnv) {
|
|
420
453
|
const out = /* @__PURE__ */ new Set();
|
|
421
454
|
for (const [k, v] of Object.entries(finalEnv)) {
|
|
@@ -434,7 +467,8 @@ async function resolveDynamicReferencesInEnv(env, options) {
|
|
|
434
467
|
try {
|
|
435
468
|
const values = await Promise.all(candidates.map((k) => resolver.resolveString(env[k], {
|
|
436
469
|
region: options.region,
|
|
437
|
-
consumer: `${options.label} env var ${displayUntrustedValue(k)}
|
|
470
|
+
consumer: `${options.label} env var ${displayUntrustedValue(k)}`,
|
|
471
|
+
...options.workload !== void 0 && { workload: options.workload }
|
|
438
472
|
})));
|
|
439
473
|
const out = {};
|
|
440
474
|
for (const k of Object.keys(env)) defineOwnKey(out, k, env[k]);
|
|
@@ -1063,6 +1097,20 @@ function resolveAgentCoreTarget(target, stacks, imageContext) {
|
|
|
1063
1097
|
if (resource.Type !== "AWS::BedrockAgentCore::Runtime") throw new AgentCoreResolutionError(`Resource ${displayIdent(logicalId)} in ${stack.stackName} is ${resource.Type}, not ${AGENTCORE_RUNTIME_TYPE}. ${getEmbedConfig().cliName} invoke-agentcore only runs Bedrock AgentCore Runtime resources.`);
|
|
1064
1098
|
return extractRuntimeProperties(stack, logicalId, resource, resources, imageContext);
|
|
1065
1099
|
}
|
|
1100
|
+
function agentCoreTargetWorkload(target, stacks) {
|
|
1101
|
+
try {
|
|
1102
|
+
const parsed = parseTarget(target);
|
|
1103
|
+
const stack = pickStack$5(parsed, stacks, target);
|
|
1104
|
+
const { logicalId, resource } = matchRuntime(parsed, target, stack, stack.template.Resources ?? {});
|
|
1105
|
+
const path = resource.Metadata?.["aws:cdk:path"];
|
|
1106
|
+
return {
|
|
1107
|
+
logicalId,
|
|
1108
|
+
cdkPath: typeof path === "string" ? path : void 0
|
|
1109
|
+
};
|
|
1110
|
+
} catch {
|
|
1111
|
+
return;
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1066
1114
|
function pickAgentCoreCandidateStack(target, stacks) {
|
|
1067
1115
|
return candidateTargetStack(parseTarget(target), target, stacks);
|
|
1068
1116
|
}
|
|
@@ -1407,37 +1455,37 @@ async function getClient(service, region) {
|
|
|
1407
1455
|
switch (service) {
|
|
1408
1456
|
case "sqs":
|
|
1409
1457
|
client = new (await (import("@aws-sdk/client-sqs"))).SQSClient({
|
|
1410
|
-
...workloadClientConfig(),
|
|
1458
|
+
...workloadClientConfig({ service: "SQS" }),
|
|
1411
1459
|
region
|
|
1412
1460
|
});
|
|
1413
1461
|
break;
|
|
1414
1462
|
case "sns":
|
|
1415
1463
|
client = new (await (import("@aws-sdk/client-sns"))).SNSClient({
|
|
1416
|
-
...workloadClientConfig(),
|
|
1464
|
+
...workloadClientConfig({ service: "SNS" }),
|
|
1417
1465
|
region
|
|
1418
1466
|
});
|
|
1419
1467
|
break;
|
|
1420
1468
|
case "eventbridge":
|
|
1421
1469
|
client = new (await (import("@aws-sdk/client-eventbridge"))).EventBridgeClient({
|
|
1422
|
-
...workloadClientConfig(),
|
|
1470
|
+
...workloadClientConfig({ service: "EVENTBRIDGE" }),
|
|
1423
1471
|
region
|
|
1424
1472
|
});
|
|
1425
1473
|
break;
|
|
1426
1474
|
case "kinesis":
|
|
1427
1475
|
client = new (await (import("@aws-sdk/client-kinesis"))).KinesisClient({
|
|
1428
|
-
...workloadClientConfig(),
|
|
1476
|
+
...workloadClientConfig({ service: "KINESIS" }),
|
|
1429
1477
|
region
|
|
1430
1478
|
});
|
|
1431
1479
|
break;
|
|
1432
1480
|
case "sfn":
|
|
1433
1481
|
client = new (await (import("@aws-sdk/client-sfn"))).SFNClient({
|
|
1434
|
-
...workloadClientConfig(),
|
|
1482
|
+
...workloadClientConfig({ service: "SFN" }),
|
|
1435
1483
|
region
|
|
1436
1484
|
});
|
|
1437
1485
|
break;
|
|
1438
1486
|
case "ssm":
|
|
1439
1487
|
client = new (await (import("@aws-sdk/client-ssm"))).SSMClient({
|
|
1440
|
-
...workloadClientConfig(),
|
|
1488
|
+
...workloadClientConfig({ service: "SSM" }),
|
|
1441
1489
|
region
|
|
1442
1490
|
});
|
|
1443
1491
|
break;
|
|
@@ -2992,6 +3040,7 @@ var CfnLocalStateProvider = class {
|
|
|
2992
3040
|
agentCoreControlClient;
|
|
2993
3041
|
clientOptions;
|
|
2994
3042
|
endpointOverride;
|
|
3043
|
+
workload;
|
|
2995
3044
|
disposed = false;
|
|
2996
3045
|
lastLoadError;
|
|
2997
3046
|
constructor(opts) {
|
|
@@ -2999,6 +3048,7 @@ var CfnLocalStateProvider = class {
|
|
|
2999
3048
|
this.region = opts.region;
|
|
3000
3049
|
this.clientOptions = { region: opts.region };
|
|
3001
3050
|
this.endpointOverride = opts.endpointOverride;
|
|
3051
|
+
this.workload = opts.workload;
|
|
3002
3052
|
this.label = opts.label ?? "--from-cfn-stack";
|
|
3003
3053
|
if (opts.profile !== void 0 && !opts.endpointOverride) this.clientOptions.profile = opts.profile;
|
|
3004
3054
|
}
|
|
@@ -3038,7 +3088,13 @@ var CfnLocalStateProvider = class {
|
|
|
3038
3088
|
getSsmClient() {
|
|
3039
3089
|
if (this.disposed) throw new Error("CfnLocalStateProvider used after dispose()");
|
|
3040
3090
|
if (!this.ssmClient) this.ssmClient = new SSMClient({
|
|
3041
|
-
...workloadClientConfig({
|
|
3091
|
+
...workloadClientConfig({
|
|
3092
|
+
profile: this.clientOptions.profile,
|
|
3093
|
+
...this.endpointOverride ? {} : {
|
|
3094
|
+
service: "SSM",
|
|
3095
|
+
workload: this.workload
|
|
3096
|
+
}
|
|
3097
|
+
}),
|
|
3042
3098
|
...this.overrideClientConfig(),
|
|
3043
3099
|
region: this.region,
|
|
3044
3100
|
...this.clientOptions.profile !== void 0 && { profile: this.clientOptions.profile }
|
|
@@ -3318,10 +3374,13 @@ function createLocalStateProvider(options, stackName, synthRegion, extraStatePro
|
|
|
3318
3374
|
const real = new CfnLocalStateProvider({
|
|
3319
3375
|
cfnStackName,
|
|
3320
3376
|
region,
|
|
3321
|
-
...options.profile !== void 0 && { profile: options.profile }
|
|
3377
|
+
...options.profile !== void 0 && { profile: options.profile },
|
|
3378
|
+
...behavior.workload !== void 0 && { workload: behavior.workload }
|
|
3322
3379
|
});
|
|
3323
3380
|
const mixed = behavior.realAwsOnly ? void 0 : getActiveWorkloadAwsWiring()?.mixed;
|
|
3324
3381
|
if (!mixed) return real;
|
|
3382
|
+
const emulatedServices = awsEmulatorRoutedServices(behavior.workload) ?? mixed.services;
|
|
3383
|
+
if (emulatedServices.length === 0) return real;
|
|
3325
3384
|
return createMixedModeStateProvider({
|
|
3326
3385
|
real,
|
|
3327
3386
|
emulator: new CfnLocalStateProvider({
|
|
@@ -3330,12 +3389,12 @@ function createLocalStateProvider(options, stackName, synthRegion, extraStatePro
|
|
|
3330
3389
|
endpointOverride: mixed.emulatorClientOverride,
|
|
3331
3390
|
label: "--from-cfn-stack (AWS Emulator)"
|
|
3332
3391
|
}),
|
|
3333
|
-
emulatedServices
|
|
3392
|
+
emulatedServices
|
|
3334
3393
|
});
|
|
3335
3394
|
}
|
|
3336
3395
|
if (activeExtras.length === 1) {
|
|
3337
3396
|
const factory = extraStateProviders[activeExtras[0]];
|
|
3338
|
-
return factory(options);
|
|
3397
|
+
return factory(options, behavior);
|
|
3339
3398
|
}
|
|
3340
3399
|
}
|
|
3341
3400
|
function toFlagName(field) {
|
|
@@ -4616,6 +4675,24 @@ function checkVolumeHostPath(hostPath) {
|
|
|
4616
4675
|
return false;
|
|
4617
4676
|
}
|
|
4618
4677
|
}
|
|
4678
|
+
async function applyCrossStackValuesToTask(task, crossStackResolver, opts) {
|
|
4679
|
+
const { imageContext } = opts;
|
|
4680
|
+
const dynamicRefs = new DynamicReferenceResolver({ ...opts.profile !== void 0 && { profile: opts.profile } });
|
|
4681
|
+
const subContext = {
|
|
4682
|
+
resources: imageContext?.stateResources ?? {},
|
|
4683
|
+
...imageContext?.pseudoParameters && { pseudoParameters: imageContext.pseudoParameters },
|
|
4684
|
+
...imageContext?.stateParameters && { parameters: imageContext.stateParameters },
|
|
4685
|
+
...imageContext?.stateSensitiveParameters?.length && { sensitiveParameters: new Set(imageContext.stateSensitiveParameters) },
|
|
4686
|
+
consumerRegion: opts.consumerRegion,
|
|
4687
|
+
crossStackResolver,
|
|
4688
|
+
resolveDynamicReferences: crossStackDynamicReferenceHook(dynamicRefs, `Task ${task.taskDefinitionLogicalId} cross-stack env value`)
|
|
4689
|
+
};
|
|
4690
|
+
try {
|
|
4691
|
+
await applyCrossStackResolverToTask(task, subContext);
|
|
4692
|
+
} finally {
|
|
4693
|
+
dynamicRefs.dispose();
|
|
4694
|
+
}
|
|
4695
|
+
}
|
|
4619
4696
|
async function applyCrossStackResolverToTask(task, context) {
|
|
4620
4697
|
if (!context.crossStackResolver) return;
|
|
4621
4698
|
const { resolveDynamicReferences: _envOnly, ...secretContext } = context;
|
|
@@ -4627,6 +4704,11 @@ async function applyCrossStackResolverToTask(task, context) {
|
|
|
4627
4704
|
if (!raw || typeof raw !== "object") continue;
|
|
4628
4705
|
const c = raw;
|
|
4629
4706
|
const containerName = pickString(c["Name"]) ?? container.name;
|
|
4707
|
+
const resolveRefs = context.resolveDynamicReferences;
|
|
4708
|
+
const containerContext = resolveRefs ? {
|
|
4709
|
+
...context,
|
|
4710
|
+
resolveDynamicReferences: (v, region) => resolveRefs(v, region, { containerName: container.name })
|
|
4711
|
+
} : context;
|
|
4630
4712
|
const resolvedEnvKeys = /* @__PURE__ */ new Set();
|
|
4631
4713
|
const resolvedSecretNames = /* @__PURE__ */ new Set();
|
|
4632
4714
|
if (Array.isArray(c["Environment"])) for (const entry of c["Environment"]) {
|
|
@@ -4638,7 +4720,7 @@ async function applyCrossStackResolverToTask(task, context) {
|
|
|
4638
4720
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") continue;
|
|
4639
4721
|
if (Object.hasOwn(container.environment, key)) continue;
|
|
4640
4722
|
if (!isCrossStackIntrinsic(value)) continue;
|
|
4641
|
-
const { result: sub, consumedSensitive } = await resolveWithSensitivityAsync(value,
|
|
4723
|
+
const { result: sub, consumedSensitive } = await resolveWithSensitivityAsync(value, containerContext);
|
|
4642
4724
|
if (sub.kind === "literal") {
|
|
4643
4725
|
defineOwnKey(container.environment, key, String(sub.value));
|
|
4644
4726
|
resolvedEnvKeys.add(key);
|
|
@@ -10108,39 +10190,6 @@ function availableApiIdentifiers(routes) {
|
|
|
10108
10190
|
return out;
|
|
10109
10191
|
}
|
|
10110
10192
|
|
|
10111
|
-
//#endregion
|
|
10112
|
-
//#region src/local/env-resolver.ts
|
|
10113
|
-
function resolveEnvVars$1(logicalId, displayPath, templateEnv, overrides) {
|
|
10114
|
-
const resolved = {};
|
|
10115
|
-
const unresolved = [];
|
|
10116
|
-
if (templateEnv) for (const [key, value] of Object.entries(templateEnv)) if (isLiteralEnvValue(value)) defineOwnKey(resolved, key, String(value));
|
|
10117
|
-
else unresolved.push(key);
|
|
10118
|
-
if (overrides) {
|
|
10119
|
-
applyEnvOverrideMap(resolved, overrides.Parameters);
|
|
10120
|
-
for (const [key, val] of Object.entries(overrides)) {
|
|
10121
|
-
if (key === "Parameters") continue;
|
|
10122
|
-
if (!val || typeof val !== "object") continue;
|
|
10123
|
-
if (key === logicalId) {
|
|
10124
|
-
applyEnvOverrideMap(resolved, val);
|
|
10125
|
-
continue;
|
|
10126
|
-
}
|
|
10127
|
-
if (displayPath && (displayPath === key || displayPath.startsWith(`${key}/`))) applyEnvOverrideMap(resolved, val);
|
|
10128
|
-
}
|
|
10129
|
-
}
|
|
10130
|
-
return {
|
|
10131
|
-
resolved,
|
|
10132
|
-
unresolved
|
|
10133
|
-
};
|
|
10134
|
-
}
|
|
10135
|
-
function applyEnvOverrideMap(acc, map) {
|
|
10136
|
-
if (!map) return;
|
|
10137
|
-
for (const [key, value] of Object.entries(map)) if (value === null) delete acc[key];
|
|
10138
|
-
else if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") defineOwnKey(acc, key, String(value));
|
|
10139
|
-
}
|
|
10140
|
-
function isLiteralEnvValue(value) {
|
|
10141
|
-
return typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
10142
|
-
}
|
|
10143
|
-
|
|
10144
10193
|
//#endregion
|
|
10145
10194
|
//#region src/local/layer-arn-materializer.ts
|
|
10146
10195
|
var LayerMaterializationError = class LayerMaterializationError extends Error {
|
|
@@ -11393,7 +11442,11 @@ async function buildContainerSpec(args) {
|
|
|
11393
11442
|
region: firstUsableRegion(stateBundle?.region, stackRegionOverride, lambda.stack.region, stsRegion, profileRegion),
|
|
11394
11443
|
label: `Lambda ${logicalId}`,
|
|
11395
11444
|
skipKeys: plaintextKeys,
|
|
11396
|
-
...profile !== void 0 && { profile }
|
|
11445
|
+
...profile !== void 0 && { profile },
|
|
11446
|
+
workload: {
|
|
11447
|
+
logicalId,
|
|
11448
|
+
cdkPath: lambdaCdkPath
|
|
11449
|
+
}
|
|
11397
11450
|
});
|
|
11398
11451
|
const dockerEnv = {
|
|
11399
11452
|
AWS_LAMBDA_FUNCTION_NAME: logicalId,
|
|
@@ -11699,7 +11752,7 @@ function readEnvOverridesFile$4(filePath) {
|
|
|
11699
11752
|
if (!filePath) return void 0;
|
|
11700
11753
|
let raw;
|
|
11701
11754
|
try {
|
|
11702
|
-
raw =
|
|
11755
|
+
raw = readEnvVarsFileText(filePath);
|
|
11703
11756
|
} catch (err) {
|
|
11704
11757
|
throw new Error(`Failed to read --env-vars file '${filePath}': ${err instanceof Error ? err.message : String(err)}`);
|
|
11705
11758
|
}
|
|
@@ -12343,11 +12396,17 @@ function getTemplateEnv(resource) {
|
|
|
12343
12396
|
if (!vars || typeof vars !== "object") return void 0;
|
|
12344
12397
|
return vars;
|
|
12345
12398
|
}
|
|
12399
|
+
function lambdaWorkload(lambda) {
|
|
12400
|
+
return {
|
|
12401
|
+
logicalId: lambda.logicalId,
|
|
12402
|
+
cdkPath: readCdkPathOrUndefined(lambda.resource)
|
|
12403
|
+
};
|
|
12404
|
+
}
|
|
12346
12405
|
function readEnvOverridesFile$3(filePath) {
|
|
12347
12406
|
if (!filePath) return void 0;
|
|
12348
12407
|
let raw;
|
|
12349
12408
|
try {
|
|
12350
|
-
raw =
|
|
12409
|
+
raw = readEnvVarsFileText(filePath);
|
|
12351
12410
|
} catch (err) {
|
|
12352
12411
|
throw new Error(`Failed to read --env-vars file '${filePath}': ${err instanceof Error ? err.message : String(err)}`);
|
|
12353
12412
|
}
|
|
@@ -12400,7 +12459,10 @@ function applyProfileCredentialsOverlay(env, profileCreds, assumeRoleActive) {
|
|
|
12400
12459
|
else delete env["AWS_SESSION_TOKEN"];
|
|
12401
12460
|
}
|
|
12402
12461
|
async function resolveLambdaContainerEnv(lambda, options, profileCredentials, extraStateProviders) {
|
|
12403
|
-
const dynamicRefs = new DynamicReferenceResolver({
|
|
12462
|
+
const dynamicRefs = new DynamicReferenceResolver({
|
|
12463
|
+
...options.profile !== void 0 && { profile: options.profile },
|
|
12464
|
+
workload: lambdaWorkload(lambda)
|
|
12465
|
+
});
|
|
12404
12466
|
try {
|
|
12405
12467
|
return await resolveLambdaContainerEnvWith(lambda, options, profileCredentials, extraStateProviders, dynamicRefs);
|
|
12406
12468
|
} finally {
|
|
@@ -12419,7 +12481,7 @@ async function resolveLambdaContainerEnvWith(lambda, options, profileCredentials
|
|
|
12419
12481
|
const overriddenKeys = keysOverriddenBy(declaredEnv, (env) => resolveEnvVars$1(lambda.logicalId, lambdaCdkPath, env, overrides).resolved);
|
|
12420
12482
|
let templateEnv = declaredEnv && withoutKeys(declaredEnv, overriddenKeys);
|
|
12421
12483
|
let stateForRoleHint;
|
|
12422
|
-
const stateProvider = createLocalStateProvider(options, lambda.stack.stackName, await resolveCfnFallbackRegion(options, lambda.stack.region), extraStateProviders);
|
|
12484
|
+
const stateProvider = createLocalStateProvider(options, lambda.stack.stackName, await resolveCfnFallbackRegion(options, lambda.stack.region), extraStateProviders, { workload: lambdaWorkload(lambda) });
|
|
12423
12485
|
if (stateProvider) try {
|
|
12424
12486
|
const loaded = await stateProvider.load(lambda.stack.stackName, lambda.stack.region);
|
|
12425
12487
|
if (loaded) {
|
|
@@ -13556,7 +13618,7 @@ async function localInvokeAgentCoreCommand(target, options, extraStateProviders)
|
|
|
13556
13618
|
onMissing: () => new CdkLocalError(`${getEmbedConfig().cliName} invoke-agentcore requires a <target> (an AgentCore Runtime display path or logical ID). Run \`${getEmbedConfig().cliName} list\` to see them, or run it in a TTY to pick interactively.`, "LOCAL_INVOKE_AGENTCORE_TARGET_REQUIRED")
|
|
13557
13619
|
});
|
|
13558
13620
|
const candidate = pickAgentCoreCandidateStack(resolvedTarget, stacks);
|
|
13559
|
-
stateProvider = createLocalStateProvider(options, candidate?.stackName ?? "", await resolveCfnFallbackRegion(options, candidate?.region), extraStateProviders);
|
|
13621
|
+
stateProvider = createLocalStateProvider(options, candidate?.stackName ?? "", await resolveCfnFallbackRegion(options, candidate?.region), extraStateProviders, { workload: agentCoreTargetWorkload(resolvedTarget, stacks) });
|
|
13560
13622
|
const { context: imageContext, loaded: loadedState } = stateProvider && candidate ? await buildAgentCoreImageContext(candidate, stateProvider, options) : {
|
|
13561
13623
|
context: void 0,
|
|
13562
13624
|
loaded: void 0
|
|
@@ -13914,7 +13976,13 @@ function findFileAssetByObjectKey(fileAssets, hash) {
|
|
|
13914
13976
|
for (const asset of fileAssets.values()) if (Object.values(asset.destinations).some((d) => d.objectKey === zip || d.objectKey.endsWith(`/${zip}`))) return asset;
|
|
13915
13977
|
}
|
|
13916
13978
|
async function buildContainerEnv(resolved, options, profileCredentials, profileCredsFile, stateProvider, loaded, imageContext) {
|
|
13917
|
-
const dynamicRefs = new DynamicReferenceResolver({
|
|
13979
|
+
const dynamicRefs = new DynamicReferenceResolver({
|
|
13980
|
+
...options.profile !== void 0 && { profile: options.profile },
|
|
13981
|
+
workload: {
|
|
13982
|
+
logicalId: resolved.logicalId,
|
|
13983
|
+
cdkPath: readCdkPathOrUndefined(resolved.resource)
|
|
13984
|
+
}
|
|
13985
|
+
});
|
|
13918
13986
|
try {
|
|
13919
13987
|
return await buildContainerEnvWith(resolved, options, profileCredentials, profileCredsFile, stateProvider, loaded, imageContext, dynamicRefs);
|
|
13920
13988
|
} finally {
|
|
@@ -14260,7 +14328,7 @@ function readEnvOverridesFile$2(filePath) {
|
|
|
14260
14328
|
if (!filePath) return void 0;
|
|
14261
14329
|
let raw;
|
|
14262
14330
|
try {
|
|
14263
|
-
raw =
|
|
14331
|
+
raw = readEnvVarsFileText(filePath);
|
|
14264
14332
|
} catch (err) {
|
|
14265
14333
|
throw new Error(`Failed to read --env-vars file '${filePath}': ${err instanceof Error ? err.message : String(err)}`);
|
|
14266
14334
|
}
|
|
@@ -14953,20 +15021,49 @@ var EcsSecretsResolutionError = class EcsSecretsResolutionError extends Error {
|
|
|
14953
15021
|
async function resolveEcsSecrets(entries, options = {}) {
|
|
14954
15022
|
if (entries.length === 0) return [];
|
|
14955
15023
|
const logger = getLogger().child("ecs-secrets");
|
|
14956
|
-
const
|
|
14957
|
-
|
|
14958
|
-
|
|
14959
|
-
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
|
|
14966
|
-
|
|
14967
|
-
|
|
15024
|
+
const owned = [];
|
|
15025
|
+
const smClients = /* @__PURE__ */ new Map();
|
|
15026
|
+
const ssmClients = /* @__PURE__ */ new Map();
|
|
15027
|
+
const clientsFor = (containerName) => {
|
|
15028
|
+
const workload = { containerName };
|
|
15029
|
+
const smRoute = isAwsServiceRoutedToEmulator("SECRETS_MANAGER", workload);
|
|
15030
|
+
const ssmRoute = isAwsServiceRoutedToEmulator("SSM", workload);
|
|
15031
|
+
let secretsClient = options.secretsManagerClient ?? smClients.get(smRoute);
|
|
15032
|
+
if (!secretsClient) {
|
|
15033
|
+
secretsClient = new SecretsManagerClient({
|
|
15034
|
+
...workloadClientConfig({
|
|
15035
|
+
profile: options.profile,
|
|
15036
|
+
service: "SECRETS_MANAGER",
|
|
15037
|
+
workload
|
|
15038
|
+
}),
|
|
15039
|
+
...options.region && { region: options.region },
|
|
15040
|
+
...options.profile && { profile: options.profile }
|
|
15041
|
+
});
|
|
15042
|
+
smClients.set(smRoute, secretsClient);
|
|
15043
|
+
owned.push(secretsClient);
|
|
15044
|
+
}
|
|
15045
|
+
let ssmClient = options.ssmClient ?? ssmClients.get(ssmRoute);
|
|
15046
|
+
if (!ssmClient) {
|
|
15047
|
+
ssmClient = new SSMClient({
|
|
15048
|
+
...workloadClientConfig({
|
|
15049
|
+
profile: options.profile,
|
|
15050
|
+
service: "SSM",
|
|
15051
|
+
workload
|
|
15052
|
+
}),
|
|
15053
|
+
...options.region && { region: options.region },
|
|
15054
|
+
...options.profile && { profile: options.profile }
|
|
15055
|
+
});
|
|
15056
|
+
ssmClients.set(ssmRoute, ssmClient);
|
|
15057
|
+
owned.push(ssmClient);
|
|
15058
|
+
}
|
|
15059
|
+
return {
|
|
15060
|
+
secretsClient,
|
|
15061
|
+
ssmClient
|
|
15062
|
+
};
|
|
15063
|
+
};
|
|
14968
15064
|
try {
|
|
14969
15065
|
return await Promise.all(entries.map(async (entry) => {
|
|
15066
|
+
const { secretsClient, ssmClient } = clientsFor(entry.containerName);
|
|
14970
15067
|
const value = await resolveOne(entry, secretsClient, ssmClient);
|
|
14971
15068
|
logger.debug(`Resolved secret ${displayIdent(entry.containerName)}.${displayIdent(entry.name)} (${displayUntrustedValue(entry.valueFrom)})`);
|
|
14972
15069
|
return {
|
|
@@ -14975,8 +15072,7 @@ async function resolveEcsSecrets(entries, options = {}) {
|
|
|
14975
15072
|
};
|
|
14976
15073
|
}));
|
|
14977
15074
|
} finally {
|
|
14978
|
-
|
|
14979
|
-
if (ownsSsmClient) ssmClient.destroy();
|
|
15075
|
+
for (const c of owned) c.destroy();
|
|
14980
15076
|
}
|
|
14981
15077
|
}
|
|
14982
15078
|
async function resolveOne(entry, secretsClient, ssmClient) {
|
|
@@ -15168,7 +15264,8 @@ async function runEcsTask(task, options, state) {
|
|
|
15168
15264
|
region: firstUsableRegion(options.stackRegion, task.stack.region, options.region),
|
|
15169
15265
|
label: `Container ${c.name}`,
|
|
15170
15266
|
skipKeys: new Set(Object.keys(c.environment).filter((k) => !tokenKeys.has(k))),
|
|
15171
|
-
resolver: dynamicRefs
|
|
15267
|
+
resolver: dynamicRefs,
|
|
15268
|
+
workload: { containerName: c.name }
|
|
15172
15269
|
}));
|
|
15173
15270
|
}
|
|
15174
15271
|
} finally {
|
|
@@ -16607,10 +16704,10 @@ const defaultDockerStartImpl = async (containerId, opts = {}) => {
|
|
|
16607
16704
|
const { getDockerCmd } = await import("./docker-cmd-Cjg3jGYF.js").then((n) => n.t);
|
|
16608
16705
|
await promisify(execFile)(getDockerCmd(), ["start", containerId]);
|
|
16609
16706
|
if (opts.joinedForwarder) return;
|
|
16610
|
-
const { getActiveWorkloadAwsWiring } = await import("./workload-identity-
|
|
16707
|
+
const { getActiveWorkloadAwsWiring } = await import("./workload-identity-BOEZuEDO.js").then((n) => n.R);
|
|
16611
16708
|
const wiring = getActiveWorkloadAwsWiring();
|
|
16612
16709
|
if (wiring) {
|
|
16613
|
-
const { attachLoopbackForwarder } = await import("./docker-runner-
|
|
16710
|
+
const { attachLoopbackForwarder } = await import("./docker-runner-6cuoe4H9.js").then((n) => n.o);
|
|
16614
16711
|
await attachLoopbackForwarder(containerId, wiring);
|
|
16615
16712
|
}
|
|
16616
16713
|
};
|
|
@@ -19571,27 +19668,11 @@ async function resolveServiceAndRunnerOpts(boot, stacks, options, discovery, ski
|
|
|
19571
19668
|
if (stateProvider && taskNeeds.needsCrossStackResolver) {
|
|
19572
19669
|
const consumerRegion = options.region ?? process.env["AWS_REGION"] ?? process.env["AWS_DEFAULT_REGION"] ?? service.stack.region ?? "us-east-1";
|
|
19573
19670
|
const resolver = await stateProvider.buildCrossStackResolver(consumerRegion);
|
|
19574
|
-
if (resolver) {
|
|
19575
|
-
|
|
19576
|
-
|
|
19577
|
-
|
|
19578
|
-
|
|
19579
|
-
...imageContext?.stateParameters && { parameters: imageContext.stateParameters },
|
|
19580
|
-
...imageContext?.stateSensitiveParameters?.length && { sensitiveParameters: new Set(imageContext.stateSensitiveParameters) },
|
|
19581
|
-
consumerRegion,
|
|
19582
|
-
crossStackResolver: resolver,
|
|
19583
|
-
resolveDynamicReferences: (value, producerRegion) => dynamicRefs.resolveString(value, {
|
|
19584
|
-
region: producerRegion,
|
|
19585
|
-
consumer: `Task ${service.task.taskDefinitionLogicalId} cross-stack env value`,
|
|
19586
|
-
overridable: false
|
|
19587
|
-
})
|
|
19588
|
-
};
|
|
19589
|
-
try {
|
|
19590
|
-
await applyCrossStackResolverToTask(service.task, subContext);
|
|
19591
|
-
} finally {
|
|
19592
|
-
dynamicRefs.dispose();
|
|
19593
|
-
}
|
|
19594
|
-
}
|
|
19671
|
+
if (resolver) await applyCrossStackValuesToTask(service.task, resolver, {
|
|
19672
|
+
imageContext,
|
|
19673
|
+
consumerRegion,
|
|
19674
|
+
profile: options.profile
|
|
19675
|
+
});
|
|
19595
19676
|
} else if (!stateProvider && taskNeeds.needsCrossStackResolver) logger.warn("Container Environment / Secrets entries contain Fn::ImportValue / Fn::GetStackOutput intrinsics. Pass a state-source flag (e.g. --from-cfn-stack or a host-provided extension) to substitute them against deployed state.");
|
|
19596
19677
|
const effectiveAssumeRole = resolveEcsAssumeRoleOption(options);
|
|
19597
19678
|
let assumedCredentials;
|
|
@@ -20038,7 +20119,7 @@ function readEnvOverridesFile$1(filePath) {
|
|
|
20038
20119
|
if (!filePath) return void 0;
|
|
20039
20120
|
let raw;
|
|
20040
20121
|
try {
|
|
20041
|
-
raw =
|
|
20122
|
+
raw = readEnvVarsFileText(filePath);
|
|
20042
20123
|
} catch (err) {
|
|
20043
20124
|
throw new LocalStartServiceError(`Failed to read --env-vars file '${filePath}': ${err instanceof Error ? err.message : String(err)}`);
|
|
20044
20125
|
}
|
|
@@ -20279,27 +20360,11 @@ async function localRunTaskCommand(target, options, extraStateProviders) {
|
|
|
20279
20360
|
if (stateProvider && taskNeeds.needsCrossStackResolver) {
|
|
20280
20361
|
const consumerRegion = options.region ?? process.env["AWS_REGION"] ?? process.env["AWS_DEFAULT_REGION"] ?? task.stack.region ?? "us-east-1";
|
|
20281
20362
|
const resolver = await stateProvider.buildCrossStackResolver(consumerRegion);
|
|
20282
|
-
if (resolver) {
|
|
20283
|
-
|
|
20284
|
-
|
|
20285
|
-
|
|
20286
|
-
|
|
20287
|
-
...imageContext?.stateParameters && { parameters: imageContext.stateParameters },
|
|
20288
|
-
...imageContext?.stateSensitiveParameters?.length && { sensitiveParameters: new Set(imageContext.stateSensitiveParameters) },
|
|
20289
|
-
consumerRegion,
|
|
20290
|
-
crossStackResolver: resolver,
|
|
20291
|
-
resolveDynamicReferences: (value, producerRegion) => dynamicRefs.resolveString(value, {
|
|
20292
|
-
region: producerRegion,
|
|
20293
|
-
consumer: `Task ${task.taskDefinitionLogicalId} cross-stack env value`,
|
|
20294
|
-
overridable: false
|
|
20295
|
-
})
|
|
20296
|
-
};
|
|
20297
|
-
try {
|
|
20298
|
-
await applyCrossStackResolverToTask(task, subContext);
|
|
20299
|
-
} finally {
|
|
20300
|
-
dynamicRefs.dispose();
|
|
20301
|
-
}
|
|
20302
|
-
}
|
|
20363
|
+
if (resolver) await applyCrossStackValuesToTask(task, resolver, {
|
|
20364
|
+
imageContext,
|
|
20365
|
+
consumerRegion,
|
|
20366
|
+
profile: options.profile
|
|
20367
|
+
});
|
|
20303
20368
|
} else if (!stateProvider && taskNeeds.needsCrossStackResolver) logger.warn("Container Environment / Secrets entries contain Fn::ImportValue / Fn::GetStackOutput intrinsics. Pass a state-source flag (e.g. --from-cfn-stack or a host-provided extension) to substitute them against deployed state.");
|
|
20304
20369
|
const onSignal = createShutdownSignalHandler({
|
|
20305
20370
|
cleanup,
|
|
@@ -20494,7 +20559,7 @@ function readEnvOverridesFile(filePath) {
|
|
|
20494
20559
|
if (!filePath) return void 0;
|
|
20495
20560
|
let raw;
|
|
20496
20561
|
try {
|
|
20497
|
-
raw =
|
|
20562
|
+
raw = readEnvVarsFileText(filePath);
|
|
20498
20563
|
} catch (err) {
|
|
20499
20564
|
throw new Error(`Failed to read --env-vars file '${filePath}': ${err instanceof Error ? err.message : String(err)}`);
|
|
20500
20565
|
}
|
|
@@ -25055,7 +25120,7 @@ async function localStartAgentCoreCommand(target, options, extraStateProviders,
|
|
|
25055
25120
|
});
|
|
25056
25121
|
const candidate = pickAgentCoreCandidateStack(resolvedTarget, stacks);
|
|
25057
25122
|
if (candidate) checkSelectedStacks?.([candidate.stackName]);
|
|
25058
|
-
stateProvider = createLocalStateProvider(options, candidate?.stackName ?? "", await resolveCfnFallbackRegion(options, candidate?.region), extraStateProviders);
|
|
25123
|
+
stateProvider = createLocalStateProvider(options, candidate?.stackName ?? "", await resolveCfnFallbackRegion(options, candidate?.region), extraStateProviders, { workload: agentCoreTargetWorkload(resolvedTarget, stacks) });
|
|
25059
25124
|
const { context: imageContext, loaded: loadedState } = stateProvider && candidate ? await buildAgentCoreImageContext(candidate, stateProvider, options) : {
|
|
25060
25125
|
context: void 0,
|
|
25061
25126
|
loaded: void 0
|
|
@@ -31933,5 +31998,5 @@ function addStudioSpecificOptions(cmd) {
|
|
|
31933
31998
|
}
|
|
31934
31999
|
|
|
31935
32000
|
//#endregion
|
|
31936
|
-
export { postHook as $,
|
|
31937
|
-
//# sourceMappingURL=local-studio-
|
|
32001
|
+
export { postHook as $, awsEndpointOptions as $a, buildConnectEvent as $i, addImageOverrideOptions as $n, addStartApiSpecificOptions as $r, classifyS3Error as $t, microvmFidelityWarnings as A, webSocketApiMatchesIdentifier as Aa, buildCorsConfigByApiId as Ai, stripCloudFrontImport as An, A2A_CONTAINER_PORT as Ar, readContainerLogTail as At, MICROVM_WS_BASE_PROTOCOL as B, pickAgentCoreCandidateStack as Ba, pickResponseTemplate as Bi, createLocalStartAlbCommand as Bn, AGENTCORE_SESSION_ID_HEADER as Br, parseWebFunctionBuildConfig as Bt, addListSpecificOptions as C, countTargets as Ca, buildMethodArn as Ci, WEB_FUNCTION_REVISION_TYPE as Cn, setShadowReadyTimeoutMs as Cr, parseKvsFileOverrides as Ct, buildMicrovmLambdaView as D, discoverWebSocketApisOrThrow as Da, invokeTokenAuthorizer as Di, compileCloudFrontFunction as Dn, createLocalInvokeAgentCoreCommand as Dr, WEB_FUNCTION_CONTAINER_PORT as Dt, addStartMicrovmSpecificOptions as E, discoverWebSocketApis as Ea, invokeRequestAuthorizer as Ei, resolveWebFunctionTarget as En, addInvokeAgentCoreSpecificOptions as Er, RecentOutput as Et, microvmImageTag as F, AGENTCORE_AGUI_PROTOCOL as Fa, translateLambdaResponse as Fi, findFileAssetForObjectKey as Fn, MCP_PROTOCOL_VERSION as Fr, buildNodeEntryFileStart as Ft, startMicrovmFrontDoor as G, deployedFillMayBeSecret as Ga, HOST_GATEWAY_MIN_VERSION as Gi, addStartServiceSpecificOptions as Gn, SUPPORTED_CODE_RUNTIMES as Gr, readWebFunctionServiceConfig as Gt, PROXY_PORT_HEADER as H, DynamicReferenceResolutionError as Ha, tryParseStatus as Hi, resolveAlbTarget as Hn, waitForAgentCoreHttpReady as Hr, WEB_FUNCTION_HTTP_ENDPOINT_ENV as Ht, planMicrovmPorts as I, AGENTCORE_HTTP_PROTOCOL as Ia, applyAuthorizerOverlay as Ii, isBucketDeploymentResource as In, mcpInvokeOnce as Ir, defaultWebFunctionPlatform as It, MICROVM_HOOK_PATH_PREFIX as J, keysOverriddenBy as Ja, bufferToBody as Ji, addRunTaskSpecificOptions as Jn, renderCodeDockerfile as Jr, idFromArn as Jt, stripMicrovmProxyHeaders as K, firstUsableRegion as Ka, probeHostGatewaySupport as Ki, createLocalStartServiceCommand as Kn, buildAgentCoreCodeImage as Kr, webFunctionAssumeRole as Kt, readExposedPorts as L, AGENTCORE_MCP_PROTOCOL as La, buildHttpApiV2Event as Li, resolveBucketDeploymentObjectKey as Ln, parseSseForJsonRpc as Lr, resolveWebFunctionRuntime as Lt, DEFAULT_TERMINATE_HOOK_TIMEOUT_MS as M, pickRefLogicalId as Ma, isFunctionUrlOacFronted as Mi, createLocalFileKvsDataSource as Mn, a2aInvokeOnce as Mr, waitForWebFunctionReady as Mt, LocalMicrovm as N, resolveLambdaArnIntrinsic as Na, matchPreflight as Ni, createUnboundCloudFrontModule as Nn, MCP_CONTAINER_PORT as Nr, watchContainerExit as Nt, createLocalStartMicrovmCommand as O, filterWebSocketApisByIdentifiers as Oa, attachAuthorizers as Oi, runViewerRequest as On, bridgeAgentCoreWs as Or, containerFailure as Ot, buildMicrovmImage as P, AGENTCORE_A2A_PROTOCOL as Pa, matchRoute as Pi, bucketDeploymentSourceObjectKeys as Pn, MCP_PATH as Pr, WEB_FUNCTION_RUNTIMES as Pt, pollBuildHook as Q, addAwsEndpointOptions as Qa, parseConnectionsPath as Qi, addEcsAssumeRoleOptions as Qn, createLocalInvokeCommand as Qr, resolveDeployedOriginBucket as Qt, setContainerPaused as R, AGENTCORE_RUNTIME_TYPE as Ra, buildRestV1Event as Ri, addAlbSpecificOptions as Rn, AGENTCORE_SIGV4_SERVICE as Rr, supportedWebFunctionRuntimes as Rt, StudioEventBus as S, resolveSingleTarget as Sa, verifyJwtViaDiscovery as Si, WEB_FUNCTION_ENDPOINT_TYPE as Sn, SOFT_RELOAD_COMPLETION_LOG_SUFFIX as Sr, normalizeKvsFileKeys as St, formatTargetListing as T, availableWebSocketApiIdentifiers as Ta, evaluateCachedLambdaPolicy as Ti, WebFunctionResolutionError as Tn, attachContainerLogStreamer as Tr, resolveCloudFrontTarget as Tt, rewriteUpgradeResponseHead as U, DynamicReferenceResolver as Ua, VtlEvaluationError as Ui, isApplicationLoadBalancer as Un, waitForAgentCorePing as Ur, buildWebFunctionLambdaView as Ut, MicrovmStateError as V, resolveAgentCoreTarget as Va, selectIntegrationResponse as Vi, parseLbPortOverrides as Vn, invokeAgentCore as Vr, resolveWebFunctionArtifact as Vt, selectTargetPort as W, containsDynamicReference as Wa, HOST_DOCKER_INTERNAL_GATEWAY as Wi, resolveAlbFrontDoor as Wn, downloadAndExtractS3Bundle as Wr, finalizeWebFunctionEnv as Wt, callRuntimeHook as X, resolveDynamicReferencesInEnv as Xa, buildMgmtEndpointEnvUrl as Xi, MAX_TASKS_SUBNET_RANGE_CAP as Xn, classifySourceChange as Xr, createDeployedKvsDataSource as Xt, MicrovmHookError as Y, parseDynamicReference as Ya, ConnectionRegistry as Yi, createLocalRunTaskCommand as Yn, toCmdArgv as Yr, resolveKvsModulesForDistribution as Yt, generateMicrovmId as Z, withoutKeys as Za, handleConnectionsRequest as Zi, addCommonEcsServiceOptions as Zn, addInvokeSpecificOptions as Zr, resolveDeployedKvsArnByName as Zt, filterStudioTargetGroups as _, resolveCfnStackName 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, resolveSsmParameters 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, buildEcsImageResolutionContext$1 as er, runHookBody as et, filterStudioCustomResources as f, createLocalStateProvider as fa, readMtlsMaterialsFromDisk as fi, CLOUDFRONT_DISTRIBUTION_TYPE as fn, parseImageOverrideFlags as fr, addStartAgentCoreSpecificOptions as ft, annotatePinnedEcsTargets as g, resolveCfnRegion as ga, defaultCredentialsLoader as gi, pickFunctionUrlLogicalIdFromOrigin as gn, imageOverrideKeyAliases as gr, startAgentCoreHttpServer as gt, annotateEcsTaskPinnedTargets as h, resolveCfnFallbackRegion 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, discoverRoutes as ja, buildCorsConfigFromCloudFrontChain as ji, createCloudFrontModule as jn, A2A_PATH as jr, startWebFunctionContainer as jt, finalizeMicrovmEnv as k, parseSelectionExpressionPath 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, rejectExplicitCfnStackWithMultipleStacks 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, isCfnFlagPresent as pa, startApiServer as pi, describeS3OriginDomain as pn, resolveImageOverrides as pr, createLocalStartAgentCoreCommand as pt, MAX_RUN_HOOK_PAYLOAD_BYTES as q, keysNotFromTemplate 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, 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, CfnLocalStateProvider as va, buildJwksUrlFromIssuer as vi, pickLambdaEdgeFunctionLogicalId as vn, listPinnedTargets as vr, startAgentCoreWsBridge as vt, createLocalListCommand as w, listTargets as wa, computeRequestIdentityHash as wi, WEB_FUNCTION_TYPE as wn, getContainerNetworkIp as wr, parseOriginOverrides as wt, createStudioStore as x, resolveWatchConfig as xa, verifyJwtAuthorizer as xi, resolveCloudFrontDistribution as xn, DEFAULT_SHADOW_READY_TIMEOUT_MS as xr, createLocalStartCloudFrontCommand as xt, toStudioTargetGroups as y, collectSsmParameterRefs as ya, createJwksCache as yi, pickTargetFunctionLogicalId as yn, buildCloudMapIndex as yr, LocalStartCloudFrontError as yt, MICROVM_CONTROL_PATH as z, AgentCoreResolutionError as za, evaluateResponseParameters as zi, albStrategy as zn, signAgentCoreInvocation as zr, disposeWebFunctionArtifact as zt };
|
|
32002
|
+
//# sourceMappingURL=local-studio-DIxEENzj.js.map
|