@go-to-k/cdkd 0.262.1 → 0.262.3
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-D85MbFl6.js → asg-provider-CAnHrdEN.js} +2 -2
- package/dist/{asg-provider-D85MbFl6.js.map → asg-provider-CAnHrdEN.js.map} +1 -1
- package/dist/cli.js +20 -8
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-DbhK2y6L.js → deploy-engine-CtpGfN3E.js} +30 -78
- package/dist/deploy-engine-CtpGfN3E.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-DbhK2y6L.js.map +0 -1
|
@@ -615,6 +615,13 @@ var AwsClients = class {
|
|
|
615
615
|
constructor(config = {}) {
|
|
616
616
|
this.config = config;
|
|
617
617
|
}
|
|
618
|
+
get clientOptions() {
|
|
619
|
+
return {
|
|
620
|
+
...this.config.region && { region: this.config.region },
|
|
621
|
+
...this.config.profile && { profile: this.config.profile },
|
|
622
|
+
...this.config.credentials && { credentials: this.config.credentials }
|
|
623
|
+
};
|
|
624
|
+
}
|
|
618
625
|
/**
|
|
619
626
|
* Get S3 client
|
|
620
627
|
*
|
|
@@ -625,8 +632,7 @@ var AwsClients = class {
|
|
|
625
632
|
*/
|
|
626
633
|
getS3Client() {
|
|
627
634
|
if (!this.s3Client) this.s3Client = new S3Client({
|
|
628
|
-
...this.
|
|
629
|
-
...this.config.credentials && { credentials: this.config.credentials },
|
|
635
|
+
...this.clientOptions,
|
|
630
636
|
logger: {
|
|
631
637
|
debug: () => {},
|
|
632
638
|
info: () => {},
|
|
@@ -645,10 +651,7 @@ var AwsClients = class {
|
|
|
645
651
|
* 3. IAM role (if running on EC2/ECS/Lambda)
|
|
646
652
|
*/
|
|
647
653
|
getCloudControlClient() {
|
|
648
|
-
if (!this.cloudControlClient) this.cloudControlClient = new CloudControlClient({
|
|
649
|
-
...this.config.region && { region: this.config.region },
|
|
650
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
651
|
-
});
|
|
654
|
+
if (!this.cloudControlClient) this.cloudControlClient = new CloudControlClient({ ...this.clientOptions });
|
|
652
655
|
return this.cloudControlClient;
|
|
653
656
|
}
|
|
654
657
|
/**
|
|
@@ -659,8 +662,8 @@ var AwsClients = class {
|
|
|
659
662
|
*/
|
|
660
663
|
getIAMClient() {
|
|
661
664
|
if (!this.iamClient) this.iamClient = new IAMClient({
|
|
662
|
-
|
|
663
|
-
|
|
665
|
+
...this.clientOptions,
|
|
666
|
+
region: this.config.region || "us-east-1"
|
|
664
667
|
});
|
|
665
668
|
return this.iamClient;
|
|
666
669
|
}
|
|
@@ -686,10 +689,7 @@ var AwsClients = class {
|
|
|
686
689
|
* Get SQS client
|
|
687
690
|
*/
|
|
688
691
|
getSQSClient() {
|
|
689
|
-
if (!this.sqsClient) this.sqsClient = new SQSClient({
|
|
690
|
-
...this.config.region && { region: this.config.region },
|
|
691
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
692
|
-
});
|
|
692
|
+
if (!this.sqsClient) this.sqsClient = new SQSClient({ ...this.clientOptions });
|
|
693
693
|
return this.sqsClient;
|
|
694
694
|
}
|
|
695
695
|
/**
|
|
@@ -702,10 +702,7 @@ var AwsClients = class {
|
|
|
702
702
|
* Get SNS client
|
|
703
703
|
*/
|
|
704
704
|
getSNSClient() {
|
|
705
|
-
if (!this.snsClient) this.snsClient = new SNSClient({
|
|
706
|
-
...this.config.region && { region: this.config.region },
|
|
707
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
708
|
-
});
|
|
705
|
+
if (!this.snsClient) this.snsClient = new SNSClient({ ...this.clientOptions });
|
|
709
706
|
return this.snsClient;
|
|
710
707
|
}
|
|
711
708
|
/**
|
|
@@ -718,10 +715,7 @@ var AwsClients = class {
|
|
|
718
715
|
* Get Lambda client
|
|
719
716
|
*/
|
|
720
717
|
getLambdaClient() {
|
|
721
|
-
if (!this.lambdaClient) this.lambdaClient = new LambdaClient({
|
|
722
|
-
...this.config.region && { region: this.config.region },
|
|
723
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
724
|
-
});
|
|
718
|
+
if (!this.lambdaClient) this.lambdaClient = new LambdaClient({ ...this.clientOptions });
|
|
725
719
|
return this.lambdaClient;
|
|
726
720
|
}
|
|
727
721
|
/**
|
|
@@ -734,10 +728,7 @@ var AwsClients = class {
|
|
|
734
728
|
* Get EC2 client
|
|
735
729
|
*/
|
|
736
730
|
getEC2Client() {
|
|
737
|
-
if (!this.ec2Client) this.ec2Client = new EC2Client({
|
|
738
|
-
...this.config.region && { region: this.config.region },
|
|
739
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
740
|
-
});
|
|
731
|
+
if (!this.ec2Client) this.ec2Client = new EC2Client({ ...this.clientOptions });
|
|
741
732
|
return this.ec2Client;
|
|
742
733
|
}
|
|
743
734
|
/**
|
|
@@ -750,10 +741,7 @@ var AwsClients = class {
|
|
|
750
741
|
* Get STS client
|
|
751
742
|
*/
|
|
752
743
|
getSTSClient() {
|
|
753
|
-
if (!this.stsClient) this.stsClient = new STSClient({
|
|
754
|
-
...this.config.region && { region: this.config.region },
|
|
755
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
756
|
-
});
|
|
744
|
+
if (!this.stsClient) this.stsClient = new STSClient({ ...this.clientOptions });
|
|
757
745
|
return this.stsClient;
|
|
758
746
|
}
|
|
759
747
|
/**
|
|
@@ -766,10 +754,7 @@ var AwsClients = class {
|
|
|
766
754
|
* Get DynamoDB client
|
|
767
755
|
*/
|
|
768
756
|
getDynamoDBClient() {
|
|
769
|
-
if (!this.dynamoDBClient) this.dynamoDBClient = new DynamoDBClient({
|
|
770
|
-
...this.config.region && { region: this.config.region },
|
|
771
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
772
|
-
});
|
|
757
|
+
if (!this.dynamoDBClient) this.dynamoDBClient = new DynamoDBClient({ ...this.clientOptions });
|
|
773
758
|
return this.dynamoDBClient;
|
|
774
759
|
}
|
|
775
760
|
/**
|
|
@@ -782,10 +767,7 @@ var AwsClients = class {
|
|
|
782
767
|
* Get CloudFormation client
|
|
783
768
|
*/
|
|
784
769
|
getCloudFormationClient() {
|
|
785
|
-
if (!this.cloudFormationClient) this.cloudFormationClient = new CloudFormationClient({
|
|
786
|
-
...this.config.region && { region: this.config.region },
|
|
787
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
788
|
-
});
|
|
770
|
+
if (!this.cloudFormationClient) this.cloudFormationClient = new CloudFormationClient({ ...this.clientOptions });
|
|
789
771
|
return this.cloudFormationClient;
|
|
790
772
|
}
|
|
791
773
|
/**
|
|
@@ -798,10 +780,7 @@ var AwsClients = class {
|
|
|
798
780
|
* Get API Gateway client
|
|
799
781
|
*/
|
|
800
782
|
getAPIGatewayClient() {
|
|
801
|
-
if (!this.apiGatewayClient) this.apiGatewayClient = new APIGatewayClient({
|
|
802
|
-
...this.config.region && { region: this.config.region },
|
|
803
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
804
|
-
});
|
|
783
|
+
if (!this.apiGatewayClient) this.apiGatewayClient = new APIGatewayClient({ ...this.clientOptions });
|
|
805
784
|
return this.apiGatewayClient;
|
|
806
785
|
}
|
|
807
786
|
/**
|
|
@@ -814,10 +793,7 @@ var AwsClients = class {
|
|
|
814
793
|
* Get EventBridge client
|
|
815
794
|
*/
|
|
816
795
|
getEventBridgeClient() {
|
|
817
|
-
if (!this.eventBridgeClient) this.eventBridgeClient = new EventBridgeClient({
|
|
818
|
-
...this.config.region && { region: this.config.region },
|
|
819
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
820
|
-
});
|
|
796
|
+
if (!this.eventBridgeClient) this.eventBridgeClient = new EventBridgeClient({ ...this.clientOptions });
|
|
821
797
|
return this.eventBridgeClient;
|
|
822
798
|
}
|
|
823
799
|
/**
|
|
@@ -830,10 +806,7 @@ var AwsClients = class {
|
|
|
830
806
|
* Get Secrets Manager client
|
|
831
807
|
*/
|
|
832
808
|
getSecretsManagerClient() {
|
|
833
|
-
if (!this.secretsManagerClient) this.secretsManagerClient = new SecretsManagerClient({
|
|
834
|
-
...this.config.region && { region: this.config.region },
|
|
835
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
836
|
-
});
|
|
809
|
+
if (!this.secretsManagerClient) this.secretsManagerClient = new SecretsManagerClient({ ...this.clientOptions });
|
|
837
810
|
return this.secretsManagerClient;
|
|
838
811
|
}
|
|
839
812
|
/**
|
|
@@ -846,10 +819,7 @@ var AwsClients = class {
|
|
|
846
819
|
* Get SSM client
|
|
847
820
|
*/
|
|
848
821
|
getSSMClient() {
|
|
849
|
-
if (!this.ssmClient) this.ssmClient = new SSMClient({
|
|
850
|
-
...this.config.region && { region: this.config.region },
|
|
851
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
852
|
-
});
|
|
822
|
+
if (!this.ssmClient) this.ssmClient = new SSMClient({ ...this.clientOptions });
|
|
853
823
|
return this.ssmClient;
|
|
854
824
|
}
|
|
855
825
|
/**
|
|
@@ -862,10 +832,7 @@ var AwsClients = class {
|
|
|
862
832
|
* Get CloudFront client
|
|
863
833
|
*/
|
|
864
834
|
getCloudFrontClient() {
|
|
865
|
-
if (!this.cloudFrontClient) this.cloudFrontClient = new CloudFrontClient({
|
|
866
|
-
...this.config.region && { region: this.config.region },
|
|
867
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
868
|
-
});
|
|
835
|
+
if (!this.cloudFrontClient) this.cloudFrontClient = new CloudFrontClient({ ...this.clientOptions });
|
|
869
836
|
return this.cloudFrontClient;
|
|
870
837
|
}
|
|
871
838
|
/**
|
|
@@ -882,10 +849,7 @@ var AwsClients = class {
|
|
|
882
849
|
* users must place their certificate stack in `us-east-1`.
|
|
883
850
|
*/
|
|
884
851
|
getACMClient() {
|
|
885
|
-
if (!this.acmClient) this.acmClient = new ACMClient({
|
|
886
|
-
...this.config.region && { region: this.config.region },
|
|
887
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
888
|
-
});
|
|
852
|
+
if (!this.acmClient) this.acmClient = new ACMClient({ ...this.clientOptions });
|
|
889
853
|
return this.acmClient;
|
|
890
854
|
}
|
|
891
855
|
/**
|
|
@@ -904,10 +868,7 @@ var AwsClients = class {
|
|
|
904
868
|
* in the same region.
|
|
905
869
|
*/
|
|
906
870
|
getLambdaMicrovmsClient() {
|
|
907
|
-
if (!this.lambdaMicrovmsClient) this.lambdaMicrovmsClient = new LambdaMicrovmsClient({
|
|
908
|
-
...this.config.region && { region: this.config.region },
|
|
909
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
910
|
-
});
|
|
871
|
+
if (!this.lambdaMicrovmsClient) this.lambdaMicrovmsClient = new LambdaMicrovmsClient({ ...this.clientOptions });
|
|
911
872
|
return this.lambdaMicrovmsClient;
|
|
912
873
|
}
|
|
913
874
|
/**
|
|
@@ -920,10 +881,7 @@ var AwsClients = class {
|
|
|
920
881
|
* Get CloudWatch client
|
|
921
882
|
*/
|
|
922
883
|
getCloudWatchClient() {
|
|
923
|
-
if (!this.cloudWatchClient) this.cloudWatchClient = new CloudWatchClient({
|
|
924
|
-
...this.config.region && { region: this.config.region },
|
|
925
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
926
|
-
});
|
|
884
|
+
if (!this.cloudWatchClient) this.cloudWatchClient = new CloudWatchClient({ ...this.clientOptions });
|
|
927
885
|
return this.cloudWatchClient;
|
|
928
886
|
}
|
|
929
887
|
/**
|
|
@@ -936,10 +894,7 @@ var AwsClients = class {
|
|
|
936
894
|
* Get CloudWatch Logs client
|
|
937
895
|
*/
|
|
938
896
|
getCloudWatchLogsClient() {
|
|
939
|
-
if (!this.cloudWatchLogsClient) this.cloudWatchLogsClient = new CloudWatchLogsClient({
|
|
940
|
-
...this.config.region && { region: this.config.region },
|
|
941
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
942
|
-
});
|
|
897
|
+
if (!this.cloudWatchLogsClient) this.cloudWatchLogsClient = new CloudWatchLogsClient({ ...this.clientOptions });
|
|
943
898
|
return this.cloudWatchLogsClient;
|
|
944
899
|
}
|
|
945
900
|
/**
|
|
@@ -952,10 +907,7 @@ var AwsClients = class {
|
|
|
952
907
|
* Get BedrockAgentCoreControl client
|
|
953
908
|
*/
|
|
954
909
|
getBedrockAgentCoreControlClient() {
|
|
955
|
-
if (!this.bedrockAgentCoreControlClient) this.bedrockAgentCoreControlClient = new BedrockAgentCoreControlClient({
|
|
956
|
-
...this.config.region && { region: this.config.region },
|
|
957
|
-
...this.config.credentials && { credentials: this.config.credentials }
|
|
958
|
-
});
|
|
910
|
+
if (!this.bedrockAgentCoreControlClient) this.bedrockAgentCoreControlClient = new BedrockAgentCoreControlClient({ ...this.clientOptions });
|
|
959
911
|
return this.bedrockAgentCoreControlClient;
|
|
960
912
|
}
|
|
961
913
|
/**
|
|
@@ -11169,7 +11121,7 @@ var CloudControlProvider = class {
|
|
|
11169
11121
|
this.logger.debug(`Deleting resource ${logicalId} (${resourceType}), physical ID: ${physicalId}`);
|
|
11170
11122
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
11171
11123
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
11172
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
11124
|
+
const { ASGProvider } = await import("./asg-provider-CAnHrdEN.js").then((n) => n.n);
|
|
11173
11125
|
await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
11174
11126
|
return;
|
|
11175
11127
|
}
|
|
@@ -17910,4 +17862,4 @@ var DeployEngine = class {
|
|
|
17910
17862
|
|
|
17911
17863
|
//#endregion
|
|
17912
17864
|
export { getBootstrapMarkerKey as $, formatError as $t, refStateLookupFromResource as A, resolveBucketRegion as At, S3StateBackend as B, LocalMigrateError as Bt, findActionableSilentDrops as C, CFN_TEMPLATE_URL_LIMIT as Ct, isTerminationProtectionPropagationError as D, expectedOwnerParam as Dt, disableInstanceApiTermination as E, uploadCfnTemplate as Et, applyRoleArnIfSet as F, AssetError as Ft, WorkGraph as G, PartialFailureError as Gt, shouldRetainResource as H, LockError as Ht, DiffCalculator as I, CdkdError as It, loadPublishableAssetManifest as J, ResourceUpdateNotSupportedError as Jt, buildAssetRedirectMap as K, ProvisioningError as Kt, DagBuilder as L, ConfigError as Lt, normalizeAwsTagsToCfn as M, getAwsClients as Mt, resolveExplicitPhysicalId as N, resetAwsClients as Nt, IntrinsicFunctionResolver as O, AssemblyReader as Ot, assertRegionMatch as P, setAwsClients as Pt, ensureAssetStorage as Q, SynthesisError as Qt, TemplateParser as R, DependencyError as Rt, ProviderRegistry as S, CFN_TEMPLATE_BODY_LIMIT as St, slowCcOperationTimeoutMs as T, findLargeInlineResources as Tt, AssetPublisher as U, MissingCdkCliError as Ut, rebuildClientForBucketRegion as V, LocalStartServiceError as Vt, stringifyValue as W, NestedStackChildDirectDestroyError as Wt, AssetModeResolver as X, StackTerminationProtectionError as Xt, rewriteTemplateAssetReferences as Y, StackHasActiveImportsError as Yt, BOOTSTRAP_MARKER_PREFIX as Z, StateError as Zt, green as _, resolveSkipPrefix as _t, withRetry as a, getDockerCmd as at, IAMRoleProvider as b, resolveUseCdkBootstrapAssets as bt, computeImplicitDeleteEdges as c, AssetManifestLoader as ct, isStatefulRecreateTargetSync as d, synthesisStatusMessage as dt, isCdkdError as en, parseBootstrapMarker as et, renderStatefulReason as f, getDefaultStateBucketName as ft, gray as g, resolveCaptureObservedState as gt, cyan as h, resolveAutoAssetStorage as ht, withResourceDeadline as i, formatDockerLoginError as it, WAFv2WebACLProvider as j, AwsClients as jt, cfnRefValueFromPhysicalId as k, clearBucketRegionCache as kt, extractDeploymentEventError as l, getDockerImageBySourceHash as lt, bold as m, resolveApp as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, withErrorHandling as nn, validateContainerRepoName as nt, isRetryableTransientError as o, runDockerForeground as ot, formatResourceLine as p, getLegacyStateBucketName as pt, createAssetRedirectResolver as q, ResourceTimeoutError as qt, DeployEngine as r, __exportAll as rn, buildDockerImage as rt, IMPLICIT_DELETE_DEPENDENCIES as s, runDockerStreaming as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, normalizeAwsError as tn, validateAssetBucketName as tt, MULTI_REGION_RECREATE_BLOCKED_TYPES as u, Synthesizer as ut, red as v, resolveStateBucketWithDefault as vt, CloudControlProvider as w, MIGRATE_TMP_PREFIX as wt, collectInlinePolicyNamesManagedBySiblings as x, warnDeprecatedNoPrefixCliFlag as xt, yellow as y, resolveStateBucketWithDefaultAndSource as yt, LockManager as z, LocalInvokeBuildError as zt };
|
|
17913
|
-
//# sourceMappingURL=deploy-engine-
|
|
17865
|
+
//# sourceMappingURL=deploy-engine-CtpGfN3E.js.map
|