cdk-real-drift 0.2.46 → 0.2.47

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/cli.js CHANGED
@@ -100,9 +100,17 @@ const NOT_FOUND_ERROR_NAMES = new Set([
100
100
  "NoSuchEntityException",
101
101
  "InvalidAllocationID.NotFound",
102
102
  "InvalidAddress.NotFound",
103
+ "InvalidLaunchTemplateId.NotFound",
104
+ "InvalidNetworkAclID.NotFound",
103
105
  "EntityNotFoundException",
104
106
  "DBClusterNotFoundFault",
105
107
  "DBInstanceNotFoundFault",
108
+ "ResourceNotFoundFault",
109
+ "ClusterNotFoundFault",
110
+ "ParameterGroupNotFoundFault",
111
+ "SubnetGroupNotFoundFault",
112
+ "CacheParameterGroupNotFoundFault",
113
+ "NoSuchHostedZone",
106
114
  "NamespaceNotFound",
107
115
  "ServiceNotFound",
108
116
  "RuleSetDoesNotExistException",
@@ -3202,11 +3210,14 @@ function buildResolverContext(template, stackParams, physIds, region, accountId,
3202
3210
  const paramDefs = template.Parameters ?? {};
3203
3211
  const isList = (k) => {
3204
3212
  const t = paramDefs[k]?.Type ?? "";
3205
- return t === "CommaDelimitedList" || t.startsWith("List<");
3213
+ return t === "CommaDelimitedList" || t.startsWith("List<") || t.includes("::Parameter::Value<List<") || t.includes("::Parameter::Value<CommaDelimitedList");
3206
3214
  };
3207
3215
  const toParam = (k, raw) => isList(k) ? raw === "" ? [] : raw.split(",").map((s) => s.trim()) : raw;
3208
3216
  const params = {};
3209
- for (const [k, def] of Object.entries(paramDefs)) if (def && "Default" in def) params[k] = toParam(k, String(def.Default));
3217
+ for (const [k, def] of Object.entries(paramDefs)) {
3218
+ if (def?.NoEcho === true || def?.NoEcho === "true") continue;
3219
+ if (def && "Default" in def) params[k] = toParam(k, String(def.Default));
3220
+ }
3210
3221
  for (const [k, v] of Object.entries(stackParams)) params[k] = toParam(k, v);
3211
3222
  const templateResources = template.Resources ?? {};
3212
3223
  const typeOf = {};
@@ -3296,6 +3307,8 @@ async function loadDesired(client, stackName, region, templateOverride, recovery
3296
3307
  stackParams[p.ParameterKey] = value;
3297
3308
  }
3298
3309
  const ctx = buildResolverContext(template, stackParams, physIds, region, accountId, stackName, stackId);
3310
+ const notificationArns = stack?.NotificationARNs ?? [];
3311
+ if (notificationArns.length > 0) ctx.params["AWS::NotificationARNs"] = notificationArns;
3299
3312
  if (JSON.stringify(template).includes("Fn::ImportValue")) ctx.exports = await listExports(client, region);
3300
3313
  const resources = [];
3301
3314
  const principalsWithSiblingPolicy = collectPrincipalsWithSiblingPolicies(template.Resources ?? {}, ctx);