@go-to-k/cdkd 0.221.11 → 0.221.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.
@@ -25,6 +25,8 @@ import { DescribeImagesCommand as DescribeImagesCommand$1, ECRClient, GetAuthori
25
25
  import { hostname } from "os";
26
26
  import graphlib from "graphlib";
27
27
  import { DescribeDBClustersCommand, DescribeDBInstancesCommand, RDSClient } from "@aws-sdk/client-rds";
28
+ import { DescribeReplicationGroupsCommand, ElastiCacheClient } from "@aws-sdk/client-elasticache";
29
+ import { DescribeClustersCommand, RedshiftClient } from "@aws-sdk/client-redshift";
28
30
  import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
29
31
 
30
32
  //#region src/utils/aws-region-resolver.ts
@@ -7550,6 +7552,40 @@ var CloudControlProvider = class {
7550
7552
  this.logger.debug(`Failed to get Lambda URL config for ${physicalId}: ${error instanceof Error ? error.message : String(error)}`);
7551
7553
  }
7552
7554
  break;
7555
+ case "AWS::ElastiCache::ReplicationGroup":
7556
+ try {
7557
+ const rg = (await new ElastiCacheClient({}).send(new DescribeReplicationGroupsCommand({ ReplicationGroupId: physicalId }))).ReplicationGroups?.[0];
7558
+ if (rg) {
7559
+ const primaryNode = rg.NodeGroups?.[0];
7560
+ if (primaryNode?.PrimaryEndpoint?.Address) enriched["PrimaryEndPoint.Address"] = primaryNode.PrimaryEndpoint.Address;
7561
+ if (primaryNode?.PrimaryEndpoint?.Port !== void 0) enriched["PrimaryEndPoint.Port"] = String(primaryNode.PrimaryEndpoint.Port);
7562
+ if (primaryNode?.ReaderEndpoint?.Address) enriched["ReaderEndPoint.Address"] = primaryNode.ReaderEndpoint.Address;
7563
+ if (primaryNode?.ReaderEndpoint?.Port !== void 0) enriched["ReaderEndPoint.Port"] = String(primaryNode.ReaderEndpoint.Port);
7564
+ if (rg.ConfigurationEndpoint?.Address) enriched["ConfigurationEndPoint.Address"] = rg.ConfigurationEndpoint.Address;
7565
+ if (rg.ConfigurationEndpoint?.Port !== void 0) enriched["ConfigurationEndPoint.Port"] = String(rg.ConfigurationEndpoint.Port);
7566
+ const readEndpoints = (rg.NodeGroups ?? []).flatMap((ng) => [ng.PrimaryEndpoint, ng.ReaderEndpoint]);
7567
+ const readAddrs = readEndpoints.map((ep) => ep?.Address).filter((a) => typeof a === "string" && a.length > 0);
7568
+ const readPorts = readEndpoints.map((ep) => ep?.Port).filter((p) => p !== void 0);
7569
+ if (readAddrs.length > 0) enriched["ReadEndPoint.Addresses"] = readAddrs.join(",");
7570
+ if (readPorts.length > 0) enriched["ReadEndPoint.Ports"] = readPorts.map(String).join(",");
7571
+ this.logger.debug(`Enriched ElastiCache ReplicationGroup ${physicalId} with endpoint attributes from DescribeReplicationGroups`);
7572
+ }
7573
+ } catch (error) {
7574
+ this.logger.debug(`Failed to enrich ElastiCache ReplicationGroup ${physicalId}: ${error instanceof Error ? error.message : String(error)}`);
7575
+ }
7576
+ break;
7577
+ case "AWS::Redshift::Cluster":
7578
+ try {
7579
+ const cluster = (await new RedshiftClient({}).send(new DescribeClustersCommand({ ClusterIdentifier: physicalId }))).Clusters?.[0];
7580
+ if (cluster?.Endpoint) {
7581
+ if (cluster.Endpoint.Address) enriched["Endpoint.Address"] = cluster.Endpoint.Address;
7582
+ if (cluster.Endpoint.Port !== void 0) enriched["Endpoint.Port"] = String(cluster.Endpoint.Port);
7583
+ this.logger.debug(`Enriched Redshift Cluster ${physicalId} with Endpoint.Address/Port from DescribeClusters`);
7584
+ }
7585
+ } catch (error) {
7586
+ this.logger.debug(`Failed to enrich Redshift Cluster ${physicalId}: ${error instanceof Error ? error.message : String(error)}`);
7587
+ }
7588
+ break;
7553
7589
  default: break;
7554
7590
  }
7555
7591
  return enriched;
@@ -13140,4 +13176,4 @@ var DeployEngine = class {
13140
13176
 
13141
13177
  //#endregion
13142
13178
  export { AssemblyReader as $, shouldRetainResource as A, getDefaultStateBucketName as B, applyRoleArnIfSet as C, LockManager as D, TemplateParser as E, formatDockerLoginError as F, resolveStateBucketWithDefault as G, resolveApp as H, getDockerCmd as I, CFN_TEMPLATE_BODY_LIMIT as J, resolveStateBucketWithDefaultAndSource as K, runDockerForeground as L, stringifyValue as M, WorkGraph as N, S3StateBackend as O, buildDockerImage as P, uploadCfnTemplate as Q, runDockerStreaming as R, IntrinsicFunctionResolver as S, DagBuilder as T, resolveCaptureObservedState as U, getLegacyStateBucketName as V, resolveSkipPrefix as W, MIGRATE_TMP_PREFIX as X, CFN_TEMPLATE_URL_LIMIT as Y, findLargeInlineResources as Z, IAMRoleProvider as _, withRetry as a, findActionableSilentDrops as b, computeImplicitDeleteEdges as c, bold as d, clearBucketRegionCache as et, cyan as f, yellow as g, red as h, withResourceDeadline as i, AssetPublisher as j, rebuildClientForBucketRegion as k, extractDeploymentEventError as l, green as m, DEFAULT_RESOURCE_WARN_AFTER_MS as n, isRetryableTransientError as o, gray as p, warnDeprecatedNoPrefixCliFlag as q, DeployEngine as r, IMPLICIT_DELETE_DEPENDENCIES as s, DEFAULT_RESOURCE_TIMEOUT_MS as t, resolveBucketRegion as tt, formatResourceLine as u, collectInlinePolicyNamesManagedBySiblings as v, DiffCalculator as w, CloudControlProvider as x, ProviderRegistry as y, Synthesizer as z };
13143
- //# sourceMappingURL=deploy-engine-C4sRo95X.js.map
13179
+ //# sourceMappingURL=deploy-engine-By_Cayj0.js.map