@go-to-k/cdkd 0.221.11 → 0.221.12

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,7 @@ 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";
28
29
  import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
29
30
 
30
31
  //#region src/utils/aws-region-resolver.ts
@@ -7550,6 +7551,28 @@ var CloudControlProvider = class {
7550
7551
  this.logger.debug(`Failed to get Lambda URL config for ${physicalId}: ${error instanceof Error ? error.message : String(error)}`);
7551
7552
  }
7552
7553
  break;
7554
+ case "AWS::ElastiCache::ReplicationGroup":
7555
+ try {
7556
+ const rg = (await new ElastiCacheClient({}).send(new DescribeReplicationGroupsCommand({ ReplicationGroupId: physicalId }))).ReplicationGroups?.[0];
7557
+ if (rg) {
7558
+ const primaryNode = rg.NodeGroups?.[0];
7559
+ if (primaryNode?.PrimaryEndpoint?.Address) enriched["PrimaryEndPoint.Address"] = primaryNode.PrimaryEndpoint.Address;
7560
+ if (primaryNode?.PrimaryEndpoint?.Port !== void 0) enriched["PrimaryEndPoint.Port"] = String(primaryNode.PrimaryEndpoint.Port);
7561
+ if (primaryNode?.ReaderEndpoint?.Address) enriched["ReaderEndPoint.Address"] = primaryNode.ReaderEndpoint.Address;
7562
+ if (primaryNode?.ReaderEndpoint?.Port !== void 0) enriched["ReaderEndPoint.Port"] = String(primaryNode.ReaderEndpoint.Port);
7563
+ if (rg.ConfigurationEndpoint?.Address) enriched["ConfigurationEndPoint.Address"] = rg.ConfigurationEndpoint.Address;
7564
+ if (rg.ConfigurationEndpoint?.Port !== void 0) enriched["ConfigurationEndPoint.Port"] = String(rg.ConfigurationEndpoint.Port);
7565
+ const readEndpoints = (rg.NodeGroups ?? []).flatMap((ng) => [ng.PrimaryEndpoint, ng.ReaderEndpoint]);
7566
+ const readAddrs = readEndpoints.map((ep) => ep?.Address).filter((a) => typeof a === "string" && a.length > 0);
7567
+ const readPorts = readEndpoints.map((ep) => ep?.Port).filter((p) => p !== void 0);
7568
+ if (readAddrs.length > 0) enriched["ReadEndPoint.Addresses"] = readAddrs.join(",");
7569
+ if (readPorts.length > 0) enriched["ReadEndPoint.Ports"] = readPorts.map(String).join(",");
7570
+ this.logger.debug(`Enriched ElastiCache ReplicationGroup ${physicalId} with endpoint attributes from DescribeReplicationGroups`);
7571
+ }
7572
+ } catch (error) {
7573
+ this.logger.debug(`Failed to enrich ElastiCache ReplicationGroup ${physicalId}: ${error instanceof Error ? error.message : String(error)}`);
7574
+ }
7575
+ break;
7553
7576
  default: break;
7554
7577
  }
7555
7578
  return enriched;
@@ -13140,4 +13163,4 @@ var DeployEngine = class {
13140
13163
 
13141
13164
  //#endregion
13142
13165
  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
13166
+ //# sourceMappingURL=deploy-engine-DZLu8l6Z.js.map