cdk-real-drift 0.12.71 → 0.12.72

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
@@ -3306,7 +3306,6 @@ const EB_OPTION_VALUE_INDEPENDENT = new Set([
3306
3306
  "aws:cloudformation:template:parameter|HooksPkgUrl",
3307
3307
  "aws:cloudformation:template:parameter|InstanceTypeFamily",
3308
3308
  "aws:cloudformation:template:parameter|EnvironmentVariables",
3309
- "aws:ec2:instances|InstanceTypes",
3310
3309
  "aws:ec2:instances|SupportedArchitectures",
3311
3310
  "aws:elasticbeanstalk:application:environment|PYTHONPATH",
3312
3311
  "aws:elasticbeanstalk:healthreporting:system|ConfigDocument",
@@ -3322,6 +3321,14 @@ function isAllEbGeneratedGroups(value) {
3322
3321
  if (typeof value !== "string" || value === "") return false;
3323
3322
  return value.split(",").every((el) => isEbGeneratedGroup(el));
3324
3323
  }
3324
+ const EB_INSTANCE_TYPES_DEFAULT_BY_ARCH = {
3325
+ x86_64: new Set(["t3.micro", "t3.small"]),
3326
+ arm64: new Set(["t4g.micro", "t4g.small"])
3327
+ };
3328
+ function ebInstanceTypesDefaultSet(supportedArchitectures) {
3329
+ const arch = typeof supportedArchitectures === "string" && supportedArchitectures.trim() !== "" ? supportedArchitectures.split(",")[0]?.trim() : "x86_64";
3330
+ return arch === void 0 ? EB_INSTANCE_TYPES_DEFAULT_BY_ARCH.x86_64 : EB_INSTANCE_TYPES_DEFAULT_BY_ARCH[arch];
3331
+ }
3325
3332
  function ebOptionSettingTier(namespace, optionName, value, envType, siblingOption) {
3326
3333
  if (value == null || value === "") return "atDefault";
3327
3334
  const key = `${String(namespace)}|${String(optionName)}`;
@@ -3332,6 +3339,13 @@ function ebOptionSettingTier(namespace, optionName, value, envType, siblingOptio
3332
3339
  if (first !== void 0) return first === value ? "atDefault" : "undeclared";
3333
3340
  return "atDefault";
3334
3341
  }
3342
+ if (key === "aws:ec2:instances|InstanceTypes") {
3343
+ const defaults = ebInstanceTypesDefaultSet(siblingOption?.("aws:ec2:instances", "SupportedArchitectures"));
3344
+ if (defaults === void 0) return "atDefault";
3345
+ const types = String(value).split(",").map((t) => t.trim()).filter((t) => t !== "");
3346
+ if (types.length === 0) return "atDefault";
3347
+ return types.every((t) => defaults.has(t)) ? "atDefault" : "undeclared";
3348
+ }
3335
3349
  if (EB_OPTION_VALUE_INDEPENDENT.has(key)) return "atDefault";
3336
3350
  const derived = EB_OPTION_DERIVED[key];
3337
3351
  if (derived) return derived[envType] === value ? "atDefault" : "undeclared";