cdk-real-drift 0.12.87 → 0.12.88

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
@@ -2517,6 +2517,7 @@ const KNOWN_DEFAULTS = {
2517
2517
  ManageMasterUserPassword: false,
2518
2518
  MultiAZ: false,
2519
2519
  StorageEncrypted: false,
2520
+ BackupRetentionPeriod: 1,
2520
2521
  CACertificateIdentifier: "rds-ca-rsa2048-g1"
2521
2522
  },
2522
2523
  "AWS::RDS::DBCluster": {
@@ -3124,7 +3125,7 @@ const CONTEXT_ARN_DEFAULTS = {
3124
3125
  };
3125
3126
  const ENGINE_DEFAULTS = {
3126
3127
  "AWS::RDS::DBInstance": {
3127
- StorageType: (e) => e.startsWith("aurora") ? "aurora" : void 0,
3128
+ StorageType: (e) => e.startsWith("aurora") ? "aurora" : "gp2",
3128
3129
  AllocatedStorage: (e) => e.startsWith("aurora") ? 1 : void 0,
3129
3130
  Port: rdsDefaultPort,
3130
3131
  LicenseModel: rdsDefaultLicense
@@ -3367,6 +3368,7 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
3367
3368
  "AWS::ApiGateway::Authorizer": new Set(["AuthType"]),
3368
3369
  "AWS::RDS::DBCluster": new Set([
3369
3370
  "KmsKeyId",
3371
+ "EngineVersion",
3370
3372
  "PerformanceInsightsKmsKeyId",
3371
3373
  "AvailabilityZones",
3372
3374
  "PreferredMaintenanceWindow",
@@ -3375,6 +3377,7 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
3375
3377
  ]),
3376
3378
  "AWS::RDS::DBInstance": new Set([
3377
3379
  "KmsKeyId",
3380
+ "EngineVersion",
3378
3381
  "PerformanceInsightsKMSKeyId",
3379
3382
  "AvailabilityZone",
3380
3383
  "PreferredMaintenanceWindow",
@@ -3423,7 +3426,11 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
3423
3426
  "AWS::EC2::Instance": new Set([
3424
3427
  "PrivateIpAddress",
3425
3428
  "CpuOptions",
3426
- "SubnetId"
3429
+ "SubnetId",
3430
+ "AvailabilityZone",
3431
+ "SecurityGroups",
3432
+ "Volumes",
3433
+ "BlockDeviceMappings"
3427
3434
  ]),
3428
3435
  "AWS::EC2::NetworkInterface": new Set(["PrivateIpAddress", "PrivateIpAddresses"]),
3429
3436
  "AWS::EC2::Volume": new Set(["KmsKeyId", "AvailabilityZoneId"]),
@@ -7138,6 +7145,17 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
7138
7145
  });
7139
7146
  continue;
7140
7147
  }
7148
+ if (resourceType === "AWS::EC2::Instance" && k === "NetworkInterfaces" && Array.isArray(v)) {
7149
+ const allPrimary = v.every((el) => el != null && typeof el === "object" && String(el.DeviceIndex) === "0");
7150
+ findings.push({
7151
+ tier: allPrimary ? "atDefault" : "undeclared",
7152
+ logicalId,
7153
+ resourceType,
7154
+ path: k,
7155
+ actual: v
7156
+ });
7157
+ continue;
7158
+ }
7141
7159
  const ctxKind = CONTEXT_DEFAULTS[resourceType]?.[k];
7142
7160
  if (ctxKind !== void 0 && opts.region !== void 0) {
7143
7161
  if (deepEqual(v, ctxKind === "region" ? opts.region : [opts.region])) {