@go-to-k/cdkd 0.268.5 → 0.269.1
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/README.md +14 -18
- package/dist/{asg-provider-Beq_IUQH.js → asg-provider-DoeGv39F.js} +2 -2
- package/dist/{asg-provider-Beq_IUQH.js.map → asg-provider-DoeGv39F.js.map} +1 -1
- package/dist/cli.js +58 -5
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-IGjv53i5.js → deploy-engine-DVP0nckx.js} +3 -3
- package/dist/{deploy-engine-IGjv53i5.js.map → deploy-engine-DVP0nckx.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as WorkGraph, A as slowCcOperationTimeoutMs, At as warnDeprecatedNoPrefixCliFlag, B as applyRoleArnIfSet, Bt as resolveBucketRegion, C as yellow, Ct as resolveAutoAssetStorage, D as ProviderRegistry, Dt as resolveStateBucketWithDefaultAndSource, E as clearOnUpdateRemoval, Et as resolveStateBucketWithDefault, F as refStateLookupFromResource, Ft as uploadCfnTemplate, G as DagBuilder, H as describeTypeWithThrottleRetry, Ht as getAwsClients, I as WAFv2WebACLProvider, It as expectedOwnerParam, J as S3StateBackend, K as TemplateParser, Kt as CdkdError, L as normalizeAwsTagsToCfn, Lt as AssemblyReader, M as isTerminationProtectionPropagationError, Mt as CFN_TEMPLATE_URL_LIMIT, N as IntrinsicFunctionResolver, Nt as MIGRATE_TMP_PREFIX, O as findActionableSilentDrops, Ot as resolveUseCdkBootstrapAssets, P as cfnRefValueFromPhysicalId, Pt as findLargeInlineResources, Q as stringifyValue, Qt as LocalStartServiceError, R as resolveExplicitPhysicalId, Rt as processStackMessages, S as red, St as resolveApp, T as collectInlinePolicyNamesManagedBySiblings, Tt as resolveSkipPrefix, U as withRetry, Ut as resetAwsClients, V as DiffCalculator, Vt as AwsClients, W as isRetryableTransientError, Wt as setAwsClients, X as shouldRetainResource, Xt as LocalInvokeBuildError$1, Y as rebuildClientForBucketRegion, Yt as DeployCancelledError, Z as AssetPublisher, Zt as LocalMigrateError, _ as formatResourceLine, _t as getDockerImageBySourceHash, a as DeploymentEventsStore, an as ResourceUpdateNotSupportedError, at as BOOTSTRAP_MARKER_PREFIX, b as gray, bt as getDefaultStateBucketName, c as replayFailedOperations, ct as parseBootstrapMarker, d as IMPLICIT_DELETE_DEPENDENCIES, dt as buildDockerImage, en as MissingCdkCliError, et as buildAssetRedirectMap, f as computeImplicitDeleteEdges, fn as normalizeAwsError, ft as formatDockerLoginError, g as renderStatefulReason, gt as AssetManifestLoader, h as isStatefulRecreateTargetSync, ht as runDockerStreaming, i as DeploymentEventsReader, in as ResourceTimeoutError, it as AssetModeResolver, j as disableInstanceApiTermination, jt as CFN_TEMPLATE_BODY_LIMIT, k as CloudControlProvider, kt as stateBucketExistenceConfirmed, l as replayRollback, lt as validateAssetBucketName, m as MULTI_REGION_RECREATE_BLOCKED_TYPES, mt as runDockerForeground, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as PartialFailureError, nt as loadPublishableAssetManifest, o as planFailedOps, on as StackHasActiveImportsError, ot as ensureAssetStorage, p as extractDeploymentEventError, pn as withErrorHandling, pt as getDockerCmd, q as LockManager, r as DeployEngine, rn as ProvisioningError, rt as rewriteTemplateAssetReferences, s as planRollback, sn as StackTerminationProtectionError, st as getBootstrapMarkerKey, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as NestedStackChildDirectDestroyError, tt as createAssetRedirectResolver, u as withResourceDeadline, ut as validateContainerRepoName, v as bold, vt as Synthesizer, w as IAMRoleProvider, wt as resolveCaptureObservedState, x as green, xt as getLegacyStateBucketName, y as cyan, yt as synthesisStatusMessage, z as assertRegionMatch } from "./deploy-engine-
|
|
2
|
+
import { $ as WorkGraph, A as slowCcOperationTimeoutMs, At as warnDeprecatedNoPrefixCliFlag, B as applyRoleArnIfSet, Bt as resolveBucketRegion, C as yellow, Ct as resolveAutoAssetStorage, D as ProviderRegistry, Dt as resolveStateBucketWithDefaultAndSource, E as clearOnUpdateRemoval, Et as resolveStateBucketWithDefault, F as refStateLookupFromResource, Ft as uploadCfnTemplate, G as DagBuilder, H as describeTypeWithThrottleRetry, Ht as getAwsClients, I as WAFv2WebACLProvider, It as expectedOwnerParam, J as S3StateBackend, K as TemplateParser, Kt as CdkdError, L as normalizeAwsTagsToCfn, Lt as AssemblyReader, M as isTerminationProtectionPropagationError, Mt as CFN_TEMPLATE_URL_LIMIT, N as IntrinsicFunctionResolver, Nt as MIGRATE_TMP_PREFIX, O as findActionableSilentDrops, Ot as resolveUseCdkBootstrapAssets, P as cfnRefValueFromPhysicalId, Pt as findLargeInlineResources, Q as stringifyValue, Qt as LocalStartServiceError, R as resolveExplicitPhysicalId, Rt as processStackMessages, S as red, St as resolveApp, T as collectInlinePolicyNamesManagedBySiblings, Tt as resolveSkipPrefix, U as withRetry, Ut as resetAwsClients, V as DiffCalculator, Vt as AwsClients, W as isRetryableTransientError, Wt as setAwsClients, X as shouldRetainResource, Xt as LocalInvokeBuildError$1, Y as rebuildClientForBucketRegion, Yt as DeployCancelledError, Z as AssetPublisher, Zt as LocalMigrateError, _ as formatResourceLine, _t as getDockerImageBySourceHash, a as DeploymentEventsStore, an as ResourceUpdateNotSupportedError, at as BOOTSTRAP_MARKER_PREFIX, b as gray, bt as getDefaultStateBucketName, c as replayFailedOperations, ct as parseBootstrapMarker, d as IMPLICIT_DELETE_DEPENDENCIES, dt as buildDockerImage, en as MissingCdkCliError, et as buildAssetRedirectMap, f as computeImplicitDeleteEdges, fn as normalizeAwsError, ft as formatDockerLoginError, g as renderStatefulReason, gt as AssetManifestLoader, h as isStatefulRecreateTargetSync, ht as runDockerStreaming, i as DeploymentEventsReader, in as ResourceTimeoutError, it as AssetModeResolver, j as disableInstanceApiTermination, jt as CFN_TEMPLATE_BODY_LIMIT, k as CloudControlProvider, kt as stateBucketExistenceConfirmed, l as replayRollback, lt as validateAssetBucketName, m as MULTI_REGION_RECREATE_BLOCKED_TYPES, mt as runDockerForeground, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as PartialFailureError, nt as loadPublishableAssetManifest, o as planFailedOps, on as StackHasActiveImportsError, ot as ensureAssetStorage, p as extractDeploymentEventError, pn as withErrorHandling, pt as getDockerCmd, q as LockManager, r as DeployEngine, rn as ProvisioningError, rt as rewriteTemplateAssetReferences, s as planRollback, sn as StackTerminationProtectionError, st as getBootstrapMarkerKey, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as NestedStackChildDirectDestroyError, tt as createAssetRedirectResolver, u as withResourceDeadline, ut as validateContainerRepoName, v as bold, vt as Synthesizer, w as IAMRoleProvider, wt as resolveCaptureObservedState, x as green, xt as getLegacyStateBucketName, y as cyan, yt as synthesisStatusMessage, z as assertRegionMatch } from "./deploy-engine-DVP0nckx.js";
|
|
3
3
|
import { a as getLiveRenderer, c as PATTERN_B_RESOURCE_TYPES, d as generateResourceNameWithFallback, f as withSkipPrefix, i as runStackBuffered, n as getLogger, o as PATTERN_B_NAME_OPTIONS, p as withStackName, s as PATTERN_B_NAME_PROPERTIES, u as generateResourceName } from "./logger-BYMEE-BS.js";
|
|
4
|
-
import { t as ASGProvider } from "./asg-provider-
|
|
4
|
+
import { t as ASGProvider } from "./asg-provider-DoeGv39F.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
7
7
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
8
8
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreatePolicyCommand, CreatePolicyVersionCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeletePolicyCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetPolicyCommand, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListPoliciesCommand, ListPolicyTagsCommand, ListPolicyVersionsCommand, ListUserPoliciesCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagPolicyCommand, TagUserCommand, UntagPolicyCommand, UntagUserCommand, UpdateLoginProfileCommand } from "@aws-sdk/client-iam";
|
|
9
9
|
import { CreateQueueCommand, DeleteQueueCommand, GetQueueAttributesCommand, GetQueueUrlCommand, ListQueueTagsCommand, QueueDoesNotExist, SQSClient, SetQueueAttributesCommand, TagQueueCommand, UntagQueueCommand } from "@aws-sdk/client-sqs";
|
|
10
|
-
import { CreateTopicCommand, DeleteTopicCommand, GetSubscriptionAttributesCommand, GetTopicAttributesCommand, ListSubscriptionsByTopicCommand, ListTagsForResourceCommand, ListTopicsCommand, NotFoundException, SNSClient, SetTopicAttributesCommand, SubscribeCommand, TagResourceCommand, UnsubscribeCommand, UntagResourceCommand } from "@aws-sdk/client-sns";
|
|
10
|
+
import { CreateTopicCommand, DeleteTopicCommand, GetSubscriptionAttributesCommand, GetTopicAttributesCommand, InvalidParameterException, ListSubscriptionsByTopicCommand, ListTagsForResourceCommand, ListTopicsCommand, NotFoundException, SNSClient, SetTopicAttributesCommand, SubscribeCommand, TagResourceCommand, UnsubscribeCommand, UntagResourceCommand } from "@aws-sdk/client-sns";
|
|
11
11
|
import { AddPermissionCommand, CreateEventSourceMappingCommand, CreateFunctionCommand, CreateFunctionUrlConfigCommand, DeleteEventSourceMappingCommand, DeleteFunctionCommand, DeleteFunctionConcurrencyCommand, DeleteFunctionEventInvokeConfigCommand, DeleteFunctionUrlConfigCommand, DeleteLayerVersionCommand, GetEventSourceMappingCommand, GetFunctionCommand, GetFunctionConcurrencyCommand, GetFunctionEventInvokeConfigCommand, GetFunctionRecursionConfigCommand, GetFunctionUrlConfigCommand, GetLayerVersionByArnCommand, GetPolicyCommand as GetPolicyCommand$1, LambdaClient, ListTagsCommand, PublishLayerVersionCommand, PutFunctionConcurrencyCommand, PutFunctionEventInvokeConfigCommand, PutFunctionRecursionConfigCommand, RemovePermissionCommand, ResourceNotFoundException, TagResourceCommand as TagResourceCommand$1, UntagResourceCommand as UntagResourceCommand$1, UpdateEventSourceMappingCommand, UpdateFunctionCodeCommand, UpdateFunctionConfigurationCommand, UpdateFunctionUrlConfigCommand, waitUntilFunctionUpdatedV2 } from "@aws-sdk/client-lambda";
|
|
12
12
|
import { AssumeRoleCommand, GetCallerIdentityCommand, STSClient } from "@aws-sdk/client-sts";
|
|
13
13
|
import { AllocateAddressCommand, AssociateAddressCommand, AssociateIamInstanceProfileCommand, AssociateRouteTableCommand, AttachInternetGatewayCommand, AuthorizeSecurityGroupEgressCommand, AuthorizeSecurityGroupIngressCommand, CreateInternetGatewayCommand, CreateNatGatewayCommand, CreateNetworkAclCommand, CreateNetworkAclEntryCommand, CreateRouteCommand, CreateRouteTableCommand, CreateSecurityGroupCommand, CreateSubnetCommand, CreateTagsCommand, CreateVpcCommand, DeleteInternetGatewayCommand, DeleteNatGatewayCommand, DeleteNetworkAclCommand, DeleteNetworkAclEntryCommand, DeleteNetworkInterfaceCommand, DeleteRouteCommand, DeleteRouteTableCommand, DeleteSecurityGroupCommand, DeleteSubnetCommand, DeleteTagsCommand, DeleteVpcCommand, DescribeAddressesCommand, DescribeAvailabilityZonesCommand, DescribeIamInstanceProfileAssociationsCommand, DescribeInstanceAttributeCommand, DescribeInstanceCreditSpecificationsCommand, DescribeInstancesCommand, DescribeInternetGatewaysCommand, DescribeNatGatewaysCommand, DescribeNetworkAclsCommand, DescribeNetworkInterfacesCommand, DescribeRouteTablesCommand, DescribeSecurityGroupsCommand, DescribeSubnetsCommand, DescribeVolumesCommand, DescribeVpcAttributeCommand, DescribeVpcsCommand, DetachInternetGatewayCommand, DisassociateAddressCommand, DisassociateRouteTableCommand, EC2Client, ModifyInstanceAttributeCommand, ModifyInstanceCreditSpecificationCommand, ModifyInstanceMetadataOptionsCommand, ModifySubnetAttributeCommand, ModifyVpcAttributeCommand, MonitorInstancesCommand, ReleaseAddressCommand, ReplaceNetworkAclAssociationCommand, RevokeSecurityGroupEgressCommand, RevokeSecurityGroupIngressCommand, RunInstancesCommand, TerminateInstancesCommand, UnmonitorInstancesCommand, waitUntilInstanceRunning, waitUntilInstanceTerminated, waitUntilNatGatewayAvailable, waitUntilNatGatewayDeleted } from "@aws-sdk/client-ec2";
|
|
@@ -7709,6 +7709,10 @@ var SNSSubscriptionProvider = class {
|
|
|
7709
7709
|
*/
|
|
7710
7710
|
async delete(logicalId, physicalId, resourceType, _properties, context) {
|
|
7711
7711
|
this.logger.debug(`Deleting SNS subscription ${logicalId}: ${physicalId}`);
|
|
7712
|
+
if (physicalId === "PendingConfirmation" || physicalId === "pending confirmation") {
|
|
7713
|
+
this.logPendingConfirmationSkip(logicalId, physicalId);
|
|
7714
|
+
return;
|
|
7715
|
+
}
|
|
7712
7716
|
try {
|
|
7713
7717
|
await this.snsClient.send(new UnsubscribeCommand({ SubscriptionArn: physicalId }));
|
|
7714
7718
|
this.logger.debug(`Successfully deleted SNS subscription ${logicalId}`);
|
|
@@ -7718,11 +7722,21 @@ var SNSSubscriptionProvider = class {
|
|
|
7718
7722
|
this.logger.debug(`Subscription ${physicalId} does not exist, skipping deletion`);
|
|
7719
7723
|
return;
|
|
7720
7724
|
}
|
|
7725
|
+
if (isPendingConfirmationError(error)) {
|
|
7726
|
+
this.logPendingConfirmationSkip(logicalId, physicalId);
|
|
7727
|
+
return;
|
|
7728
|
+
}
|
|
7721
7729
|
const cause = error instanceof Error ? error : void 0;
|
|
7722
7730
|
throw new ProvisioningError(`Failed to delete SNS subscription ${logicalId}: ${error instanceof Error ? error.message : String(error)}`, resourceType, logicalId, physicalId, cause);
|
|
7723
7731
|
}
|
|
7724
7732
|
}
|
|
7725
7733
|
/**
|
|
7734
|
+
* Log the CFn-parity skip for a pending-confirmation subscription delete.
|
|
7735
|
+
*/
|
|
7736
|
+
logPendingConfirmationSkip(logicalId, physicalId) {
|
|
7737
|
+
this.logger.warn(`SNS subscription ${logicalId} (${physicalId}) is pending confirmation and cannot be unsubscribed; skipping deletion to match CloudFormation behavior (the pending record expires automatically within 3 days)`);
|
|
7738
|
+
}
|
|
7739
|
+
/**
|
|
7726
7740
|
* Read the AWS-current SNS Subscription configuration in CFn-property shape.
|
|
7727
7741
|
*
|
|
7728
7742
|
* Issues `GetSubscriptionAttributes`. AWS returns ALL attribute values
|
|
@@ -7736,6 +7750,7 @@ var SNSSubscriptionProvider = class {
|
|
|
7736
7750
|
* `SubscriptionArn` has not yet been confirmed and `Attributes` is null.
|
|
7737
7751
|
*/
|
|
7738
7752
|
async readCurrentState(physicalId, _logicalId, _resourceType) {
|
|
7753
|
+
if (physicalId === "PendingConfirmation" || physicalId === "pending confirmation") return;
|
|
7739
7754
|
let attributes;
|
|
7740
7755
|
try {
|
|
7741
7756
|
attributes = (await this.snsClient.send(new GetSubscriptionAttributesCommand({ SubscriptionArn: physicalId }))).Attributes;
|
|
@@ -7790,6 +7805,14 @@ var SNSSubscriptionProvider = class {
|
|
|
7790
7805
|
return null;
|
|
7791
7806
|
}
|
|
7792
7807
|
};
|
|
7808
|
+
/**
|
|
7809
|
+
* SNS rejects `Unsubscribe` for any subscription still in PendingConfirmation
|
|
7810
|
+
* with `InvalidParameterException: Invalid parameter: SubscriptionArn Reason:
|
|
7811
|
+
* Cannot unsubscribe a subscription that is pending confirmation`.
|
|
7812
|
+
*/
|
|
7813
|
+
function isPendingConfirmationError(error) {
|
|
7814
|
+
return error instanceof InvalidParameterException && error.message.toLowerCase().includes("pending confirmation");
|
|
7815
|
+
}
|
|
7793
7816
|
|
|
7794
7817
|
//#endregion
|
|
7795
7818
|
//#region src/provisioning/providers/sns-topic-policy-provider.ts
|
|
@@ -22217,6 +22240,32 @@ function wasMeaningfullyConfigured(value, discriminatorKey) {
|
|
|
22217
22240
|
return value[discriminatorKey] !== void 0;
|
|
22218
22241
|
}
|
|
22219
22242
|
|
|
22243
|
+
//#endregion
|
|
22244
|
+
//#region src/provisioning/resource-timeout-registry.ts
|
|
22245
|
+
let resolved;
|
|
22246
|
+
/**
|
|
22247
|
+
* Seed the registry with the validated `--resource-timeout` input. Call once
|
|
22248
|
+
* per CLI invocation, right after `validateResourceTimeouts`. Passing
|
|
22249
|
+
* `undefined` (flag not supplied) clears the registry, so consumers fall back
|
|
22250
|
+
* to their own compile-time floors.
|
|
22251
|
+
*/
|
|
22252
|
+
function setResolvedResourceTimeouts(opt) {
|
|
22253
|
+
resolved = opt;
|
|
22254
|
+
}
|
|
22255
|
+
/**
|
|
22256
|
+
* The user's resolved timeout for `resourceType` in milliseconds, or
|
|
22257
|
+
* `undefined` when the user supplied nothing applicable. Resolution matches
|
|
22258
|
+
* the outer-deadline sites: per-type override wins, else the explicit global
|
|
22259
|
+
* value. The compile-time default (`DEFAULT_RESOURCE_TIMEOUT_MS`) is
|
|
22260
|
+
* deliberately NOT applied here — an inner waiter's own floor (e.g. ECS 600s)
|
|
22261
|
+
* must only be raised by an EXPLICIT user value, never by the generic 30m
|
|
22262
|
+
* default silently multiplying every `--full-wait` failure by 3x.
|
|
22263
|
+
*/
|
|
22264
|
+
function resolvedResourceTimeoutMs(resourceType) {
|
|
22265
|
+
if (!resolved) return void 0;
|
|
22266
|
+
return resolved.perTypeMs?.[resourceType] ?? resolved.globalMs;
|
|
22267
|
+
}
|
|
22268
|
+
|
|
22220
22269
|
//#endregion
|
|
22221
22270
|
//#region src/provisioning/providers/ecs-provider.ts
|
|
22222
22271
|
/**
|
|
@@ -22599,9 +22648,10 @@ var ECSProvider = class {
|
|
|
22599
22648
|
async settleService(logicalId, serviceRef, cluster) {
|
|
22600
22649
|
if (process.env["CDKD_FULL_WAIT"] === "true") {
|
|
22601
22650
|
this.logger.debug(`Waiting for ECS service ${logicalId} to reach steady state...`);
|
|
22651
|
+
const maxWaitTime = Math.max(600, (resolvedResourceTimeoutMs("AWS::ECS::Service") ?? 0) / 1e3);
|
|
22602
22652
|
await waitUntilServicesStable({
|
|
22603
22653
|
client: this.getClient(),
|
|
22604
|
-
maxWaitTime
|
|
22654
|
+
maxWaitTime,
|
|
22605
22655
|
minDelay: 5,
|
|
22606
22656
|
maxDelay: 10
|
|
22607
22657
|
}, {
|
|
@@ -43159,6 +43209,7 @@ async function deployCommand(stacks, options) {
|
|
|
43159
43209
|
}
|
|
43160
43210
|
warnIfDeprecatedRegion(options);
|
|
43161
43211
|
validateResourceTimeouts(options);
|
|
43212
|
+
setResolvedResourceTimeouts(options.resourceTimeout);
|
|
43162
43213
|
applyWaitFlagEnv(options);
|
|
43163
43214
|
await applyRoleArnIfSet({
|
|
43164
43215
|
roleArn: options.roleArn,
|
|
@@ -46141,6 +46192,7 @@ async function destroyCommand(stackArgs, options) {
|
|
|
46141
46192
|
}
|
|
46142
46193
|
warnIfDeprecatedRegion(options);
|
|
46143
46194
|
validateResourceTimeouts(options);
|
|
46195
|
+
setResolvedResourceTimeouts(options.resourceTimeout);
|
|
46144
46196
|
await applyRoleArnIfSet({
|
|
46145
46197
|
roleArn: options.roleArn,
|
|
46146
46198
|
region: options.region
|
|
@@ -49718,6 +49770,7 @@ async function stateDestroyCommand(stackArgs, options) {
|
|
|
49718
49770
|
process.env["CDKD_NO_LIVE"] = "1";
|
|
49719
49771
|
}
|
|
49720
49772
|
validateResourceTimeouts(options);
|
|
49773
|
+
setResolvedResourceTimeouts(options.resourceTimeout);
|
|
49721
49774
|
if (!options.all && stackArgs.length === 0) throw new Error("Stack name is required. Usage: cdkd state destroy <stack> [<stack>...] | --all");
|
|
49722
49775
|
const setup = await setupStateBackend(options);
|
|
49723
49776
|
const providerRegistry = new ProviderRegistry();
|
|
@@ -62817,7 +62870,7 @@ function createMigrateCommand() {
|
|
|
62817
62870
|
*/
|
|
62818
62871
|
function buildProgram() {
|
|
62819
62872
|
const program = new Command();
|
|
62820
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
62873
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.269.1");
|
|
62821
62874
|
program.hook("preAction", (_thisCommand, actionCommand) => {
|
|
62822
62875
|
const { profile } = actionCommand.optsWithGlobals();
|
|
62823
62876
|
if (profile !== void 0) process.env["AWS_PROFILE"] = profile;
|