cdk-local 0.163.4 → 0.163.6

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.
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-w6R9maHv.js";
2
2
  import { c as getEmbedConfig, t as getLogger } from "./logger-Co5XVwco.js";
3
3
  import { r as displayUntrustedValue, u as describeCredentialLoadFailure } from "./assembly-path-R96uhMm1.js";
4
- import { existsSync, lstatSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
4
+ import { existsSync, lstatSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
5
5
  import { createHash, generateKeyPairSync, randomBytes, sign } from "node:crypto";
6
6
  import { Agent, get, request } from "node:http";
7
7
  import { Agent as Agent$1, get as get$1, request as request$1 } from "node:https";
@@ -72,6 +72,700 @@ function isLoopbackHost(hostname) {
72
72
  return h.endsWith(".localhost") || isLoopbackLiteral(h) || isWildcardLiteral(h);
73
73
  }
74
74
 
75
+ //#endregion
76
+ //#region src/utils/own-keys.ts
77
+ function defineOwnKey(target, key, value) {
78
+ Object.defineProperty(target, key, {
79
+ value,
80
+ writable: true,
81
+ enumerable: true,
82
+ configurable: true
83
+ });
84
+ }
85
+
86
+ //#endregion
87
+ //#region src/local/env-resolver.ts
88
+ const pipeTexts = /* @__PURE__ */ new Map();
89
+ function readEnvVarsFileText(filePath) {
90
+ let regular = !/^\/(?:dev|proc)\//.test(path$1.resolve(filePath));
91
+ try {
92
+ regular &&= statSync(filePath).isFile();
93
+ } catch {}
94
+ if (regular) return readFileSync(filePath, "utf-8");
95
+ const kept = pipeTexts.get(filePath);
96
+ if (kept !== void 0) return kept;
97
+ const text = readFileSync(filePath, "utf-8");
98
+ pipeTexts.set(filePath, text);
99
+ return text;
100
+ }
101
+ function resolveEnvVars(logicalId, displayPath, templateEnv, overrides) {
102
+ const resolved = {};
103
+ const unresolved = [];
104
+ if (templateEnv) for (const [key, value] of Object.entries(templateEnv)) if (isLiteralEnvValue(value)) defineOwnKey(resolved, key, String(value));
105
+ else unresolved.push(key);
106
+ if (overrides) {
107
+ applyEnvOverrideMap(resolved, overrides.Parameters);
108
+ for (const [key, val] of Object.entries(overrides)) {
109
+ if (key === "Parameters") continue;
110
+ if (!val || typeof val !== "object") continue;
111
+ if (key === logicalId) {
112
+ applyEnvOverrideMap(resolved, val);
113
+ continue;
114
+ }
115
+ if (displayPath && (displayPath === key || displayPath.startsWith(`${key}/`))) applyEnvOverrideMap(resolved, val);
116
+ }
117
+ }
118
+ return {
119
+ resolved,
120
+ unresolved
121
+ };
122
+ }
123
+ function applyEnvOverrideMap(acc, map) {
124
+ if (!map) return;
125
+ for (const [key, value] of Object.entries(map)) if (value === null) delete acc[key];
126
+ else if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") defineOwnKey(acc, key, String(value));
127
+ }
128
+ function isLiteralEnvValue(value) {
129
+ return typeof value === "string" || typeof value === "number" || typeof value === "boolean";
130
+ }
131
+
132
+ //#endregion
133
+ //#region src/local/aws-endpoint-service-ids.ts
134
+ const AWS_ENDPOINT_SERVICE_IDS = /* @__PURE__ */ new Set([
135
+ "ACCESSANALYZER",
136
+ "ACCOUNT",
137
+ "ACCOUNT_ACCESS",
138
+ "ACM",
139
+ "ACM_PCA",
140
+ "AGENTTOOLKIT",
141
+ "AGENT_REGISTRY",
142
+ "AGENT_REGISTRY_CONTROL",
143
+ "AIOPS",
144
+ "AMP",
145
+ "AMPLIFY",
146
+ "AMPLIFYBACKEND",
147
+ "AMPLIFYUIBUILDER",
148
+ "APIGATEWAYMANAGEMENTAPI",
149
+ "APIGATEWAYV2",
150
+ "API_GATEWAY",
151
+ "APPCONFIG",
152
+ "APPCONFIGDATA",
153
+ "APPFABRIC",
154
+ "APPFLOW",
155
+ "APPINTEGRATIONS",
156
+ "APPLICATIONCOSTPROFILER",
157
+ "APPLICATION_AUTO_SCALING",
158
+ "APPLICATION_DISCOVERY_SERVICE",
159
+ "APPLICATION_INSIGHTS",
160
+ "APPLICATION_SIGNALS",
161
+ "APPRUNNER",
162
+ "APPSTREAM",
163
+ "APPSYNC",
164
+ "APP_MESH",
165
+ "ARC_REGION_SWITCH",
166
+ "ARC_ZONAL_SHIFT",
167
+ "ARTIFACT",
168
+ "ATHENA",
169
+ "AUDITMANAGER",
170
+ "AUTO_SCALING",
171
+ "AUTO_SCALING_PLANS",
172
+ "B2BI",
173
+ "BACKUP",
174
+ "BACKUPSEARCH",
175
+ "BACKUP_GATEWAY",
176
+ "BATCH",
177
+ "BCM_DASHBOARDS",
178
+ "BCM_DATA_EXPORTS",
179
+ "BCM_PRICING_CALCULATOR",
180
+ "BCM_RECOMMENDED_ACTIONS",
181
+ "BEDROCK",
182
+ "BEDROCK_AGENT",
183
+ "BEDROCK_AGENTCORE",
184
+ "BEDROCK_AGENTCORE_CONTROL",
185
+ "BEDROCK_AGENT_RUNTIME",
186
+ "BEDROCK_DATA_AUTOMATION",
187
+ "BEDROCK_DATA_AUTOMATION_RUNTIME",
188
+ "BEDROCK_RUNTIME",
189
+ "BILLING",
190
+ "BILLINGCONDUCTOR",
191
+ "BRAKET",
192
+ "BUDGETS",
193
+ "CHATBOT",
194
+ "CHIME",
195
+ "CHIME_SDK_IDENTITY",
196
+ "CHIME_SDK_MEDIA_PIPELINES",
197
+ "CHIME_SDK_MEETINGS",
198
+ "CHIME_SDK_MESSAGING",
199
+ "CHIME_SDK_VOICE",
200
+ "CLEANROOMS",
201
+ "CLEANROOMSML",
202
+ "CLOUD9",
203
+ "CLOUDCONTROL",
204
+ "CLOUDDIRECTORY",
205
+ "CLOUDFORMATION",
206
+ "CLOUDFRONT",
207
+ "CLOUDFRONT_KEYVALUESTORE",
208
+ "CLOUDHSM",
209
+ "CLOUDHSM_V2",
210
+ "CLOUDSEARCH",
211
+ "CLOUDSEARCH_DOMAIN",
212
+ "CLOUDTRAIL",
213
+ "CLOUDTRAIL_DATA",
214
+ "CLOUDWATCH",
215
+ "CLOUDWATCHOMNI",
216
+ "CLOUDWATCH_LOGS",
217
+ "CODEARTIFACT",
218
+ "CODEBUILD",
219
+ "CODECATALYST",
220
+ "CODECOMMIT",
221
+ "CODECONNECTIONS",
222
+ "CODEDEPLOY",
223
+ "CODEGURUPROFILER",
224
+ "CODEGURU_REVIEWER",
225
+ "CODEGURU_SECURITY",
226
+ "CODEPIPELINE",
227
+ "CODESTAR_CONNECTIONS",
228
+ "CODESTAR_NOTIFICATIONS",
229
+ "COGNITO_IDENTITY",
230
+ "COGNITO_IDENTITY_PROVIDER",
231
+ "COGNITO_SYNC",
232
+ "COMPREHEND",
233
+ "COMPREHENDMEDICAL",
234
+ "COMPUTE_OPTIMIZER",
235
+ "COMPUTE_OPTIMIZER_AUTOMATION",
236
+ "CONFIG_SERVICE",
237
+ "CONNECT",
238
+ "CONNECTCAMPAIGNS",
239
+ "CONNECTCAMPAIGNSV2",
240
+ "CONNECTCASES",
241
+ "CONNECTHEALTH",
242
+ "CONNECTPARTICIPANT",
243
+ "CONNECT_CONTACT_LENS",
244
+ "CONTROLCATALOG",
245
+ "CONTROLTOWER",
246
+ "COST_AND_USAGE_REPORT_SERVICE",
247
+ "COST_EXPLORER",
248
+ "COST_OPTIMIZATION_HUB",
249
+ "CUSTOMER_PROFILES",
250
+ "DATABASE_MIGRATION_SERVICE",
251
+ "DATABREW",
252
+ "DATAEXCHANGE",
253
+ "DATASYNC",
254
+ "DATAZONE",
255
+ "DATA_PIPELINE",
256
+ "DAX",
257
+ "DEADLINE",
258
+ "DETECTIVE",
259
+ "DEVICE_FARM",
260
+ "DEVOPS_AGENT",
261
+ "DEVOPS_GURU",
262
+ "DIRECTORY_SERVICE",
263
+ "DIRECTORY_SERVICE_DATA",
264
+ "DIRECT_CONNECT",
265
+ "DLM",
266
+ "DOCDB",
267
+ "DOCDB_ELASTIC",
268
+ "DRS",
269
+ "DSQL",
270
+ "DYNAMODB",
271
+ "DYNAMODB_STREAMS",
272
+ "EBS",
273
+ "EC2",
274
+ "EC2_INSTANCE_CONNECT",
275
+ "ECR",
276
+ "ECR_PUBLIC",
277
+ "ECS",
278
+ "EFS",
279
+ "EKS",
280
+ "EKS_AUTH",
281
+ "ELASTICACHE",
282
+ "ELASTICSEARCH_SERVICE",
283
+ "ELASTIC_BEANSTALK",
284
+ "ELASTIC_LOAD_BALANCING",
285
+ "ELASTIC_LOAD_BALANCING_V2",
286
+ "ELEMENTALINFERENCE",
287
+ "EMR",
288
+ "EMR_CONTAINERS",
289
+ "EMR_SERVERLESS",
290
+ "ENDUSERMESSAGING",
291
+ "ENTITYRESOLUTION",
292
+ "EVENTBRIDGE",
293
+ "EVENTBRIDGEV2",
294
+ "EVS",
295
+ "FIREHOSE",
296
+ "FIS",
297
+ "FMS",
298
+ "FORECAST",
299
+ "FORECASTQUERY",
300
+ "FRAUDDETECTOR",
301
+ "FREETIER",
302
+ "FSX",
303
+ "GAMELIFT",
304
+ "GAMELIFTSTREAMS",
305
+ "GEO_MAPS",
306
+ "GEO_PLACES",
307
+ "GEO_ROUTES",
308
+ "GLACIER",
309
+ "GLOBAL_ACCELERATOR",
310
+ "GLUE",
311
+ "GRAFANA",
312
+ "GREENGRASS",
313
+ "GREENGRASSV2",
314
+ "GROUNDSTATION",
315
+ "GUARDDUTY",
316
+ "HEALTH",
317
+ "HEALTHLAKE",
318
+ "IAM",
319
+ "IAM_TOOLBOX",
320
+ "IDENTITYSTORE",
321
+ "IMAGEBUILDER",
322
+ "IMPORTEXPORT",
323
+ "INSPECTOR",
324
+ "INSPECTOR2",
325
+ "INSPECTOR_SCAN",
326
+ "INTERCONNECT",
327
+ "INTERNETMONITOR",
328
+ "INVOICING",
329
+ "IOT",
330
+ "IOTDEVICEADVISOR",
331
+ "IOTFLEETWISE",
332
+ "IOTSECURETUNNELING",
333
+ "IOTSITEWISE",
334
+ "IOTTHINGSGRAPH",
335
+ "IOTTWINMAKER",
336
+ "IOT_DATA_PLANE",
337
+ "IOT_JOBS_DATA_PLANE",
338
+ "IOT_MANAGED_INTEGRATIONS",
339
+ "IOT_WIRELESS",
340
+ "IVS",
341
+ "IVSCHAT",
342
+ "IVS_REALTIME",
343
+ "KAFKA",
344
+ "KAFKACONNECT",
345
+ "KENDRA",
346
+ "KENDRA_RANKING",
347
+ "KEYSPACES",
348
+ "KEYSPACESSTREAMS",
349
+ "KINESIS",
350
+ "KINESIS_ANALYTICS",
351
+ "KINESIS_ANALYTICS_V2",
352
+ "KINESIS_VIDEO",
353
+ "KINESIS_VIDEO_ARCHIVED_MEDIA",
354
+ "KINESIS_VIDEO_MEDIA",
355
+ "KINESIS_VIDEO_SIGNALING",
356
+ "KINESIS_VIDEO_WEBRTC_STORAGE",
357
+ "KMS",
358
+ "LAKEFORMATION",
359
+ "LAMBDA",
360
+ "LAMBDA_CORE",
361
+ "LAMBDA_MICROVMS",
362
+ "LAMBDA_WEB",
363
+ "LAUNCH_WIZARD",
364
+ "LEX_MODELS_V2",
365
+ "LEX_MODEL_BUILDING_SERVICE",
366
+ "LEX_RUNTIME_SERVICE",
367
+ "LEX_RUNTIME_V2",
368
+ "LICENSE_MANAGER",
369
+ "LICENSE_MANAGER_LINUX_SUBSCRIPTIONS",
370
+ "LICENSE_MANAGER_USER_SUBSCRIPTIONS",
371
+ "LIGHTSAIL",
372
+ "LOCATION",
373
+ "LOOKOUTEQUIPMENT",
374
+ "M2",
375
+ "MACHINE_LEARNING",
376
+ "MACIE2",
377
+ "MAILMANAGER",
378
+ "MANAGEDBLOCKCHAIN",
379
+ "MANAGEDBLOCKCHAIN_QUERY",
380
+ "MARKETPLACE_AGREEMENT",
381
+ "MARKETPLACE_CATALOG",
382
+ "MARKETPLACE_COMMERCE_ANALYTICS",
383
+ "MARKETPLACE_DEPLOYMENT",
384
+ "MARKETPLACE_DISCOVERY",
385
+ "MARKETPLACE_ENTITLEMENT_SERVICE",
386
+ "MARKETPLACE_METERING",
387
+ "MARKETPLACE_REPORTING",
388
+ "MEDIACONNECT",
389
+ "MEDIACONVERT",
390
+ "MEDIALIVE",
391
+ "MEDIAPACKAGE",
392
+ "MEDIAPACKAGEV2",
393
+ "MEDIAPACKAGE_VOD",
394
+ "MEDIASTORE",
395
+ "MEDIASTORE_DATA",
396
+ "MEDIATAILOR",
397
+ "MEDICAL_IMAGING",
398
+ "MEMORYDB",
399
+ "MGN",
400
+ "MIGRATIONHUBORCHESTRATOR",
401
+ "MIGRATIONHUBSTRATEGY",
402
+ "MIGRATIONHUB_CONFIG",
403
+ "MIGRATION_HUB",
404
+ "MIGRATION_HUB_REFACTOR_SPACES",
405
+ "MPA",
406
+ "MQ",
407
+ "MTURK",
408
+ "MWAA",
409
+ "MWAA_SERVERLESS",
410
+ "NEPTUNE",
411
+ "NEPTUNEDATA",
412
+ "NEPTUNE_GRAPH",
413
+ "NETWORKFLOWMONITOR",
414
+ "NETWORKMANAGER",
415
+ "NETWORKMONITOR",
416
+ "NETWORK_FIREWALL",
417
+ "NETWORK_SECURITY_MANAGER",
418
+ "NOTIFICATIONS",
419
+ "NOTIFICATIONSCONTACTS",
420
+ "NOVA_ACT",
421
+ "OAM",
422
+ "OBSERVABILITYADMIN",
423
+ "ODB",
424
+ "OMICS",
425
+ "OPENSEARCH",
426
+ "OPENSEARCHSERVERLESS",
427
+ "ORGANIZATIONS",
428
+ "OSIS",
429
+ "OUTPOSTS",
430
+ "PARTNERCENTRAL_ACCOUNT",
431
+ "PARTNERCENTRAL_BENEFITS",
432
+ "PARTNERCENTRAL_CHANNEL",
433
+ "PARTNERCENTRAL_REVENUE_MEASUREMENT",
434
+ "PARTNERCENTRAL_SELLING",
435
+ "PAYMENT_CRYPTOGRAPHY",
436
+ "PAYMENT_CRYPTOGRAPHY_DATA",
437
+ "PCA_CONNECTOR_AD",
438
+ "PCA_CONNECTOR_SCEP",
439
+ "PCS",
440
+ "PERSONALIZE",
441
+ "PERSONALIZE_EVENTS",
442
+ "PERSONALIZE_RUNTIME",
443
+ "PI",
444
+ "PINPOINT",
445
+ "PINPOINT_EMAIL",
446
+ "PINPOINT_SMS_VOICE",
447
+ "PINPOINT_SMS_VOICE_V2",
448
+ "PIPES",
449
+ "POLLY",
450
+ "PRICING",
451
+ "PRICING_PLAN_MANAGER",
452
+ "PROTON",
453
+ "QAPPS",
454
+ "QBUSINESS",
455
+ "QCONNECT",
456
+ "QUICKSIGHT",
457
+ "RAM",
458
+ "RBIN",
459
+ "RDS",
460
+ "RDS_DATA",
461
+ "REDSHIFT",
462
+ "REDSHIFT_DATA",
463
+ "REDSHIFT_SERVERLESS",
464
+ "REKOGNITION",
465
+ "REPOSTSPACE",
466
+ "RESILIENCEHUB",
467
+ "RESILIENCEHUBV2",
468
+ "RESOURCE_EXPLORER_2",
469
+ "RESOURCE_GROUPS",
470
+ "RESOURCE_GROUPS_TAGGING_API",
471
+ "ROLESANYWHERE",
472
+ "ROUTE53GLOBALRESOLVER",
473
+ "ROUTE53PROFILES",
474
+ "ROUTE53RESOLVER",
475
+ "ROUTE53_RECOVERY_CLUSTER",
476
+ "ROUTE53_RECOVERY_CONTROL_CONFIG",
477
+ "ROUTE53_RECOVERY_READINESS",
478
+ "ROUTE_53",
479
+ "ROUTE_53_DOMAINS",
480
+ "RTBFABRIC",
481
+ "RUM",
482
+ "S3",
483
+ "S3FILES",
484
+ "S3OUTPOSTS",
485
+ "S3TABLES",
486
+ "S3VECTORS",
487
+ "S3_CONTROL",
488
+ "SAGEMAKER",
489
+ "SAGEMAKERJOBRUNTIME",
490
+ "SAGEMAKERTRAININGSESSIONRUNTIME",
491
+ "SAGEMAKER_A2I_RUNTIME",
492
+ "SAGEMAKER_EDGE",
493
+ "SAGEMAKER_FEATURESTORE_RUNTIME",
494
+ "SAGEMAKER_GEOSPATIAL",
495
+ "SAGEMAKER_METRICS",
496
+ "SAGEMAKER_RUNTIME",
497
+ "SAVINGSPLANS",
498
+ "SCHEDULER",
499
+ "SCHEMAS",
500
+ "SECRETS_MANAGER",
501
+ "SECURITYAGENT",
502
+ "SECURITYHUB",
503
+ "SECURITYLAKE",
504
+ "SECURITY_IR",
505
+ "SERVERLESSAPPLICATIONREPOSITORY",
506
+ "SERVICEDISCOVERY",
507
+ "SERVICE_CATALOG",
508
+ "SERVICE_CATALOG_APPREGISTRY",
509
+ "SERVICE_QUOTAS",
510
+ "SES",
511
+ "SESV2",
512
+ "SFN",
513
+ "SHIELD",
514
+ "SIGNER",
515
+ "SIGNER_DATA",
516
+ "SIGNIN",
517
+ "SIMPLEDB",
518
+ "SIMPLEDBV2",
519
+ "SNOWBALL",
520
+ "SNOW_DEVICE_MANAGEMENT",
521
+ "SNS",
522
+ "SOCIALMESSAGING",
523
+ "SQS",
524
+ "SSM",
525
+ "SSM_CONTACTS",
526
+ "SSM_GUICONNECT",
527
+ "SSM_INCIDENTS",
528
+ "SSM_QUICKSETUP",
529
+ "SSM_SAP",
530
+ "SSO",
531
+ "SSO_ADMIN",
532
+ "SSO_OIDC",
533
+ "STORAGE_GATEWAY",
534
+ "STS",
535
+ "SUPPLYCHAIN",
536
+ "SUPPORT",
537
+ "SUPPORTAUTHZ",
538
+ "SUPPORT_APP",
539
+ "SUSTAINABILITY",
540
+ "SWF",
541
+ "SYNTHETICS",
542
+ "TAXSETTINGS",
543
+ "TEXTRACT",
544
+ "TIMESTREAM_INFLUXDB",
545
+ "TIMESTREAM_QUERY",
546
+ "TIMESTREAM_WRITE",
547
+ "TRANSCRIBE",
548
+ "TRANSFER",
549
+ "TRANSLATE",
550
+ "TRUSTEDADVISOR",
551
+ "UXC",
552
+ "VERIFIEDPERMISSIONS",
553
+ "VOICE_ID",
554
+ "VPC_LATTICE",
555
+ "WAF",
556
+ "WAFV2",
557
+ "WAF_REGIONAL",
558
+ "WELLARCHITECTED",
559
+ "WICKR",
560
+ "WISDOM",
561
+ "WORKDOCS",
562
+ "WORKMAIL",
563
+ "WORKMAILMESSAGEFLOW",
564
+ "WORKSPACES",
565
+ "WORKSPACES_INSTANCES",
566
+ "WORKSPACES_THIN_CLIENT",
567
+ "WORKSPACES_WEB",
568
+ "XRAY"
569
+ ]);
570
+
571
+ //#endregion
572
+ //#region src/local/aws-emulator-mixed-mode.ts
573
+ const AWS_EMULATOR_SENTINEL = "aws-emulator";
574
+ const MIXED_MODE_RESIGN_PORT = 47297;
575
+ const ENDPOINT_KEY = /^AWS_ENDPOINT_URL(?:_([A-Z0-9_]+))?$/;
576
+ function isAwsEmulatorSentinel(key, value) {
577
+ return typeof value === "string" && value.trim() === "aws-emulator" && ENDPOINT_KEY.test(key);
578
+ }
579
+ function findAwsEmulatorSentinels(overrides) {
580
+ const found = [];
581
+ if (!overrides || typeof overrides !== "object") return found;
582
+ for (const [section, map] of Object.entries(overrides)) {
583
+ if (!map || typeof map !== "object" || Array.isArray(map)) continue;
584
+ for (const [key, value] of Object.entries(map)) {
585
+ if (!isAwsEmulatorSentinel(key, value)) continue;
586
+ found.push({
587
+ section,
588
+ key,
589
+ service: ENDPOINT_KEY.exec(key)[1] ?? ""
590
+ });
591
+ }
592
+ }
593
+ return found;
594
+ }
595
+ function readAwsEmulatorEnvVarsFile(filePath) {
596
+ if (!filePath) return {
597
+ overrides: void 0,
598
+ sentinels: []
599
+ };
600
+ let parsed;
601
+ try {
602
+ parsed = JSON.parse(readEnvVarsFileText(filePath));
603
+ } catch {
604
+ return {
605
+ overrides: void 0,
606
+ sentinels: []
607
+ };
608
+ }
609
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return {
610
+ overrides: void 0,
611
+ sentinels: []
612
+ };
613
+ const overrides = parsed;
614
+ return {
615
+ overrides,
616
+ sentinels: findAwsEmulatorSentinels(overrides)
617
+ };
618
+ }
619
+ function readAwsEmulatorSentinelsFromFile(filePath) {
620
+ return readAwsEmulatorEnvVarsFile(filePath).sentinels;
621
+ }
622
+ function sectionAppliesTo(section, workload) {
623
+ if (section === "Parameters") return false;
624
+ if (workload.logicalId !== void 0 && section === workload.logicalId) return true;
625
+ if (workload.containerName !== void 0 && section === workload.containerName) return true;
626
+ const path = workload.cdkPath;
627
+ return path !== void 0 && (path === section || path.startsWith(`${section}/`));
628
+ }
629
+ function emulatedServicesForWorkload(overrides, workload) {
630
+ const out = /* @__PURE__ */ new Set();
631
+ const apply = (map) => {
632
+ if (!map || typeof map !== "object" || Array.isArray(map)) return;
633
+ for (const [key, value] of Object.entries(map)) {
634
+ const service = ENDPOINT_KEY.exec(key)?.[1];
635
+ if (service === void 0) continue;
636
+ if (isAwsEmulatorSentinel(key, value)) out.add(service);
637
+ else if (value === null || [
638
+ "string",
639
+ "number",
640
+ "boolean"
641
+ ].includes(typeof value)) out.delete(service);
642
+ }
643
+ };
644
+ if (!overrides) return [];
645
+ apply(overrides["Parameters"]);
646
+ for (const [section, map] of Object.entries(overrides)) if (sectionAppliesTo(section, workload)) apply(map);
647
+ return [...out].sort();
648
+ }
649
+ function correctServiceIdSpelling(service) {
650
+ const bare = service.replace(/_/g, "");
651
+ for (const id of AWS_ENDPOINT_SERVICE_IDS) if (id.replace(/_/g, "") === bare) return id;
652
+ }
653
+ function validateAwsEmulatorSentinels(sentinels, awsEmulatorOn, envVarName = "CDK_LOCAL_AWS_EMULATOR") {
654
+ const first = sentinels[0];
655
+ if (!first) return;
656
+ const where = (s) => `${s.key} under ${displayUntrustedValue(s.section)}`;
657
+ const bare = sentinels.find((s) => s.service === "");
658
+ if (bare) throw new Error(`--env-vars sets ${where(bare)} to "${AWS_EMULATOR_SENTINEL}", but the sentinel routes ONE service (AWS_ENDPOINT_URL_<SERVICE>). To send every service to AWS Emulator, use --aws-emulator without a sentinel.`);
659
+ const unknown = sentinels.find((s) => !AWS_ENDPOINT_SERVICE_IDS.has(s.service));
660
+ if (unknown) {
661
+ const fix = correctServiceIdSpelling(unknown.service);
662
+ throw new Error(`--env-vars sets ${where(unknown)} to "${AWS_EMULATOR_SENTINEL}", but the AWS SDKs do not read ${unknown.key}, so the workload's calls would still go to real AWS. ` + (fix ? `Use AWS_ENDPOINT_URL_${fix}.` : "The suffix must be the service's SDK endpoint id (its serviceId, uppercased, spaces as underscores)."));
663
+ }
664
+ if (!awsEmulatorOn) throw new Error(`--env-vars sets ${where(first)} to "${AWS_EMULATOR_SENTINEL}", which needs --aws-emulator [url] (or ${envVarName}) to name the AWS Emulator to route it to.`);
665
+ }
666
+ function emulatedServicesOf(sentinels) {
667
+ return [...new Set(sentinels.map((s) => s.service).filter((s) => s !== ""))].sort();
668
+ }
669
+ const SERVICE_NAMESPACE_ALIASES = {
670
+ EVENTBRIDGE: ["EVENTS"],
671
+ SFN: ["STEPFUNCTIONS"],
672
+ CLOUDWATCHLOGS: ["LOGS"],
673
+ COGNITOIDENTITYPROVIDER: ["COGNITO"],
674
+ COGNITOIDENTITY: ["COGNITO"],
675
+ FIREHOSE: ["KINESISFIREHOSE"],
676
+ OPENSEARCH: ["OPENSEARCHSERVICE"],
677
+ ELASTICSEARCHSERVICE: ["ELASTICSEARCH"]
678
+ };
679
+ function resourceTypeMatchesEmulatedService(resourceType, services) {
680
+ const ns = /^AWS::([A-Za-z0-9]+)::/.exec(resourceType)?.[1]?.toUpperCase();
681
+ if (!ns) return false;
682
+ return services.some((s) => {
683
+ const id = s.replace(/_/g, "").toUpperCase();
684
+ return id === ns || (SERVICE_NAMESPACE_ALIASES[id] ?? []).includes(ns);
685
+ });
686
+ }
687
+ const MISSING_LIST_LIMIT = 10;
688
+ function createMixedModeStateProvider(opts) {
689
+ const { real, emulator, emulatedServices } = opts;
690
+ const swaps = /* @__PURE__ */ new Map();
691
+ const warned = /* @__PURE__ */ new Set();
692
+ const warnedReal = /* @__PURE__ */ new Set();
693
+ const swap = (v) => swaps.get(v) ?? v;
694
+ const provider = {
695
+ label: real.label,
696
+ async load(stackName, synthRegion) {
697
+ const [r, e] = await Promise.all([real.load(stackName, synthRegion), emulator.load(stackName, synthRegion)]);
698
+ if (!e) {
699
+ if (r && !warned.has(stackName)) {
700
+ if (Object.values(r.resources).some((res) => resourceTypeMatchesEmulatedService(res.resourceType, emulatedServices))) {
701
+ warned.add(stackName);
702
+ const why = emulator.getLastLoadError?.();
703
+ getLogger().warn(`${real.label}: stack ${displayUntrustedValue(stackName)} could not be read from AWS Emulator${why ? ` (${why})` : ""}; resources of the emulated services (${emulatedServices.join(", ")}) keep their real AWS names. Override them with --env-vars, or deploy the stack into the emulator.`);
704
+ }
705
+ }
706
+ return r;
707
+ }
708
+ const emulated = (res) => resourceTypeMatchesEmulatedService(res.resourceType, emulatedServices);
709
+ if (!r) {
710
+ const resources = {};
711
+ const dropped = [];
712
+ for (const [id, res] of Object.entries(e.resources)) if (emulated(res)) resources[id] = res;
713
+ else dropped.push(`${displayUntrustedValue(id)} (${displayUntrustedValue(res.resourceType)})`);
714
+ if (dropped.length > 0 && !warnedReal.has(stackName)) {
715
+ warnedReal.add(stackName);
716
+ const why = real.getLastLoadError?.();
717
+ const shown = dropped.slice(0, MISSING_LIST_LIMIT).join(", ");
718
+ const more = dropped.length > MISSING_LIST_LIMIT ? ` and ${dropped.length - MISSING_LIST_LIMIT} more` : "";
719
+ getLogger().warn(`${real.label}: stack ${displayUntrustedValue(stackName)} could not be read from real AWS${why ? ` (${why})` : ""}, only from AWS Emulator; resources outside the emulated services (${emulatedServices.join(", ")}) stay unresolved: ${shown}${more}. Deploy the stack to real AWS too, under the same stack name (the same CDK context, e.g. -c stage=dev), or override them with --env-vars.`);
720
+ }
721
+ return {
722
+ resources,
723
+ outputs: { ...e.outputs },
724
+ region: e.region
725
+ };
726
+ }
727
+ const resources = { ...r.resources };
728
+ for (const [id, res] of Object.entries(e.resources)) {
729
+ if (!emulated(res)) continue;
730
+ const realRes = r.resources[id];
731
+ if (realRes?.physicalId && res.physicalId && realRes.physicalId !== res.physicalId) swaps.set(realRes.physicalId, res.physicalId);
732
+ resources[id] = res;
733
+ }
734
+ const outputs = {};
735
+ for (const [k, v] of Object.entries(e.outputs)) outputs[k] = v;
736
+ for (const [k, v] of Object.entries(r.outputs)) outputs[k] = swap(v);
737
+ return {
738
+ resources,
739
+ outputs,
740
+ region: r.region
741
+ };
742
+ },
743
+ buildCrossStackResolver: (region) => real.buildCrossStackResolver(region),
744
+ dispose() {
745
+ try {
746
+ real.dispose();
747
+ } finally {
748
+ emulator.dispose();
749
+ }
750
+ }
751
+ };
752
+ if (real.resolveDeployedFunctionEnv) {
753
+ const fn = real.resolveDeployedFunctionEnv.bind(real);
754
+ provider.resolveDeployedFunctionEnv = async (id) => {
755
+ const env = await fn(id);
756
+ if (!env) return env;
757
+ const out = {};
758
+ for (const [k, v] of Object.entries(env)) out[k] = swap(v);
759
+ return out;
760
+ };
761
+ }
762
+ if (real.resolveLambdaExecutionRoleArn) provider.resolveLambdaExecutionRoleArn = real.resolveLambdaExecutionRoleArn.bind(real);
763
+ if (real.resolveAgentCoreRuntimeRoleArn) provider.resolveAgentCoreRuntimeRoleArn = real.resolveAgentCoreRuntimeRoleArn.bind(real);
764
+ if (real.resolveTemplateSsmParameters) provider.resolveTemplateSsmParameters = real.resolveTemplateSsmParameters.bind(real);
765
+ if (real.getLastLoadError) provider.getLastLoadError = real.getLastLoadError.bind(real);
766
+ return provider;
767
+ }
768
+
75
769
  //#endregion
76
770
  //#region src/utils/aws-proxy.ts
77
771
  const AGENT_OPTS = {
@@ -165,18 +859,28 @@ function normalizeAwsEndpointServiceId(serviceId) {
165
859
  function setAwsEmulatorServiceRouting(r) {
166
860
  serviceRouting = r ? {
167
861
  services: new Set(r.services.map(normalizeAwsEndpointServiceId)),
168
- override: r.override
862
+ override: r.override,
863
+ envOverrides: r.envOverrides
169
864
  } : void 0;
170
865
  }
171
866
  function getAwsEmulatorServiceRouting() {
172
867
  return serviceRouting ? {
173
868
  services: [...serviceRouting.services].sort(),
174
- override: serviceRouting.override
869
+ override: serviceRouting.override,
870
+ ...serviceRouting.envOverrides && { envOverrides: serviceRouting.envOverrides }
175
871
  } : void 0;
176
872
  }
177
- function isAwsServiceRoutedToEmulator(serviceId) {
873
+ function awsEmulatorRoutedServices(workload) {
874
+ if (!serviceRouting) return void 0;
875
+ if (workload === void 0 || serviceRouting.envOverrides === void 0) return [...serviceRouting.services].sort();
876
+ return emulatedServicesForWorkload(serviceRouting.envOverrides, workload);
877
+ }
878
+ function mixedModeRoutes(serviceId, workload) {
879
+ return awsEmulatorRoutedServices(workload)?.includes(normalizeAwsEndpointServiceId(serviceId)) ?? false;
880
+ }
881
+ function isAwsServiceRoutedToEmulator(serviceId, workload) {
178
882
  if (endpointOverride) return true;
179
- return serviceRouting?.services.has(normalizeAwsEndpointServiceId(serviceId)) ?? false;
883
+ return mixedModeRoutes(serviceId, workload);
180
884
  }
181
885
  function awsClientConfigForService(serviceId, opts = {}) {
182
886
  return buildProxyClientConfig({
@@ -212,7 +916,7 @@ function buildProxyRequestHandler() {
212
916
  }
213
917
  function buildProxyClientConfig(opts = {}) {
214
918
  if (endpointOverride) return endpointOverrideClientConfig(endpointOverride);
215
- if (serviceRouting && opts.service !== void 0 && serviceRouting.services.has(normalizeAwsEndpointServiceId(opts.service))) return endpointOverrideClientConfig(serviceRouting.override);
919
+ if (serviceRouting && opts.service !== void 0 && mixedModeRoutes(opts.service, opts.workload)) return endpointOverrideClientConfig(serviceRouting.override);
216
920
  if (!isProxyEnvConfigured()) return {};
217
921
  if (everySetProxyEnvValueIsUnspeakable()) {
218
922
  for (const probe of AWS_ENDPOINT_PROBES) resolveProxyForTarget(probe);
@@ -377,140 +1081,6 @@ async function proxyAwareFetch(url, opts = {}) {
377
1081
  }
378
1082
  }
379
1083
 
380
- //#endregion
381
- //#region src/local/aws-emulator-mixed-mode.ts
382
- const AWS_EMULATOR_SENTINEL = "aws-emulator";
383
- const MIXED_MODE_RESIGN_PORT = 47297;
384
- const ENDPOINT_KEY = /^AWS_ENDPOINT_URL(?:_([A-Z0-9_]+))?$/;
385
- function isAwsEmulatorSentinel(key, value) {
386
- return typeof value === "string" && value.trim() === "aws-emulator" && ENDPOINT_KEY.test(key);
387
- }
388
- function findAwsEmulatorSentinels(overrides) {
389
- const found = [];
390
- if (!overrides || typeof overrides !== "object") return found;
391
- for (const [section, map] of Object.entries(overrides)) {
392
- if (!map || typeof map !== "object" || Array.isArray(map)) continue;
393
- for (const [key, value] of Object.entries(map)) {
394
- if (!isAwsEmulatorSentinel(key, value)) continue;
395
- found.push({
396
- section,
397
- key,
398
- service: ENDPOINT_KEY.exec(key)[1] ?? ""
399
- });
400
- }
401
- }
402
- return found;
403
- }
404
- function readAwsEmulatorSentinelsFromFile(filePath) {
405
- if (!filePath) return [];
406
- let parsed;
407
- try {
408
- parsed = JSON.parse(readFileSync(filePath, "utf8"));
409
- } catch {
410
- return [];
411
- }
412
- return findAwsEmulatorSentinels(parsed);
413
- }
414
- function validateAwsEmulatorSentinels(sentinels, awsEmulatorOn, envVarName = "CDK_LOCAL_AWS_EMULATOR") {
415
- const first = sentinels[0];
416
- if (!first) return;
417
- const where = (s) => `${s.key} under ${displayUntrustedValue(s.section)}`;
418
- const bare = sentinels.find((s) => s.service === "");
419
- if (bare) throw new Error(`--env-vars sets ${where(bare)} to "${AWS_EMULATOR_SENTINEL}", but the sentinel routes ONE service (AWS_ENDPOINT_URL_<SERVICE>). To send every service to AWS Emulator, use --aws-emulator without a sentinel.`);
420
- if (!awsEmulatorOn) throw new Error(`--env-vars sets ${where(first)} to "${AWS_EMULATOR_SENTINEL}", which needs --aws-emulator [url] (or ${envVarName}) to name the AWS Emulator to route it to.`);
421
- }
422
- function emulatedServicesOf(sentinels) {
423
- return [...new Set(sentinels.map((s) => s.service).filter((s) => s !== ""))].sort();
424
- }
425
- const SERVICE_NAMESPACE_ALIASES = {
426
- EVENTBRIDGE: ["EVENTS"],
427
- SFN: ["STEPFUNCTIONS"],
428
- CLOUDWATCHLOGS: ["LOGS"],
429
- COGNITOIDENTITYPROVIDER: ["COGNITO"],
430
- COGNITOIDENTITY: ["COGNITO"],
431
- FIREHOSE: ["KINESISFIREHOSE"],
432
- OPENSEARCH: ["OPENSEARCHSERVICE"],
433
- ELASTICSEARCHSERVICE: ["ELASTICSEARCH"]
434
- };
435
- function resourceTypeMatchesEmulatedService(resourceType, services) {
436
- const ns = /^AWS::([A-Za-z0-9]+)::/.exec(resourceType)?.[1]?.toUpperCase();
437
- if (!ns) return false;
438
- return services.some((s) => {
439
- const id = s.replace(/_/g, "").toUpperCase();
440
- return id === ns || (SERVICE_NAMESPACE_ALIASES[id] ?? []).includes(ns);
441
- });
442
- }
443
- function createMixedModeStateProvider(opts) {
444
- const { real, emulator, emulatedServices } = opts;
445
- const swaps = /* @__PURE__ */ new Map();
446
- const warned = /* @__PURE__ */ new Set();
447
- const swap = (v) => swaps.get(v) ?? v;
448
- const provider = {
449
- label: real.label,
450
- async load(stackName, synthRegion) {
451
- const [r, e] = await Promise.all([real.load(stackName, synthRegion), emulator.load(stackName, synthRegion)]);
452
- if (!e) {
453
- if (r && !warned.has(stackName)) {
454
- if (Object.values(r.resources).some((res) => resourceTypeMatchesEmulatedService(res.resourceType, emulatedServices))) {
455
- warned.add(stackName);
456
- const why = emulator.getLastLoadError?.();
457
- getLogger().warn(`${real.label}: stack ${displayUntrustedValue(stackName)} could not be read from AWS Emulator${why ? ` (${why})` : ""}; resources of the emulated services (${emulatedServices.join(", ")}) keep their real AWS names. Override them with --env-vars, or deploy the stack into the emulator.`);
458
- }
459
- }
460
- return r;
461
- }
462
- const emulated = (res) => resourceTypeMatchesEmulatedService(res.resourceType, emulatedServices);
463
- if (!r) {
464
- const resources = {};
465
- for (const [id, res] of Object.entries(e.resources)) if (emulated(res)) resources[id] = res;
466
- return {
467
- resources,
468
- outputs: { ...e.outputs },
469
- region: e.region
470
- };
471
- }
472
- const resources = { ...r.resources };
473
- for (const [id, res] of Object.entries(e.resources)) {
474
- if (!emulated(res)) continue;
475
- const realRes = r.resources[id];
476
- if (realRes?.physicalId && res.physicalId && realRes.physicalId !== res.physicalId) swaps.set(realRes.physicalId, res.physicalId);
477
- resources[id] = res;
478
- }
479
- const outputs = {};
480
- for (const [k, v] of Object.entries(e.outputs)) outputs[k] = v;
481
- for (const [k, v] of Object.entries(r.outputs)) outputs[k] = swap(v);
482
- return {
483
- resources,
484
- outputs,
485
- region: r.region
486
- };
487
- },
488
- buildCrossStackResolver: (region) => real.buildCrossStackResolver(region),
489
- dispose() {
490
- try {
491
- real.dispose();
492
- } finally {
493
- emulator.dispose();
494
- }
495
- }
496
- };
497
- if (real.resolveDeployedFunctionEnv) {
498
- const fn = real.resolveDeployedFunctionEnv.bind(real);
499
- provider.resolveDeployedFunctionEnv = async (id) => {
500
- const env = await fn(id);
501
- if (!env) return env;
502
- const out = {};
503
- for (const [k, v] of Object.entries(env)) out[k] = swap(v);
504
- return out;
505
- };
506
- }
507
- if (real.resolveLambdaExecutionRoleArn) provider.resolveLambdaExecutionRoleArn = real.resolveLambdaExecutionRoleArn.bind(real);
508
- if (real.resolveAgentCoreRuntimeRoleArn) provider.resolveAgentCoreRuntimeRoleArn = real.resolveAgentCoreRuntimeRoleArn.bind(real);
509
- if (real.resolveTemplateSsmParameters) provider.resolveTemplateSsmParameters = real.resolveTemplateSsmParameters.bind(real);
510
- if (real.getLastLoadError) provider.getLastLoadError = real.getLastLoadError.bind(real);
511
- return provider;
512
- }
513
-
514
1084
  //#endregion
515
1085
  //#region src/local/mixed-mode-tls.ts
516
1086
  function der(tag, content) {
@@ -1537,7 +2107,7 @@ function resolveAwsEmulatorOption(flag, env = process.env) {
1537
2107
  }
1538
2108
  async function activateWorkloadAwsWiring(options) {
1539
2109
  const awsEmulator = resolveAwsEmulatorOption(options.awsEmulator);
1540
- const sentinels = readAwsEmulatorSentinelsFromFile(options.envVars);
2110
+ const { overrides, sentinels } = readAwsEmulatorEnvVarsFile(options.envVars);
1541
2111
  validateAwsEmulatorSentinels(sentinels, awsEmulator !== void 0, awsEmulatorEnvName());
1542
2112
  const wiring = await resolveWorkloadAwsWiring({
1543
2113
  awsEmulator,
@@ -1551,7 +2121,8 @@ async function activateWorkloadAwsWiring(options) {
1551
2121
  setAwsEndpointOverride(void 0);
1552
2122
  setAwsEmulatorServiceRouting({
1553
2123
  services: wiring.mixed.services,
1554
- override: wiring.mixed.emulatorClientOverride
2124
+ override: wiring.mixed.emulatorClientOverride,
2125
+ envOverrides: overrides
1555
2126
  });
1556
2127
  getLogger().info(`Mixed mode: ${wiring.mixed.services.join(", ")} go to AWS Emulator at ${wiring.mixed.emulatorEndpoint.url} (signed with its keys), for the workload and for ${getEmbedConfig().productName}'s own calls; every other AWS call uses your real credentials.`);
1557
2128
  } else if (wiring.mode === "emulator" && wiring.emulatorEndpoint) {
@@ -1642,7 +2213,8 @@ function callerChainWithoutEnv(proxied) {
1642
2213
  function workloadClientConfig(opts = {}) {
1643
2214
  const base = buildProxyClientConfig({
1644
2215
  profile: opts.profile,
1645
- service: opts.service
2216
+ service: opts.service,
2217
+ workload: opts.workload
1646
2218
  });
1647
2219
  const rec = callerRecord();
1648
2220
  if (!rec) return base;
@@ -1724,5 +2296,5 @@ function warnWorkloadCredentialsStripped() {
1724
2296
  }
1725
2297
 
1726
2298
  //#endregion
1727
- export { awsEndpointOverrideClientConfig as $, parseAwsEndpoint as A, MIXED_MODE_RESIGN_BODY_CAP_BYTES as B, effectiveLoopbackPorts as C, javaTruststoreToolOptions as D, getContainerJavaTruststorePath as E, resolveHostDefaultCredentials as F, createMixedModeStateProvider as G, createMixedModeTlsMaterials as H, resolveWorkloadAwsWiring as I, isAwsEmulatorSentinel as J, emulatedServicesOf as K, setActiveWorkloadAwsWiring as L, readEmulatorRunFiles as M, readProfileEndpointSettings as N, loopbackForwarderPlan as O, resolveAwsEmulatorOption as P, awsClientConfigForService as Q, workload_aws_wiring_exports as R, displayEndpointValue as S, getContainerCaBundlePath as T, AWS_EMULATOR_SENTINEL as U, RESIGN_SIDECAR_SCRIPT as V, MIXED_MODE_RESIGN_PORT as W, resourceTypeMatchesEmulatedService as X, readAwsEmulatorSentinelsFromFile as Y, validateAwsEmulatorSentinels as Z, HOST_DEFAULT_CREDENTIALS_MISS_TTL_MS as _, deployAccountStsClientConfig as a, normalizeAwsEndpointServiceId as at, awsEmulatorEnvName as b, resetWorkloadIdentity as c, setAwsEndpointOverride as ct, workloadStsClientConfig as d, formatAuthority as dt, buildProxyClientConfig as et, AUTH_OFF_PLACEHOLDER_CREDENTIALS as f, formatHostForAuthority as ft, HOST_CA_TRUST_ENV_KEYS as g, EMULATOR_SCRUBBED_ENV_KEYS as h, assumedRoleRecorded as i, isProxyEnvConfigured as it, probeAwsEmulatorHealth as j, mergeJavaToolOptions as k, warnWorkloadCredentialsStripped as l, isLoopbackHostname as lt, DEFAULT_AWS_EMULATOR_URL as m, accountLookupStsClientConfig as n, getAwsEndpointOverride as nt, readEnvCallerCredentials as o, proxyAwareFetch as ot, CA_TRUST_ENV_KEYS as p, hostFromAuthority as pt, findAwsEmulatorSentinels as q, applyWorkloadEnvCredentials as r, isAwsServiceRoutedToEmulator as rt, recordAssumedRole as s, setAwsEmulatorServiceRouting as st, SECOND_ASSUME_MESSAGE as t, getAwsEmulatorServiceRouting as tt, workloadClientConfig as u, isWildcardHostname as ut, activateWorkloadAwsWiring as v, getActiveWorkloadAwsWiring as w, collectHostEndpointOverrides as x, applyWorkloadAwsWiringToEnv as y, writeCaBundleFile as z };
1728
- //# sourceMappingURL=workload-identity-D3XdPJjV.js.map
2299
+ export { setAwsEmulatorServiceRouting as $, parseAwsEndpoint as A, MIXED_MODE_RESIGN_BODY_CAP_BYTES as B, effectiveLoopbackPorts as C, javaTruststoreToolOptions as D, getContainerJavaTruststorePath as E, resolveHostDefaultCredentials as F, awsEndpointOverrideClientConfig as G, createMixedModeTlsMaterials as H, resolveWorkloadAwsWiring as I, getAwsEndpointOverride as J, buildProxyClientConfig as K, setActiveWorkloadAwsWiring as L, readEmulatorRunFiles as M, readProfileEndpointSettings as N, loopbackForwarderPlan as O, resolveAwsEmulatorOption as P, proxyAwareFetch as Q, workload_aws_wiring_exports as R, displayEndpointValue as S, getContainerCaBundlePath as T, awsClientConfigForService as U, RESIGN_SIDECAR_SCRIPT as V, awsEmulatorRoutedServices as W, isProxyEnvConfigured as X, isAwsServiceRoutedToEmulator as Y, normalizeAwsEndpointServiceId as Z, HOST_DEFAULT_CREDENTIALS_MISS_TTL_MS as _, isLoopbackHostname as _t, deployAccountStsClientConfig as a, emulatedServicesOf as at, awsEmulatorEnvName as b, formatHostForAuthority as bt, resetWorkloadIdentity as c, readAwsEmulatorEnvVarsFile as ct, workloadStsClientConfig as d, validateAwsEmulatorSentinels as dt, setAwsEndpointOverride as et, AUTH_OFF_PLACEHOLDER_CREDENTIALS as f, AWS_ENDPOINT_SERVICE_IDS as ft, HOST_CA_TRUST_ENV_KEYS as g, defineOwnKey as gt, EMULATOR_SCRUBBED_ENV_KEYS as h, resolveEnvVars as ht, assumedRoleRecorded as i, emulatedServicesForWorkload as it, probeAwsEmulatorHealth as j, mergeJavaToolOptions as k, warnWorkloadCredentialsStripped as l, readAwsEmulatorSentinelsFromFile as lt, DEFAULT_AWS_EMULATOR_URL as m, readEnvVarsFileText as mt, accountLookupStsClientConfig as n, MIXED_MODE_RESIGN_PORT as nt, readEnvCallerCredentials as o, findAwsEmulatorSentinels as ot, CA_TRUST_ENV_KEYS as p, applyEnvOverrideMap as pt, getAwsEmulatorServiceRouting as q, applyWorkloadEnvCredentials as r, createMixedModeStateProvider as rt, recordAssumedRole as s, isAwsEmulatorSentinel as st, SECOND_ASSUME_MESSAGE as t, AWS_EMULATOR_SENTINEL as tt, workloadClientConfig as u, resourceTypeMatchesEmulatedService as ut, activateWorkloadAwsWiring as v, isWildcardHostname as vt, getActiveWorkloadAwsWiring as w, collectHostEndpointOverrides as x, hostFromAuthority as xt, applyWorkloadAwsWiringToEnv as y, formatAuthority as yt, writeCaBundleFile as z };
2300
+ //# sourceMappingURL=workload-identity-BOEZuEDO.js.map