@go-to-k/cdkd 0.285.12 → 0.285.13
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/{asg-provider-CXkE2U3z.js → asg-provider-DcFgnQQO.js} +11 -4
- package/dist/asg-provider-DcFgnQQO.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/{deploy-engine-C3epVkTj.js → deploy-engine-DhMm2M33.js} +97 -30
- package/dist/deploy-engine-DhMm2M33.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{program-C5evYwxk.js → program-DHJ4G_ZZ.js} +314 -81
- package/dist/{program-C5evYwxk.js.map → program-DHJ4G_ZZ.js.map} +1 -1
- package/dist/{version-CS-eKBJA.js → version-FLW4rE5A.js} +2 -2
- package/dist/{version-CS-eKBJA.js.map → version-FLW4rE5A.js.map} +1 -1
- package/package.json +1 -1
- package/dist/asg-provider-CXkE2U3z.js.map +0 -1
- package/dist/deploy-engine-C3epVkTj.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as withStackName, d as applyDefaultNameForFallback, f as generateResourceName, h as looksLikeCdkdGeneratedName, m as getCurrentStackName, n as getLogger, p as generateResourceNameWithFallback, r as isStdoutReservedForPayload, s as getLiveRenderer } from "./logger-Dw-3y48G.js";
|
|
2
2
|
import { t as awsClientDefaults } from "./aws-client-defaults-D-iYiIJ6.js";
|
|
3
|
-
import { t as getCdkdVersion } from "./version-
|
|
3
|
+
import { t as getCdkdVersion } from "./version-FLW4rE5A.js";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { CreateBucketCommand, DeleteObjectCommand, DeleteObjectsCommand, GetBucketLocationCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchKey, PutBucketEncryptionCommand, PutBucketPolicyCommand, PutObjectCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -2705,7 +2705,10 @@ var AZContextProvider = class {
|
|
|
2705
2705
|
async resolve(props) {
|
|
2706
2706
|
const region = props["region"] || this.awsConfig?.region;
|
|
2707
2707
|
this.logger.debug(`Fetching availability zones for region: ${region}`);
|
|
2708
|
-
const client = new EC2Client({
|
|
2708
|
+
const client = new EC2Client({
|
|
2709
|
+
...awsClientDefaults(),
|
|
2710
|
+
...region && { region }
|
|
2711
|
+
});
|
|
2709
2712
|
try {
|
|
2710
2713
|
const azs = ((await client.send(new DescribeAvailabilityZonesCommand({}))).AvailabilityZones ?? []).filter((az) => az.State === "available").map((az) => az.ZoneName).filter(Boolean).sort();
|
|
2711
2714
|
this.logger.debug(`Found ${azs.length} availability zones: ${azs.join(", ")}`);
|
|
@@ -2735,7 +2738,10 @@ var SSMContextProvider = class {
|
|
|
2735
2738
|
const parameterName = props["parameterName"];
|
|
2736
2739
|
if (!parameterName) throw new Error("SSM context provider requires parameterName property");
|
|
2737
2740
|
this.logger.debug(`Reading SSM parameter: ${parameterName} (region: ${region})`);
|
|
2738
|
-
const client = new SSMClient({
|
|
2741
|
+
const client = new SSMClient({
|
|
2742
|
+
...awsClientDefaults(),
|
|
2743
|
+
...region && { region }
|
|
2744
|
+
});
|
|
2739
2745
|
try {
|
|
2740
2746
|
const response = await client.send(new GetParameterCommand({ Name: parameterName }));
|
|
2741
2747
|
if (!response.Parameter || response.Parameter.Value === void 0) {
|
|
@@ -2774,7 +2780,10 @@ var HostedZoneContextProvider = class {
|
|
|
2774
2780
|
const vpcId = props["vpcId"];
|
|
2775
2781
|
if (!domainName) throw new Error("Hosted zone context provider requires domainName property");
|
|
2776
2782
|
this.logger.debug(`Looking up hosted zone: ${domainName} (private: ${privateZone})`);
|
|
2777
|
-
const client = new Route53Client({
|
|
2783
|
+
const client = new Route53Client({
|
|
2784
|
+
...awsClientDefaults(),
|
|
2785
|
+
...region && { region }
|
|
2786
|
+
});
|
|
2778
2787
|
try {
|
|
2779
2788
|
const zones = (await client.send(new ListHostedZonesByNameCommand({
|
|
2780
2789
|
DNSName: domainName,
|
|
@@ -2825,7 +2834,10 @@ var VpcContextProvider = class {
|
|
|
2825
2834
|
const subnetGroupNameTag = props["subnetGroupNameTag"] || "aws-cdk:subnet-name";
|
|
2826
2835
|
const returnVpnGateways = props["returnVpnGateways"];
|
|
2827
2836
|
this.logger.debug(`Looking up VPC (region: ${region}, filter: ${JSON.stringify(filter)})`);
|
|
2828
|
-
const client = new EC2Client({
|
|
2837
|
+
const client = new EC2Client({
|
|
2838
|
+
...awsClientDefaults(),
|
|
2839
|
+
...region && { region }
|
|
2840
|
+
});
|
|
2829
2841
|
try {
|
|
2830
2842
|
const vpcFilters = filter ? Object.entries(filter).map(([name, value]) => ({
|
|
2831
2843
|
Name: name,
|
|
@@ -2988,7 +3000,10 @@ var CcApiContextProvider = class {
|
|
|
2988
3000
|
const ignoreErrorOnMissingContext = props["ignoreErrorOnMissingContext"];
|
|
2989
3001
|
if (!typeName) throw new Error("CC API context provider requires typeName property");
|
|
2990
3002
|
this.logger.debug(`CC API lookup: ${typeName}${exactIdentifier ? ` (id: ${exactIdentifier})` : ""} (region: ${region})`);
|
|
2991
|
-
const client = new CloudControlClient({
|
|
3003
|
+
const client = new CloudControlClient({
|
|
3004
|
+
...awsClientDefaults(),
|
|
3005
|
+
...region && { region }
|
|
3006
|
+
});
|
|
2992
3007
|
try {
|
|
2993
3008
|
let resources;
|
|
2994
3009
|
if (exactIdentifier) {
|
|
@@ -3115,7 +3130,10 @@ var AmiContextProvider = class {
|
|
|
3115
3130
|
const owners = props["owners"];
|
|
3116
3131
|
const filters = props["filters"];
|
|
3117
3132
|
this.logger.debug(`Looking up AMI (region: ${region})`);
|
|
3118
|
-
const client = new EC2Client({
|
|
3133
|
+
const client = new EC2Client({
|
|
3134
|
+
...awsClientDefaults(),
|
|
3135
|
+
...region && { region }
|
|
3136
|
+
});
|
|
3119
3137
|
try {
|
|
3120
3138
|
const ec2Filters = filters ? Object.entries(filters).map(([name, values]) => ({
|
|
3121
3139
|
Name: name,
|
|
@@ -3155,7 +3173,10 @@ var SecurityGroupContextProvider = class {
|
|
|
3155
3173
|
const securityGroupName = props["securityGroupName"];
|
|
3156
3174
|
const vpcId = props["vpcId"];
|
|
3157
3175
|
this.logger.debug(`Looking up security group (id: ${securityGroupId}, name: ${securityGroupName}, region: ${region})`);
|
|
3158
|
-
const client = new EC2Client({
|
|
3176
|
+
const client = new EC2Client({
|
|
3177
|
+
...awsClientDefaults(),
|
|
3178
|
+
...region && { region }
|
|
3179
|
+
});
|
|
3159
3180
|
try {
|
|
3160
3181
|
const filters = [];
|
|
3161
3182
|
if (securityGroupId) filters.push({
|
|
@@ -3206,7 +3227,10 @@ var LoadBalancerContextProvider = class {
|
|
|
3206
3227
|
const loadBalancerArn = props["loadBalancerArn"];
|
|
3207
3228
|
const loadBalancerType = props["loadBalancerType"];
|
|
3208
3229
|
this.logger.debug(`Looking up load balancer (arn: ${loadBalancerArn}, region: ${region})`);
|
|
3209
|
-
const client = new ElasticLoadBalancingV2Client({
|
|
3230
|
+
const client = new ElasticLoadBalancingV2Client({
|
|
3231
|
+
...awsClientDefaults(),
|
|
3232
|
+
...region && { region }
|
|
3233
|
+
});
|
|
3210
3234
|
try {
|
|
3211
3235
|
let lbs = (await client.send(new DescribeLoadBalancersCommand({ ...loadBalancerArn && { LoadBalancerArns: [loadBalancerArn] } }))).LoadBalancers ?? [];
|
|
3212
3236
|
if (loadBalancerType) lbs = lbs.filter((lb) => lb.Type === loadBalancerType);
|
|
@@ -3245,7 +3269,10 @@ var LoadBalancerListenerContextProvider = class {
|
|
|
3245
3269
|
const listenerPort = props["listenerPort"];
|
|
3246
3270
|
const listenerProtocol = props["listenerProtocol"];
|
|
3247
3271
|
this.logger.debug(`Looking up load balancer listener (arn: ${listenerArn}, lb: ${loadBalancerArn}, region: ${region})`);
|
|
3248
|
-
const client = new ElasticLoadBalancingV2Client({
|
|
3272
|
+
const client = new ElasticLoadBalancingV2Client({
|
|
3273
|
+
...awsClientDefaults(),
|
|
3274
|
+
...region && { region }
|
|
3275
|
+
});
|
|
3249
3276
|
try {
|
|
3250
3277
|
let listeners = (await client.send(new DescribeListenersCommand({
|
|
3251
3278
|
...listenerArn && { ListenerArns: [listenerArn] },
|
|
@@ -3286,7 +3313,10 @@ var KeyContextProvider = class {
|
|
|
3286
3313
|
const aliasName = props["aliasName"];
|
|
3287
3314
|
if (!aliasName) throw new Error("Key context provider requires aliasName property");
|
|
3288
3315
|
this.logger.debug(`Looking up KMS key by alias: ${aliasName} (region: ${region})`);
|
|
3289
|
-
const client = new KMSClient({
|
|
3316
|
+
const client = new KMSClient({
|
|
3317
|
+
...awsClientDefaults(),
|
|
3318
|
+
...region && { region }
|
|
3319
|
+
});
|
|
3290
3320
|
try {
|
|
3291
3321
|
const normalizedAlias = aliasName.startsWith("alias/") ? aliasName : `alias/${aliasName}`;
|
|
3292
3322
|
let nextMarker;
|
|
@@ -4138,6 +4168,7 @@ async function uploadCfnTemplate(args) {
|
|
|
4138
4168
|
...s3ClientOpts?.credentials && { credentials: s3ClientOpts.credentials }
|
|
4139
4169
|
});
|
|
4140
4170
|
const s3 = new S3Client({
|
|
4171
|
+
...awsClientDefaults({ profile: s3ClientOpts?.profile }),
|
|
4141
4172
|
region,
|
|
4142
4173
|
...s3ClientOpts?.profile && { profile: s3ClientOpts.profile },
|
|
4143
4174
|
...s3ClientOpts?.credentials && { credentials: s3ClientOpts.credentials }
|
|
@@ -4535,7 +4566,10 @@ async function expandMacrosAttempt(template, opts, logger) {
|
|
|
4535
4566
|
const serialized = JSON.stringify(template);
|
|
4536
4567
|
const parameters = buildParameterValues(template, logger);
|
|
4537
4568
|
ownsClient = opts.cfnClient === void 0;
|
|
4538
|
-
cfn = opts.cfnClient ?? new CloudFormationClient({
|
|
4569
|
+
cfn = opts.cfnClient ?? new CloudFormationClient({
|
|
4570
|
+
...awsClientDefaults(),
|
|
4571
|
+
region
|
|
4572
|
+
});
|
|
4539
4573
|
let templateInput;
|
|
4540
4574
|
if (serialized.length > 1048576) throw new MacroExpansionError(`Template is ${serialized.length} bytes, which exceeds CloudFormation's ${CFN_TEMPLATE_URL_LIMIT}-byte TemplateURL ceiling for macro expansion. Shrink inline payloads (move inline lambda.Code.ZipFile to lambda.Code.fromAsset, etc.) or split the stack before retrying.`);
|
|
4541
4575
|
if (serialized.length <= 51200) templateInput = { TemplateBody: serialized };
|
|
@@ -5143,7 +5177,10 @@ var Synthesizer = class {
|
|
|
5143
5177
|
const region = explicitRegion || await resolveSdkDefaultRegion(options.profile);
|
|
5144
5178
|
let accountId;
|
|
5145
5179
|
try {
|
|
5146
|
-
const stsClient = new STSClient({
|
|
5180
|
+
const stsClient = new STSClient({
|
|
5181
|
+
...awsClientDefaults(),
|
|
5182
|
+
...region && { region }
|
|
5183
|
+
});
|
|
5147
5184
|
accountId = (await stsClient.send(new GetCallerIdentityCommand({}))).Account;
|
|
5148
5185
|
stsClient.destroy();
|
|
5149
5186
|
} catch {
|
|
@@ -5235,7 +5272,10 @@ var Synthesizer = class {
|
|
|
5235
5272
|
if (!region) throw new SynthesisError(`Stack(s) [${stacksWithMacros.map((s) => s.stackName).join(", ")}] use CloudFormation macros (Transform / Fn::Transform) but cdkd could not resolve an AWS region for the expansion round-trip. Set AWS_REGION, pass --region <r>, or set env: { region: '<r>' } in your CDK Stack constructor.`);
|
|
5236
5273
|
let accountId = resolved?.accountId;
|
|
5237
5274
|
if (resolved === void 0 && !options.stateBucket) try {
|
|
5238
|
-
const stsClient = new STSClient({
|
|
5275
|
+
const stsClient = new STSClient({
|
|
5276
|
+
...awsClientDefaults(),
|
|
5277
|
+
region
|
|
5278
|
+
});
|
|
5239
5279
|
accountId = (await stsClient.send(new GetCallerIdentityCommand({}))).Account;
|
|
5240
5280
|
stsClient.destroy();
|
|
5241
5281
|
} catch {
|
|
@@ -5281,7 +5321,10 @@ var Synthesizer = class {
|
|
|
5281
5321
|
async function resolveSdkDefaultRegion(profile) {
|
|
5282
5322
|
let client;
|
|
5283
5323
|
try {
|
|
5284
|
-
client = new STSClient({
|
|
5324
|
+
client = new STSClient({
|
|
5325
|
+
...awsClientDefaults({ profile }),
|
|
5326
|
+
...profile && { profile }
|
|
5327
|
+
});
|
|
5285
5328
|
return await client.config.region() || void 0;
|
|
5286
5329
|
} catch {
|
|
5287
5330
|
return;
|
|
@@ -5471,7 +5514,10 @@ var FileAssetPublisher = class {
|
|
|
5471
5514
|
const objectKey = this.resolvePlaceholders(dest.objectKey, accountId, region);
|
|
5472
5515
|
const destRegion = dest.region ? this.resolvePlaceholders(dest.region, accountId, region) : region;
|
|
5473
5516
|
this.logger.debug(`Publishing file asset ${asset.displayName || assetHash} → s3://${bucketName}/${objectKey}`);
|
|
5474
|
-
const client = new S3Client({
|
|
5517
|
+
const client = new S3Client({
|
|
5518
|
+
...awsClientDefaults(),
|
|
5519
|
+
region: destRegion
|
|
5520
|
+
});
|
|
5475
5521
|
try {
|
|
5476
5522
|
if (await this.objectExists(client, bucketName, objectKey)) {
|
|
5477
5523
|
this.logger.debug(`Asset already exists, skipping: s3://${bucketName}/${objectKey}`);
|
|
@@ -6095,7 +6141,10 @@ var DockerAssetPublisher = class {
|
|
|
6095
6141
|
const destRegion = dest.region ? this.resolvePlaceholders(dest.region, accountId, region) : region;
|
|
6096
6142
|
const ecrUri = `${accountId}.dkr.ecr.${destRegion}.${ecrUrlSuffix(destRegion)}/${repositoryName}:${imageTag}`;
|
|
6097
6143
|
this.logger.debug(`Publishing Docker image ${asset.displayName || assetHash} → ${ecrUri}`);
|
|
6098
|
-
const client = new ECRClient({
|
|
6144
|
+
const client = new ECRClient({
|
|
6145
|
+
...awsClientDefaults(),
|
|
6146
|
+
region: destRegion
|
|
6147
|
+
});
|
|
6099
6148
|
try {
|
|
6100
6149
|
if (await this.imageExists(client, repositoryName, imageTag)) {
|
|
6101
6150
|
this.logger.debug(`Image already exists, skipping: ${ecrUri}`);
|
|
@@ -6131,7 +6180,10 @@ var DockerAssetPublisher = class {
|
|
|
6131
6180
|
const imageTag = this.resolvePlaceholders(dest.imageTag, accountId, region);
|
|
6132
6181
|
const destRegion = dest.region ? this.resolvePlaceholders(dest.region, accountId, region) : region;
|
|
6133
6182
|
const ecrUri = `${accountId}.dkr.ecr.${destRegion}.${ecrUrlSuffix(destRegion)}/${repositoryName}:${imageTag}`;
|
|
6134
|
-
const client = new ECRClient({
|
|
6183
|
+
const client = new ECRClient({
|
|
6184
|
+
...awsClientDefaults(),
|
|
6185
|
+
region: destRegion
|
|
6186
|
+
});
|
|
6135
6187
|
try {
|
|
6136
6188
|
if (await this.imageExists(client, repositoryName, imageTag)) {
|
|
6137
6189
|
this.logger.debug(`Image already exists, skipping: ${ecrUri}`);
|
|
@@ -7427,6 +7479,7 @@ function createAssetRedirectResolver(opts) {
|
|
|
7427
7479
|
accountIdPromise ??= (async () => {
|
|
7428
7480
|
const { STSClient, GetCallerIdentityCommand } = await import("@aws-sdk/client-sts");
|
|
7429
7481
|
const stsClient = new STSClient({
|
|
7482
|
+
...awsClientDefaults({ profile: opts.profile }),
|
|
7430
7483
|
region: opts.stsRegion,
|
|
7431
7484
|
...opts.profile && { profile: opts.profile }
|
|
7432
7485
|
});
|
|
@@ -7706,7 +7759,10 @@ var AssetPublisher = class {
|
|
|
7706
7759
|
let accountId = options.accountId;
|
|
7707
7760
|
if (!accountId) {
|
|
7708
7761
|
const { STSClient, GetCallerIdentityCommand } = await import("@aws-sdk/client-sts");
|
|
7709
|
-
const stsClient = new STSClient({
|
|
7762
|
+
const stsClient = new STSClient({
|
|
7763
|
+
...awsClientDefaults(),
|
|
7764
|
+
region
|
|
7765
|
+
});
|
|
7710
7766
|
accountId = (await stsClient.send(new GetCallerIdentityCommand({}))).Account;
|
|
7711
7767
|
stsClient.destroy();
|
|
7712
7768
|
}
|
|
@@ -15100,7 +15156,7 @@ async function assumeRoleForCrossAccountStateRead(roleArn) {
|
|
|
15100
15156
|
const promise = (async () => {
|
|
15101
15157
|
const logger = getLogger().child("role-arn");
|
|
15102
15158
|
logger.debug(`Assuming role for cross-account state read: ${roleArn}`);
|
|
15103
|
-
const sts = new STSClient({});
|
|
15159
|
+
const sts = new STSClient({ ...awsClientDefaults() });
|
|
15104
15160
|
try {
|
|
15105
15161
|
let response;
|
|
15106
15162
|
try {
|
|
@@ -15169,7 +15225,10 @@ async function applyRoleArnIfSet(opts) {
|
|
|
15169
15225
|
if (!roleArn) return;
|
|
15170
15226
|
const logger = getLogger().child("role-arn");
|
|
15171
15227
|
logger.debug(`Assuming role ${roleArn}...`);
|
|
15172
|
-
const sts = new STSClient({
|
|
15228
|
+
const sts = new STSClient({
|
|
15229
|
+
...awsClientDefaults(),
|
|
15230
|
+
...opts.region && { region: opts.region }
|
|
15231
|
+
});
|
|
15173
15232
|
try {
|
|
15174
15233
|
const response = await sts.send(new AssumeRoleCommand({
|
|
15175
15234
|
RoleArn: roleArn,
|
|
@@ -16470,7 +16529,10 @@ var WAFv2WebACLProvider = class {
|
|
|
16470
16529
|
"AssociationConfig"
|
|
16471
16530
|
])]]);
|
|
16472
16531
|
getClient() {
|
|
16473
|
-
if (!this.wafv2Client) this.wafv2Client = new WAFV2Client(
|
|
16532
|
+
if (!this.wafv2Client) this.wafv2Client = new WAFV2Client({
|
|
16533
|
+
...awsClientDefaults(),
|
|
16534
|
+
...this.providerRegion ? { region: this.providerRegion } : {}
|
|
16535
|
+
});
|
|
16474
16536
|
return this.wafv2Client;
|
|
16475
16537
|
}
|
|
16476
16538
|
/**
|
|
@@ -18240,6 +18302,7 @@ var IntrinsicFunctionResolver = class IntrinsicFunctionResolver {
|
|
|
18240
18302
|
const building = (async () => {
|
|
18241
18303
|
const { ServiceDiscoveryClient } = await import("@aws-sdk/client-servicediscovery");
|
|
18242
18304
|
return new ServiceDiscoveryClient({
|
|
18305
|
+
...awsClientDefaults({ profile: scoped.credentialConfig?.profile }),
|
|
18243
18306
|
...scoped.credentialConfig ?? {},
|
|
18244
18307
|
...region ? { region } : {}
|
|
18245
18308
|
});
|
|
@@ -20047,7 +20110,10 @@ var IntrinsicFunctionResolver = class IntrinsicFunctionResolver {
|
|
|
20047
20110
|
getCfnClient(region) {
|
|
20048
20111
|
let client = this.cfnClients[region];
|
|
20049
20112
|
if (!client) {
|
|
20050
|
-
client = new CloudFormationClient({
|
|
20113
|
+
client = new CloudFormationClient({
|
|
20114
|
+
...awsClientDefaults(),
|
|
20115
|
+
region
|
|
20116
|
+
});
|
|
20051
20117
|
this.cfnClients[region] = client;
|
|
20052
20118
|
}
|
|
20053
20119
|
return client;
|
|
@@ -20231,6 +20297,7 @@ var IntrinsicFunctionResolver = class IntrinsicFunctionResolver {
|
|
|
20231
20297
|
const { bucket, region: bucketRegion } = await resolveCrossAccountStateBucket(parsed.accountId, credentials);
|
|
20232
20298
|
const prefix = context.stateBackend?.prefix ?? "cdkd";
|
|
20233
20299
|
return new S3StateBackend(new S3Client({
|
|
20300
|
+
...awsClientDefaults(),
|
|
20234
20301
|
region: bucketRegion,
|
|
20235
20302
|
credentials: {
|
|
20236
20303
|
accessKeyId: credentials.accessKeyId,
|
|
@@ -21836,7 +21903,7 @@ var CloudControlProvider = class {
|
|
|
21836
21903
|
const indeterminateGuard = await this.confirmDeleteTargetIdentity(logicalId, resourceType, physicalId, context);
|
|
21837
21904
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
21838
21905
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
21839
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
21906
|
+
const { ASGProvider } = await import("./asg-provider-DcFgnQQO.js").then((n) => n.n);
|
|
21840
21907
|
return withIndeterminateGuard(await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context), indeterminateGuard);
|
|
21841
21908
|
}
|
|
21842
21909
|
const isProtectedEc2Instance = context?.removeProtection === true && resourceType === "AWS::EC2::Instance";
|
|
@@ -22209,7 +22276,7 @@ var CloudControlProvider = class {
|
|
|
22209
22276
|
break;
|
|
22210
22277
|
case "AWS::RDS::DBCluster":
|
|
22211
22278
|
try {
|
|
22212
|
-
const cluster = (await new RDSClient({}).send(new DescribeDBClustersCommand({ DBClusterIdentifier: physicalId }))).DBClusters?.[0];
|
|
22279
|
+
const cluster = (await new RDSClient({ ...awsClientDefaults() }).send(new DescribeDBClustersCommand({ DBClusterIdentifier: physicalId }))).DBClusters?.[0];
|
|
22213
22280
|
if (cluster) {
|
|
22214
22281
|
if (cluster.Endpoint) enriched["Endpoint.Address"] = cluster.Endpoint;
|
|
22215
22282
|
if (cluster.Port !== void 0) enriched["Endpoint.Port"] = String(cluster.Port);
|
|
@@ -22224,7 +22291,7 @@ var CloudControlProvider = class {
|
|
|
22224
22291
|
break;
|
|
22225
22292
|
case "AWS::RDS::DBInstance":
|
|
22226
22293
|
try {
|
|
22227
|
-
const inst = (await new RDSClient({}).send(new DescribeDBInstancesCommand({ DBInstanceIdentifier: physicalId }))).DBInstances?.[0];
|
|
22294
|
+
const inst = (await new RDSClient({ ...awsClientDefaults() }).send(new DescribeDBInstancesCommand({ DBInstanceIdentifier: physicalId }))).DBInstances?.[0];
|
|
22228
22295
|
if (inst) {
|
|
22229
22296
|
if (inst.Endpoint?.Address) enriched["Endpoint.Address"] = inst.Endpoint.Address;
|
|
22230
22297
|
if (inst.Endpoint?.Port !== void 0) enriched["Endpoint.Port"] = String(inst.Endpoint.Port);
|
|
@@ -22378,7 +22445,7 @@ var CloudControlProvider = class {
|
|
|
22378
22445
|
break;
|
|
22379
22446
|
case "AWS::ElastiCache::ReplicationGroup":
|
|
22380
22447
|
try {
|
|
22381
|
-
const rg = (await new ElastiCacheClient({}).send(new DescribeReplicationGroupsCommand({ ReplicationGroupId: physicalId }))).ReplicationGroups?.[0];
|
|
22448
|
+
const rg = (await new ElastiCacheClient({ ...awsClientDefaults() }).send(new DescribeReplicationGroupsCommand({ ReplicationGroupId: physicalId }))).ReplicationGroups?.[0];
|
|
22382
22449
|
if (rg) {
|
|
22383
22450
|
const primaryNode = rg.NodeGroups?.[0];
|
|
22384
22451
|
if (primaryNode?.PrimaryEndpoint?.Address) enriched["PrimaryEndPoint.Address"] = primaryNode.PrimaryEndpoint.Address;
|
|
@@ -22400,7 +22467,7 @@ var CloudControlProvider = class {
|
|
|
22400
22467
|
break;
|
|
22401
22468
|
case "AWS::Redshift::Cluster":
|
|
22402
22469
|
try {
|
|
22403
|
-
const cluster = (await new RedshiftClient({}).send(new DescribeClustersCommand({ ClusterIdentifier: physicalId }))).Clusters?.[0];
|
|
22470
|
+
const cluster = (await new RedshiftClient({ ...awsClientDefaults() }).send(new DescribeClustersCommand({ ClusterIdentifier: physicalId }))).Clusters?.[0];
|
|
22404
22471
|
if (cluster?.Endpoint) {
|
|
22405
22472
|
if (cluster.Endpoint.Address) enriched["Endpoint.Address"] = cluster.Endpoint.Address;
|
|
22406
22473
|
if (cluster.Endpoint.Port !== void 0) enriched["Endpoint.Port"] = String(cluster.Endpoint.Port);
|
|
@@ -22412,7 +22479,7 @@ var CloudControlProvider = class {
|
|
|
22412
22479
|
break;
|
|
22413
22480
|
case "AWS::OpenSearchService::Domain":
|
|
22414
22481
|
try {
|
|
22415
|
-
const domain = (await new OpenSearchClient({}).send(new DescribeDomainCommand({ DomainName: physicalId }))).DomainStatus;
|
|
22482
|
+
const domain = (await new OpenSearchClient({ ...awsClientDefaults() }).send(new DescribeDomainCommand({ DomainName: physicalId }))).DomainStatus;
|
|
22416
22483
|
if (domain) {
|
|
22417
22484
|
const endpoint = domain.Endpoint ?? domain.Endpoints?.["vpc"];
|
|
22418
22485
|
if (endpoint) enriched["DomainEndpoint"] = endpoint;
|
|
@@ -33962,4 +34029,4 @@ var DeployEngine = class {
|
|
|
33962
34029
|
|
|
33963
34030
|
//#endregion
|
|
33964
34031
|
export { DEFAULT_STATE_PREFIX as $, resolveUseCdkBootstrapAssets as $n, __exportAll as $r, isSingleDynamicReferenceToken as $t, bold as A, validateAssetBucketName as An, LocalStartServiceError as Ar, requireConfigObject as At, secretBearingStateKeyWarning as B, runDockerStreaming as Bn, StateError as Br, DiffCalculator as Bt, unsupportedFinalSnapshotError as C, BOOTSTRAP_MARKER_PREFIX as Cn, ConfigError as Cr, assertRegionMatch as Ct, isStatefulRecreateTargetSync as D, isCrossRegionRedirect as Dn, DynamicReferenceRegionAmbiguousError as Dr, readConfigString as Dt, MULTI_REGION_RECREATE_BLOCKED_TYPES as E, getBootstrapMarkerKey as En, DeployCancelledError as Er, configStringRefusal as Et, yellow as F, dockerSpawnEnvWithSensitive as Fn, ProvisioningError as Fr, s3BucketDomainName as Ft, clearOnUpdateRemoval as G, getDefaultStateBucketName as Gn, withErrorHandling as Gr, TemplateParser as Gt, getCurrentResourceSecrets as H, getDockerImageBySourceHash as Hn, formatError as Hr, describeTypeWithThrottleRetry as Ht, collectDeclaredOutputNames as I, formatDockerLoginError as In, ResourceTimeoutError as Ir, s3BucketDualStackDomainName as It, findSilentDropProperties as J, resolveAutoAssetStorage as Jn, isThrottlingError as Jr, TEMPLATE_SOURCED_RULES as Jt, ProviderRegistry as K, getLegacyStateBucketName as Kn, isMarkedNonRetryable as Kr, STATE_SOURCED_CROSS_GENERATION_RULES as Kt, collectPublishedOutputNames as L, getDockerCmd as Ln, ResourceUpdateNotSupportedError as Lr, s3BucketRegionalDomainName as Lt, gray as M, buildDenyExternalAccessPolicy as Mn, MissingCdkCliError as Mr, classifyReplaySecretRegion as Mt, green as N, describeAwsFailure as Nn, NestedStackChildDirectDestroyError as Nr, producerRegionsFromState as Nt, renderStatefulReason as O, parseBootstrapMarker as On, LocalInvokeBuildError as Or, replayWarn as Ot, red as P, buildDockerImage as Pn, PartialFailureError as Pr, s3BucketArn as Pt, CUSTOM_RESOURCE_RESPONSE_PREFIX as Q, resolveStateBucketWithDefaultAndSource as Qn, retryClassificationText as Qr, errorCauseChain as Qt, exportAliasCollisionScrubWarning as R, partitionSensitiveEnv as Rn, StackHasActiveImportsError as Rr, s3BucketWebsiteUrl as Rt, refusesFinalSnapshot as S, AssetModeResolver as Sn, CdkdError as Sr, resolveExplicitPhysicalId as St, extractDeploymentEventError as T, ensureAssetStorage as Tn, DependencyError as Tr, configBooleanRefusal as Tt, IAMRoleProvider as U, Synthesizer as Un, isCdkdError as Ur, withRetry as Ut, stateKeySecretExposure as V, AssetManifestLoader as Vn, SynthesisError as Vr, INTRINSIC_KEYS as Vt, collectInlinePolicyNamesManagedBySiblings as W, synthesisStatusMessage as Wn, normalizeAwsError as Wr, DagBuilder as Wt, maskDeep as X, resolveSkipPrefix as Xn, markNonRetryable as Xr, createSecretMasker as Xt, createMaskedRetryLogger as Y, resolveCaptureObservedState as Yn, isTransientServerError as Yr, carriesSecretMask as Yt, maskerOrIdentity as Z, resolveStateBucketWithDefault as Zn, markRedactedCause as Zr, dynamicReferenceTokens as Zt, PRE_DELETE_SNAPSHOT_TYPES as _, createAssetRedirectResolver as _n, AwsClients as _r, isUnboundTemplateParameter as _t, DeploymentEventsStore as a, scrubResourceRecord as an, findLargeInlineResources as ar, CloudControlProvider as at, createPreDeleteFinalSnapshot as b, escapeRegExp$1 as bn, setAwsClients as br, WAFv2WebACLProvider as bt, replayFailedOperations as c, rebuildClientForBucketRegion as cn, displaySafe as cr, deleteIndeterminateGuards as ct, updatePartialReason as d, importableOutputs as dn, canonicalizeRegion as dr, isTerminationProtectionPropagationError as dt, maskSecretsInError as en, stateBucketExistenceConfirmed as er, beginCommandInterruptScope as et, withResourceDeadline as f, shouldRetainResource as fn, derivePartitionAndUrlSuffix as fr, IntrinsicFunctionResolver as ft, ATOMIC_FINAL_SNAPSHOT_TYPES as g, buildAssetRedirectMap as gn, resolveBucketRegion as gr, getAccountInfo as gt, computeImplicitDeleteEdges as h, WorkGraph as hn, clearBucketRegionCache as hr, coerceParameterTypedValue as ht, DeploymentEventsReader as i, redactSecretsForState as in, MIGRATE_TMP_PREFIX as ir, startInterruptWatch as it, cyan as j, validateContainerRepoName as jn, LockError as jr, requireConfigString as jt, formatResourceLine as k, readBootstrapMarkerBody as kn, LocalMigrateError as kr, requireConfigArray as kt, replayRollback as l, exportNamesCarriedFrom as ln, expectedOwnerParam as lr, deleteSkipReason as lt, IMPLICIT_DELETE_DEPENDENCIES as m, stringifyValue as mn, processStackMessages as mr, cfnRefValueFromPhysicalId as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, recordMaskOnlyValue as nn, CFN_TEMPLATE_BODY_LIMIT as nr, interruptWatchListenerCount as nt, planFailedOps as o, LockManager as on, uploadCfnTemplate as or, slowCcOperationTimeoutMs as ot, maskingRetryLogger as p, AssetPublisher as pn, AssemblyReader as pr, carriesDynamicReference as pt, findActionableSilentDrops as q, resolveApp as qn, isRetryableTransientError as qr, STATE_SOURCED_READBACK_RULES as qt, DeployEngine as r, recoverMaskedOutput as rn, CFN_TEMPLATE_URL_LIMIT as rr, isInterruptedWaitError as rt, planRollback as s, S3StateBackend as sn, CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION as sr, UNSPECIFIED_SKIP_REASON as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, maskSecretsInText as tn, warnDeprecatedNoPrefixCliFlag as tr, endCommandInterruptScope as tt, updatePartialMessage as u, importableOutputKeys as un, PARTITION_TABLE as ur, disableInstanceApiTermination as ut, buildFinalSnapshotIdentifier as v, loadPublishableAssetManifest as vn, getAwsClients as vr, parameterTypeMayLoseSecretIdentity as vt, makeCanonicalizePropertiesFn as w, assertAssetBucketRegion as wn, CrossAccountSecretRefusalError as wr, coerceCfnBoolean as wt, isFinalSnapshotError as x, stripControlChars as xn, AssetError as xr, normalizeAwsTagsToCfn as xt, ccRoutedFinalSnapshotError as y, rewriteTemplateAssetReferences as yn, resetAwsClients as yr, refStateLookupFromResource as yt, isExportAliasCollision as z, runDockerForeground as zn, StackTerminationProtectionError as zr, applyRoleArnIfSet as zt };
|
|
33965
|
-
//# sourceMappingURL=deploy-engine-
|
|
34032
|
+
//# sourceMappingURL=deploy-engine-DhMm2M33.js.map
|