cdk-local 0.163.4 → 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-Dq3y5-Me.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-DK5chhyj.js → local-studio-DIxEENzj.js} +185 -135
- package/dist/local-studio-DIxEENzj.js.map +1 -0
- package/dist/{local-studio-C8iEtNcn.d.ts → local-studio-Dyp2aN5T.d.ts} +93 -42
- package/dist/local-studio-Dyp2aN5T.d.ts.map +1 -0
- package/dist/{workload-identity-D3XdPJjV.js → workload-identity-BOEZuEDO.js} +717 -145
- package/dist/workload-identity-BOEZuEDO.js.map +1 -0
- package/package.json +1 -1
- package/dist/docker-runner-Dq3y5-Me.js.map +0 -1
- package/dist/local-studio-C8iEtNcn.d.ts.map +0 -1
- package/dist/local-studio-DK5chhyj.js.map +0 -1
- package/dist/workload-identity-D3XdPJjV.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,14 +343,19 @@ 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
|
|
351
|
+
c = this.options.secretsManagerClientFactory?.(region, {
|
|
352
|
+
workload,
|
|
353
|
+
emulator: target.emulator
|
|
354
|
+
}) ?? new SecretsManagerClient({
|
|
344
355
|
...workloadClientConfig({
|
|
345
356
|
profile: this.options.profile,
|
|
346
|
-
service: "SECRETS_MANAGER"
|
|
357
|
+
service: "SECRETS_MANAGER",
|
|
358
|
+
workload
|
|
347
359
|
}),
|
|
348
360
|
...region && { region },
|
|
349
361
|
...this.options.profile && { profile: this.options.profile }
|
|
@@ -352,14 +364,19 @@ var DynamicReferenceResolver = class {
|
|
|
352
364
|
}
|
|
353
365
|
return c;
|
|
354
366
|
}
|
|
355
|
-
ssmClient(
|
|
356
|
-
const
|
|
367
|
+
ssmClient(target) {
|
|
368
|
+
const { region, workload } = target;
|
|
369
|
+
const key = `${target.emulator ? "emulator" : "aws"}\u0000${region ?? ""}`;
|
|
357
370
|
let c = this.ssmClients.get(key);
|
|
358
371
|
if (!c) {
|
|
359
|
-
c = this.options.ssmClientFactory?.(region
|
|
372
|
+
c = this.options.ssmClientFactory?.(region, {
|
|
373
|
+
workload,
|
|
374
|
+
emulator: target.emulator
|
|
375
|
+
}) ?? new SSMClient({
|
|
360
376
|
...workloadClientConfig({
|
|
361
377
|
profile: this.options.profile,
|
|
362
|
-
service: "SSM"
|
|
378
|
+
service: "SSM",
|
|
379
|
+
workload
|
|
363
380
|
}),
|
|
364
381
|
...region && { region },
|
|
365
382
|
...this.options.profile && { profile: this.options.profile }
|
|
@@ -376,11 +393,12 @@ var DynamicReferenceResolver = class {
|
|
|
376
393
|
const detail = describeAwsFailureForWarn(err, operation);
|
|
377
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." : "."));
|
|
378
395
|
}
|
|
379
|
-
async fetchSecret(ref,
|
|
380
|
-
const
|
|
396
|
+
async fetchSecret(ref, target) {
|
|
397
|
+
const { region } = target;
|
|
398
|
+
const operation = `SecretsManager GetSecretValue${target.emulator ? " on AWS Emulator" : ""}`;
|
|
381
399
|
let secretString;
|
|
382
400
|
try {
|
|
383
|
-
secretString = (await this.smClient(
|
|
401
|
+
secretString = (await this.smClient(target).send(new GetSecretValueCommand({
|
|
384
402
|
SecretId: ref.secretId,
|
|
385
403
|
...ref.versionStage && { VersionStage: ref.versionStage },
|
|
386
404
|
...ref.versionId && { VersionId: ref.versionId }
|
|
@@ -403,12 +421,13 @@ var DynamicReferenceResolver = class {
|
|
|
403
421
|
const value = parsed[jsonKey];
|
|
404
422
|
return typeof value === "string" ? value : JSON.stringify(value);
|
|
405
423
|
}
|
|
406
|
-
async fetchParameter(ref,
|
|
407
|
-
const
|
|
424
|
+
async fetchParameter(ref, target) {
|
|
425
|
+
const { region } = target;
|
|
426
|
+
const operation = `SSM GetParameter${target.emulator ? " on AWS Emulator" : ""}`;
|
|
408
427
|
let value;
|
|
409
428
|
let type;
|
|
410
429
|
try {
|
|
411
|
-
const resp = await this.ssmClient(
|
|
430
|
+
const resp = await this.ssmClient(target).send(new GetParameterCommand({
|
|
412
431
|
Name: ref.version !== void 0 ? `${ref.name}:${ref.version}` : ref.name,
|
|
413
432
|
WithDecryption: ref.service === "ssm-secure"
|
|
414
433
|
}));
|
|
@@ -422,6 +441,14 @@ var DynamicReferenceResolver = class {
|
|
|
422
441
|
return value;
|
|
423
442
|
}
|
|
424
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
|
+
}
|
|
425
452
|
function keysNotFromTemplate(templateEnv, finalEnv) {
|
|
426
453
|
const out = /* @__PURE__ */ new Set();
|
|
427
454
|
for (const [k, v] of Object.entries(finalEnv)) {
|
|
@@ -440,7 +467,8 @@ async function resolveDynamicReferencesInEnv(env, options) {
|
|
|
440
467
|
try {
|
|
441
468
|
const values = await Promise.all(candidates.map((k) => resolver.resolveString(env[k], {
|
|
442
469
|
region: options.region,
|
|
443
|
-
consumer: `${options.label} env var ${displayUntrustedValue(k)}
|
|
470
|
+
consumer: `${options.label} env var ${displayUntrustedValue(k)}`,
|
|
471
|
+
...options.workload !== void 0 && { workload: options.workload }
|
|
444
472
|
})));
|
|
445
473
|
const out = {};
|
|
446
474
|
for (const k of Object.keys(env)) defineOwnKey(out, k, env[k]);
|
|
@@ -1069,6 +1097,20 @@ function resolveAgentCoreTarget(target, stacks, imageContext) {
|
|
|
1069
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.`);
|
|
1070
1098
|
return extractRuntimeProperties(stack, logicalId, resource, resources, imageContext);
|
|
1071
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
|
+
}
|
|
1072
1114
|
function pickAgentCoreCandidateStack(target, stacks) {
|
|
1073
1115
|
return candidateTargetStack(parseTarget(target), target, stacks);
|
|
1074
1116
|
}
|
|
@@ -2998,6 +3040,7 @@ var CfnLocalStateProvider = class {
|
|
|
2998
3040
|
agentCoreControlClient;
|
|
2999
3041
|
clientOptions;
|
|
3000
3042
|
endpointOverride;
|
|
3043
|
+
workload;
|
|
3001
3044
|
disposed = false;
|
|
3002
3045
|
lastLoadError;
|
|
3003
3046
|
constructor(opts) {
|
|
@@ -3005,6 +3048,7 @@ var CfnLocalStateProvider = class {
|
|
|
3005
3048
|
this.region = opts.region;
|
|
3006
3049
|
this.clientOptions = { region: opts.region };
|
|
3007
3050
|
this.endpointOverride = opts.endpointOverride;
|
|
3051
|
+
this.workload = opts.workload;
|
|
3008
3052
|
this.label = opts.label ?? "--from-cfn-stack";
|
|
3009
3053
|
if (opts.profile !== void 0 && !opts.endpointOverride) this.clientOptions.profile = opts.profile;
|
|
3010
3054
|
}
|
|
@@ -3046,7 +3090,10 @@ var CfnLocalStateProvider = class {
|
|
|
3046
3090
|
if (!this.ssmClient) this.ssmClient = new SSMClient({
|
|
3047
3091
|
...workloadClientConfig({
|
|
3048
3092
|
profile: this.clientOptions.profile,
|
|
3049
|
-
...this.endpointOverride ? {} : {
|
|
3093
|
+
...this.endpointOverride ? {} : {
|
|
3094
|
+
service: "SSM",
|
|
3095
|
+
workload: this.workload
|
|
3096
|
+
}
|
|
3050
3097
|
}),
|
|
3051
3098
|
...this.overrideClientConfig(),
|
|
3052
3099
|
region: this.region,
|
|
@@ -3327,10 +3374,13 @@ function createLocalStateProvider(options, stackName, synthRegion, extraStatePro
|
|
|
3327
3374
|
const real = new CfnLocalStateProvider({
|
|
3328
3375
|
cfnStackName,
|
|
3329
3376
|
region,
|
|
3330
|
-
...options.profile !== void 0 && { profile: options.profile }
|
|
3377
|
+
...options.profile !== void 0 && { profile: options.profile },
|
|
3378
|
+
...behavior.workload !== void 0 && { workload: behavior.workload }
|
|
3331
3379
|
});
|
|
3332
3380
|
const mixed = behavior.realAwsOnly ? void 0 : getActiveWorkloadAwsWiring()?.mixed;
|
|
3333
3381
|
if (!mixed) return real;
|
|
3382
|
+
const emulatedServices = awsEmulatorRoutedServices(behavior.workload) ?? mixed.services;
|
|
3383
|
+
if (emulatedServices.length === 0) return real;
|
|
3334
3384
|
return createMixedModeStateProvider({
|
|
3335
3385
|
real,
|
|
3336
3386
|
emulator: new CfnLocalStateProvider({
|
|
@@ -3339,12 +3389,12 @@ function createLocalStateProvider(options, stackName, synthRegion, extraStatePro
|
|
|
3339
3389
|
endpointOverride: mixed.emulatorClientOverride,
|
|
3340
3390
|
label: "--from-cfn-stack (AWS Emulator)"
|
|
3341
3391
|
}),
|
|
3342
|
-
emulatedServices
|
|
3392
|
+
emulatedServices
|
|
3343
3393
|
});
|
|
3344
3394
|
}
|
|
3345
3395
|
if (activeExtras.length === 1) {
|
|
3346
3396
|
const factory = extraStateProviders[activeExtras[0]];
|
|
3347
|
-
return factory(options);
|
|
3397
|
+
return factory(options, behavior);
|
|
3348
3398
|
}
|
|
3349
3399
|
}
|
|
3350
3400
|
function toFlagName(field) {
|
|
@@ -4625,6 +4675,24 @@ function checkVolumeHostPath(hostPath) {
|
|
|
4625
4675
|
return false;
|
|
4626
4676
|
}
|
|
4627
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
|
+
}
|
|
4628
4696
|
async function applyCrossStackResolverToTask(task, context) {
|
|
4629
4697
|
if (!context.crossStackResolver) return;
|
|
4630
4698
|
const { resolveDynamicReferences: _envOnly, ...secretContext } = context;
|
|
@@ -4636,6 +4704,11 @@ async function applyCrossStackResolverToTask(task, context) {
|
|
|
4636
4704
|
if (!raw || typeof raw !== "object") continue;
|
|
4637
4705
|
const c = raw;
|
|
4638
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;
|
|
4639
4712
|
const resolvedEnvKeys = /* @__PURE__ */ new Set();
|
|
4640
4713
|
const resolvedSecretNames = /* @__PURE__ */ new Set();
|
|
4641
4714
|
if (Array.isArray(c["Environment"])) for (const entry of c["Environment"]) {
|
|
@@ -4647,7 +4720,7 @@ async function applyCrossStackResolverToTask(task, context) {
|
|
|
4647
4720
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") continue;
|
|
4648
4721
|
if (Object.hasOwn(container.environment, key)) continue;
|
|
4649
4722
|
if (!isCrossStackIntrinsic(value)) continue;
|
|
4650
|
-
const { result: sub, consumedSensitive } = await resolveWithSensitivityAsync(value,
|
|
4723
|
+
const { result: sub, consumedSensitive } = await resolveWithSensitivityAsync(value, containerContext);
|
|
4651
4724
|
if (sub.kind === "literal") {
|
|
4652
4725
|
defineOwnKey(container.environment, key, String(sub.value));
|
|
4653
4726
|
resolvedEnvKeys.add(key);
|
|
@@ -10117,39 +10190,6 @@ function availableApiIdentifiers(routes) {
|
|
|
10117
10190
|
return out;
|
|
10118
10191
|
}
|
|
10119
10192
|
|
|
10120
|
-
//#endregion
|
|
10121
|
-
//#region src/local/env-resolver.ts
|
|
10122
|
-
function resolveEnvVars$1(logicalId, displayPath, templateEnv, overrides) {
|
|
10123
|
-
const resolved = {};
|
|
10124
|
-
const unresolved = [];
|
|
10125
|
-
if (templateEnv) for (const [key, value] of Object.entries(templateEnv)) if (isLiteralEnvValue(value)) defineOwnKey(resolved, key, String(value));
|
|
10126
|
-
else unresolved.push(key);
|
|
10127
|
-
if (overrides) {
|
|
10128
|
-
applyEnvOverrideMap(resolved, overrides.Parameters);
|
|
10129
|
-
for (const [key, val] of Object.entries(overrides)) {
|
|
10130
|
-
if (key === "Parameters") continue;
|
|
10131
|
-
if (!val || typeof val !== "object") continue;
|
|
10132
|
-
if (key === logicalId) {
|
|
10133
|
-
applyEnvOverrideMap(resolved, val);
|
|
10134
|
-
continue;
|
|
10135
|
-
}
|
|
10136
|
-
if (displayPath && (displayPath === key || displayPath.startsWith(`${key}/`))) applyEnvOverrideMap(resolved, val);
|
|
10137
|
-
}
|
|
10138
|
-
}
|
|
10139
|
-
return {
|
|
10140
|
-
resolved,
|
|
10141
|
-
unresolved
|
|
10142
|
-
};
|
|
10143
|
-
}
|
|
10144
|
-
function applyEnvOverrideMap(acc, map) {
|
|
10145
|
-
if (!map) return;
|
|
10146
|
-
for (const [key, value] of Object.entries(map)) if (value === null) delete acc[key];
|
|
10147
|
-
else if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") defineOwnKey(acc, key, String(value));
|
|
10148
|
-
}
|
|
10149
|
-
function isLiteralEnvValue(value) {
|
|
10150
|
-
return typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
10151
|
-
}
|
|
10152
|
-
|
|
10153
10193
|
//#endregion
|
|
10154
10194
|
//#region src/local/layer-arn-materializer.ts
|
|
10155
10195
|
var LayerMaterializationError = class LayerMaterializationError extends Error {
|
|
@@ -11402,7 +11442,11 @@ async function buildContainerSpec(args) {
|
|
|
11402
11442
|
region: firstUsableRegion(stateBundle?.region, stackRegionOverride, lambda.stack.region, stsRegion, profileRegion),
|
|
11403
11443
|
label: `Lambda ${logicalId}`,
|
|
11404
11444
|
skipKeys: plaintextKeys,
|
|
11405
|
-
...profile !== void 0 && { profile }
|
|
11445
|
+
...profile !== void 0 && { profile },
|
|
11446
|
+
workload: {
|
|
11447
|
+
logicalId,
|
|
11448
|
+
cdkPath: lambdaCdkPath
|
|
11449
|
+
}
|
|
11406
11450
|
});
|
|
11407
11451
|
const dockerEnv = {
|
|
11408
11452
|
AWS_LAMBDA_FUNCTION_NAME: logicalId,
|
|
@@ -11708,7 +11752,7 @@ function readEnvOverridesFile$4(filePath) {
|
|
|
11708
11752
|
if (!filePath) return void 0;
|
|
11709
11753
|
let raw;
|
|
11710
11754
|
try {
|
|
11711
|
-
raw =
|
|
11755
|
+
raw = readEnvVarsFileText(filePath);
|
|
11712
11756
|
} catch (err) {
|
|
11713
11757
|
throw new Error(`Failed to read --env-vars file '${filePath}': ${err instanceof Error ? err.message : String(err)}`);
|
|
11714
11758
|
}
|
|
@@ -12352,11 +12396,17 @@ function getTemplateEnv(resource) {
|
|
|
12352
12396
|
if (!vars || typeof vars !== "object") return void 0;
|
|
12353
12397
|
return vars;
|
|
12354
12398
|
}
|
|
12399
|
+
function lambdaWorkload(lambda) {
|
|
12400
|
+
return {
|
|
12401
|
+
logicalId: lambda.logicalId,
|
|
12402
|
+
cdkPath: readCdkPathOrUndefined(lambda.resource)
|
|
12403
|
+
};
|
|
12404
|
+
}
|
|
12355
12405
|
function readEnvOverridesFile$3(filePath) {
|
|
12356
12406
|
if (!filePath) return void 0;
|
|
12357
12407
|
let raw;
|
|
12358
12408
|
try {
|
|
12359
|
-
raw =
|
|
12409
|
+
raw = readEnvVarsFileText(filePath);
|
|
12360
12410
|
} catch (err) {
|
|
12361
12411
|
throw new Error(`Failed to read --env-vars file '${filePath}': ${err instanceof Error ? err.message : String(err)}`);
|
|
12362
12412
|
}
|
|
@@ -12409,7 +12459,10 @@ function applyProfileCredentialsOverlay(env, profileCreds, assumeRoleActive) {
|
|
|
12409
12459
|
else delete env["AWS_SESSION_TOKEN"];
|
|
12410
12460
|
}
|
|
12411
12461
|
async function resolveLambdaContainerEnv(lambda, options, profileCredentials, extraStateProviders) {
|
|
12412
|
-
const dynamicRefs = new DynamicReferenceResolver({
|
|
12462
|
+
const dynamicRefs = new DynamicReferenceResolver({
|
|
12463
|
+
...options.profile !== void 0 && { profile: options.profile },
|
|
12464
|
+
workload: lambdaWorkload(lambda)
|
|
12465
|
+
});
|
|
12413
12466
|
try {
|
|
12414
12467
|
return await resolveLambdaContainerEnvWith(lambda, options, profileCredentials, extraStateProviders, dynamicRefs);
|
|
12415
12468
|
} finally {
|
|
@@ -12428,7 +12481,7 @@ async function resolveLambdaContainerEnvWith(lambda, options, profileCredentials
|
|
|
12428
12481
|
const overriddenKeys = keysOverriddenBy(declaredEnv, (env) => resolveEnvVars$1(lambda.logicalId, lambdaCdkPath, env, overrides).resolved);
|
|
12429
12482
|
let templateEnv = declaredEnv && withoutKeys(declaredEnv, overriddenKeys);
|
|
12430
12483
|
let stateForRoleHint;
|
|
12431
|
-
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) });
|
|
12432
12485
|
if (stateProvider) try {
|
|
12433
12486
|
const loaded = await stateProvider.load(lambda.stack.stackName, lambda.stack.region);
|
|
12434
12487
|
if (loaded) {
|
|
@@ -13565,7 +13618,7 @@ async function localInvokeAgentCoreCommand(target, options, extraStateProviders)
|
|
|
13565
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")
|
|
13566
13619
|
});
|
|
13567
13620
|
const candidate = pickAgentCoreCandidateStack(resolvedTarget, stacks);
|
|
13568
|
-
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) });
|
|
13569
13622
|
const { context: imageContext, loaded: loadedState } = stateProvider && candidate ? await buildAgentCoreImageContext(candidate, stateProvider, options) : {
|
|
13570
13623
|
context: void 0,
|
|
13571
13624
|
loaded: void 0
|
|
@@ -13923,7 +13976,13 @@ function findFileAssetByObjectKey(fileAssets, hash) {
|
|
|
13923
13976
|
for (const asset of fileAssets.values()) if (Object.values(asset.destinations).some((d) => d.objectKey === zip || d.objectKey.endsWith(`/${zip}`))) return asset;
|
|
13924
13977
|
}
|
|
13925
13978
|
async function buildContainerEnv(resolved, options, profileCredentials, profileCredsFile, stateProvider, loaded, imageContext) {
|
|
13926
|
-
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
|
+
});
|
|
13927
13986
|
try {
|
|
13928
13987
|
return await buildContainerEnvWith(resolved, options, profileCredentials, profileCredsFile, stateProvider, loaded, imageContext, dynamicRefs);
|
|
13929
13988
|
} finally {
|
|
@@ -14269,7 +14328,7 @@ function readEnvOverridesFile$2(filePath) {
|
|
|
14269
14328
|
if (!filePath) return void 0;
|
|
14270
14329
|
let raw;
|
|
14271
14330
|
try {
|
|
14272
|
-
raw =
|
|
14331
|
+
raw = readEnvVarsFileText(filePath);
|
|
14273
14332
|
} catch (err) {
|
|
14274
14333
|
throw new Error(`Failed to read --env-vars file '${filePath}': ${err instanceof Error ? err.message : String(err)}`);
|
|
14275
14334
|
}
|
|
@@ -14962,26 +15021,49 @@ var EcsSecretsResolutionError = class EcsSecretsResolutionError extends Error {
|
|
|
14962
15021
|
async function resolveEcsSecrets(entries, options = {}) {
|
|
14963
15022
|
if (entries.length === 0) return [];
|
|
14964
15023
|
const logger = getLogger().child("ecs-secrets");
|
|
14965
|
-
const
|
|
14966
|
-
|
|
14967
|
-
|
|
14968
|
-
|
|
14969
|
-
}
|
|
14970
|
-
|
|
14971
|
-
|
|
14972
|
-
|
|
14973
|
-
|
|
14974
|
-
|
|
14975
|
-
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
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
|
+
};
|
|
14983
15064
|
try {
|
|
14984
15065
|
return await Promise.all(entries.map(async (entry) => {
|
|
15066
|
+
const { secretsClient, ssmClient } = clientsFor(entry.containerName);
|
|
14985
15067
|
const value = await resolveOne(entry, secretsClient, ssmClient);
|
|
14986
15068
|
logger.debug(`Resolved secret ${displayIdent(entry.containerName)}.${displayIdent(entry.name)} (${displayUntrustedValue(entry.valueFrom)})`);
|
|
14987
15069
|
return {
|
|
@@ -14990,8 +15072,7 @@ async function resolveEcsSecrets(entries, options = {}) {
|
|
|
14990
15072
|
};
|
|
14991
15073
|
}));
|
|
14992
15074
|
} finally {
|
|
14993
|
-
|
|
14994
|
-
if (ownsSsmClient) ssmClient.destroy();
|
|
15075
|
+
for (const c of owned) c.destroy();
|
|
14995
15076
|
}
|
|
14996
15077
|
}
|
|
14997
15078
|
async function resolveOne(entry, secretsClient, ssmClient) {
|
|
@@ -15183,7 +15264,8 @@ async function runEcsTask(task, options, state) {
|
|
|
15183
15264
|
region: firstUsableRegion(options.stackRegion, task.stack.region, options.region),
|
|
15184
15265
|
label: `Container ${c.name}`,
|
|
15185
15266
|
skipKeys: new Set(Object.keys(c.environment).filter((k) => !tokenKeys.has(k))),
|
|
15186
|
-
resolver: dynamicRefs
|
|
15267
|
+
resolver: dynamicRefs,
|
|
15268
|
+
workload: { containerName: c.name }
|
|
15187
15269
|
}));
|
|
15188
15270
|
}
|
|
15189
15271
|
} finally {
|
|
@@ -16622,10 +16704,10 @@ const defaultDockerStartImpl = async (containerId, opts = {}) => {
|
|
|
16622
16704
|
const { getDockerCmd } = await import("./docker-cmd-Cjg3jGYF.js").then((n) => n.t);
|
|
16623
16705
|
await promisify(execFile)(getDockerCmd(), ["start", containerId]);
|
|
16624
16706
|
if (opts.joinedForwarder) return;
|
|
16625
|
-
const { getActiveWorkloadAwsWiring } = await import("./workload-identity-
|
|
16707
|
+
const { getActiveWorkloadAwsWiring } = await import("./workload-identity-BOEZuEDO.js").then((n) => n.R);
|
|
16626
16708
|
const wiring = getActiveWorkloadAwsWiring();
|
|
16627
16709
|
if (wiring) {
|
|
16628
|
-
const { attachLoopbackForwarder } = await import("./docker-runner-
|
|
16710
|
+
const { attachLoopbackForwarder } = await import("./docker-runner-6cuoe4H9.js").then((n) => n.o);
|
|
16629
16711
|
await attachLoopbackForwarder(containerId, wiring);
|
|
16630
16712
|
}
|
|
16631
16713
|
};
|
|
@@ -19586,27 +19668,11 @@ async function resolveServiceAndRunnerOpts(boot, stacks, options, discovery, ski
|
|
|
19586
19668
|
if (stateProvider && taskNeeds.needsCrossStackResolver) {
|
|
19587
19669
|
const consumerRegion = options.region ?? process.env["AWS_REGION"] ?? process.env["AWS_DEFAULT_REGION"] ?? service.stack.region ?? "us-east-1";
|
|
19588
19670
|
const resolver = await stateProvider.buildCrossStackResolver(consumerRegion);
|
|
19589
|
-
if (resolver) {
|
|
19590
|
-
|
|
19591
|
-
|
|
19592
|
-
|
|
19593
|
-
|
|
19594
|
-
...imageContext?.stateParameters && { parameters: imageContext.stateParameters },
|
|
19595
|
-
...imageContext?.stateSensitiveParameters?.length && { sensitiveParameters: new Set(imageContext.stateSensitiveParameters) },
|
|
19596
|
-
consumerRegion,
|
|
19597
|
-
crossStackResolver: resolver,
|
|
19598
|
-
resolveDynamicReferences: (value, producerRegion) => dynamicRefs.resolveString(value, {
|
|
19599
|
-
region: producerRegion,
|
|
19600
|
-
consumer: `Task ${service.task.taskDefinitionLogicalId} cross-stack env value`,
|
|
19601
|
-
overridable: false
|
|
19602
|
-
})
|
|
19603
|
-
};
|
|
19604
|
-
try {
|
|
19605
|
-
await applyCrossStackResolverToTask(service.task, subContext);
|
|
19606
|
-
} finally {
|
|
19607
|
-
dynamicRefs.dispose();
|
|
19608
|
-
}
|
|
19609
|
-
}
|
|
19671
|
+
if (resolver) await applyCrossStackValuesToTask(service.task, resolver, {
|
|
19672
|
+
imageContext,
|
|
19673
|
+
consumerRegion,
|
|
19674
|
+
profile: options.profile
|
|
19675
|
+
});
|
|
19610
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.");
|
|
19611
19677
|
const effectiveAssumeRole = resolveEcsAssumeRoleOption(options);
|
|
19612
19678
|
let assumedCredentials;
|
|
@@ -20053,7 +20119,7 @@ function readEnvOverridesFile$1(filePath) {
|
|
|
20053
20119
|
if (!filePath) return void 0;
|
|
20054
20120
|
let raw;
|
|
20055
20121
|
try {
|
|
20056
|
-
raw =
|
|
20122
|
+
raw = readEnvVarsFileText(filePath);
|
|
20057
20123
|
} catch (err) {
|
|
20058
20124
|
throw new LocalStartServiceError(`Failed to read --env-vars file '${filePath}': ${err instanceof Error ? err.message : String(err)}`);
|
|
20059
20125
|
}
|
|
@@ -20294,27 +20360,11 @@ async function localRunTaskCommand(target, options, extraStateProviders) {
|
|
|
20294
20360
|
if (stateProvider && taskNeeds.needsCrossStackResolver) {
|
|
20295
20361
|
const consumerRegion = options.region ?? process.env["AWS_REGION"] ?? process.env["AWS_DEFAULT_REGION"] ?? task.stack.region ?? "us-east-1";
|
|
20296
20362
|
const resolver = await stateProvider.buildCrossStackResolver(consumerRegion);
|
|
20297
|
-
if (resolver) {
|
|
20298
|
-
|
|
20299
|
-
|
|
20300
|
-
|
|
20301
|
-
|
|
20302
|
-
...imageContext?.stateParameters && { parameters: imageContext.stateParameters },
|
|
20303
|
-
...imageContext?.stateSensitiveParameters?.length && { sensitiveParameters: new Set(imageContext.stateSensitiveParameters) },
|
|
20304
|
-
consumerRegion,
|
|
20305
|
-
crossStackResolver: resolver,
|
|
20306
|
-
resolveDynamicReferences: (value, producerRegion) => dynamicRefs.resolveString(value, {
|
|
20307
|
-
region: producerRegion,
|
|
20308
|
-
consumer: `Task ${task.taskDefinitionLogicalId} cross-stack env value`,
|
|
20309
|
-
overridable: false
|
|
20310
|
-
})
|
|
20311
|
-
};
|
|
20312
|
-
try {
|
|
20313
|
-
await applyCrossStackResolverToTask(task, subContext);
|
|
20314
|
-
} finally {
|
|
20315
|
-
dynamicRefs.dispose();
|
|
20316
|
-
}
|
|
20317
|
-
}
|
|
20363
|
+
if (resolver) await applyCrossStackValuesToTask(task, resolver, {
|
|
20364
|
+
imageContext,
|
|
20365
|
+
consumerRegion,
|
|
20366
|
+
profile: options.profile
|
|
20367
|
+
});
|
|
20318
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.");
|
|
20319
20369
|
const onSignal = createShutdownSignalHandler({
|
|
20320
20370
|
cleanup,
|
|
@@ -20509,7 +20559,7 @@ function readEnvOverridesFile(filePath) {
|
|
|
20509
20559
|
if (!filePath) return void 0;
|
|
20510
20560
|
let raw;
|
|
20511
20561
|
try {
|
|
20512
|
-
raw =
|
|
20562
|
+
raw = readEnvVarsFileText(filePath);
|
|
20513
20563
|
} catch (err) {
|
|
20514
20564
|
throw new Error(`Failed to read --env-vars file '${filePath}': ${err instanceof Error ? err.message : String(err)}`);
|
|
20515
20565
|
}
|
|
@@ -25070,7 +25120,7 @@ async function localStartAgentCoreCommand(target, options, extraStateProviders,
|
|
|
25070
25120
|
});
|
|
25071
25121
|
const candidate = pickAgentCoreCandidateStack(resolvedTarget, stacks);
|
|
25072
25122
|
if (candidate) checkSelectedStacks?.([candidate.stackName]);
|
|
25073
|
-
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) });
|
|
25074
25124
|
const { context: imageContext, loaded: loadedState } = stateProvider && candidate ? await buildAgentCoreImageContext(candidate, stateProvider, options) : {
|
|
25075
25125
|
context: void 0,
|
|
25076
25126
|
loaded: void 0
|
|
@@ -31948,5 +31998,5 @@ function addStudioSpecificOptions(cmd) {
|
|
|
31948
31998
|
}
|
|
31949
31999
|
|
|
31950
32000
|
//#endregion
|
|
31951
|
-
export { postHook as $,
|
|
31952
|
-
//# 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
|