cdk-real-drift 0.12.81 → 0.12.83

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
@@ -2263,7 +2263,8 @@ const KNOWN_DEFAULTS = {
2263
2263
  UnhealthyThresholdCount: 2,
2264
2264
  ProtocolVersion: "HTTP1",
2265
2265
  IpAddressType: "ipv4",
2266
- Matcher: { HttpCode: "200" }
2266
+ Matcher: { HttpCode: "200" },
2267
+ TargetType: "instance"
2267
2268
  },
2268
2269
  "AWS::ElasticLoadBalancingV2::LoadBalancer": {
2269
2270
  IpAddressType: "ipv4",
@@ -3581,6 +3582,7 @@ const ELB_ATTRIBUTE_DEFAULTS = {
3581
3582
  "load_balancing.algorithm.type": "round_robin",
3582
3583
  "load_balancing.cross_zone.enabled": "use_load_balancer_configuration",
3583
3584
  "slow_start.duration_seconds": "0",
3585
+ "stickiness.enabled": "false",
3584
3586
  "stickiness.app_cookie.duration_seconds": "86400",
3585
3587
  "stickiness.lb_cookie.duration_seconds": "86400",
3586
3588
  "stickiness.type": "lb_cookie",
@@ -3653,6 +3655,17 @@ const CASE_INSENSITIVE_PATHS = {
3653
3655
  "AWS::EMRServerless::Application": new Set(["Type"]),
3654
3656
  "AWS::RDS::DBInstance": new Set(["DBInstanceIdentifier"]),
3655
3657
  "AWS::RDS::DBCluster": new Set(["DBClusterIdentifier"]),
3658
+ "AWS::ElastiCache::SubnetGroup": new Set(["CacheSubnetGroupName"]),
3659
+ "AWS::ElastiCache::ReplicationGroup": new Set(["ReplicationGroupId"]),
3660
+ "AWS::ElastiCache::CacheCluster": new Set(["ClusterName"]),
3661
+ "AWS::DocDB::DBCluster": new Set(["DBClusterIdentifier"]),
3662
+ "AWS::DocDB::DBInstance": new Set(["DBInstanceIdentifier"]),
3663
+ "AWS::DocDB::DBSubnetGroup": new Set(["DBSubnetGroupName"]),
3664
+ "AWS::Neptune::DBCluster": new Set(["DBClusterIdentifier"]),
3665
+ "AWS::Neptune::DBInstance": new Set(["DBInstanceIdentifier"]),
3666
+ "AWS::Neptune::DBSubnetGroup": new Set(["DBSubnetGroupName"]),
3667
+ "AWS::DMS::ReplicationInstance": new Set(["ReplicationInstanceIdentifier"]),
3668
+ "AWS::DMS::ReplicationSubnetGroup": new Set(["ReplicationSubnetGroupIdentifier"]),
3656
3669
  "AWS::DMS::Endpoint": new Set(["EndpointType"]),
3657
3670
  "AWS::WAFv2::LoggingConfiguration": new Set(["RedactedFields.*.SingleHeader.Name"]),
3658
3671
  "AWS::ElasticLoadBalancing::LoadBalancer": new Set(["Listeners.*.Protocol", "Listeners.*.InstanceProtocol"]),
@@ -6340,6 +6353,14 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
6340
6353
  const sfnDefinitionSubstitutions = resourceType === "AWS::StepFunctions::StateMachine" && isNestedObject(declared["DefinitionSubstitutions"]) ? declared["DefinitionSubstitutions"] : void 0;
6341
6354
  deepStripPaths(declared, schema.writeOnlyPaths);
6342
6355
  if (sfnDefinitionSubstitutions !== void 0 && typeof declared["DefinitionString"] === "string") declared["DefinitionString"] = applyDefinitionSubstitutions(declared["DefinitionString"], sfnDefinitionSubstitutions);
6356
+ if (resourceType === "AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation" && typeof physicalId === "string") {
6357
+ const [appArn, attrArn] = physicalId.split("|");
6358
+ const derivedIds = {
6359
+ Application: appArn?.split("/").pop(),
6360
+ AttributeGroup: attrArn?.split("/").pop()
6361
+ };
6362
+ for (const [key, id] of Object.entries(derivedIds)) if (id && typeof declared[key] === "string" && declared[key] !== id && live[key] === id) declared[key] = id;
6363
+ }
6343
6364
  const sibling = resource.siblingPolicyNames;
6344
6365
  if (sibling !== void 0 && sibling !== "unresolved" && Array.isArray(live.Policies)) {
6345
6366
  const names = new Set(sibling);
@@ -7093,6 +7114,16 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
7093
7114
  });
7094
7115
  continue;
7095
7116
  }
7117
+ if (resourceType === "AWS::EC2::Subnet" && (k === "AvailabilityZone" || k === "AvailabilityZoneId") && !("AvailabilityZone" in declared) && !("AvailabilityZoneId" in declared)) {
7118
+ findings.push({
7119
+ tier: "atDefault",
7120
+ logicalId,
7121
+ resourceType,
7122
+ path: k,
7123
+ actual: v
7124
+ });
7125
+ continue;
7126
+ }
7096
7127
  const ctxKind = CONTEXT_DEFAULTS[resourceType]?.[k];
7097
7128
  if (ctxKind !== void 0 && opts.region !== void 0) {
7098
7129
  if (deepEqual(v, ctxKind === "region" ? opts.region : [opts.region])) {
@@ -10493,8 +10524,8 @@ const readCodeBuildReportGroup = async ({ physicalId, region }) => {
10493
10524
  const readEc2NetworkAclEntry = async ({ declared, region }) => {
10494
10525
  const naclId = str$1(declared.NetworkAclId);
10495
10526
  const ruleNumber = declared.RuleNumber;
10496
- const egress = declared.Egress;
10497
- if (!naclId || typeof ruleNumber !== "number" || typeof egress !== "boolean") return void 0;
10527
+ const egress = typeof declared.Egress === "boolean" ? declared.Egress : false;
10528
+ if (!naclId || typeof ruleNumber !== "number") return void 0;
10498
10529
  const nacl = (await new EC2Client({
10499
10530
  region,
10500
10531
  ...READ_RETRY