cdk-real-drift 0.4.9 → 0.4.11
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 +14 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2257,6 +2257,7 @@ const KNOWN_DEFAULTS = {
|
|
|
2257
2257
|
"AWS::CodeStarConnections::Connection": { HostArn: "arn:aws:codestar-connections:us-west-2:000000000000:host/00000000-0000-0000-0000-000000000000" }
|
|
2258
2258
|
};
|
|
2259
2259
|
const KNOWN_DEFAULT_ONE_OF = { "AWS::ApiGatewayV2::Integration": { TimeoutInMillis: [29e3, 3e4] } };
|
|
2260
|
+
const KNOWN_DEFAULT_ONE_OF_PATHS = { "AWS::EKS::Cluster": { "KubernetesNetworkConfig.ServiceIpv4Cidr": ["10.100.0.0/16", "172.20.0.0/16"] } };
|
|
2260
2261
|
const KNOWN_DEFAULT_PATHS = {
|
|
2261
2262
|
"AWS::ElasticLoadBalancingV2::TargetGroup": { "Targets.*.AvailabilityZone": "all" },
|
|
2262
2263
|
"AWS::ApiGatewayV2::Stage": { "DefaultRouteSettings.LoggingLevel": "OFF" },
|
|
@@ -2555,7 +2556,11 @@ const ENGINE_DEFAULTS = {
|
|
|
2555
2556
|
AllocatedStorage: (e) => e.startsWith("aurora") ? 1 : void 0,
|
|
2556
2557
|
Port: rdsDefaultPort
|
|
2557
2558
|
},
|
|
2558
|
-
"AWS::ElastiCache::CacheCluster": { Port: (e) => /memcached/i.test(e) ? 11211 : /redis|valkey/i.test(e) ? 6379 : void 0 }
|
|
2559
|
+
"AWS::ElastiCache::CacheCluster": { Port: (e) => /memcached/i.test(e) ? 11211 : /redis|valkey/i.test(e) ? 6379 : void 0 },
|
|
2560
|
+
"AWS::ElastiCache::ReplicationGroup": {
|
|
2561
|
+
Port: (e) => /redis|valkey/i.test(e) ? 6379 : void 0,
|
|
2562
|
+
AtRestEncryptionEnabled: (e) => /valkey/i.test(e) ? true : /redis/i.test(e) ? false : void 0
|
|
2563
|
+
}
|
|
2559
2564
|
};
|
|
2560
2565
|
function rdsDefaultPort(engine) {
|
|
2561
2566
|
if (/mysql|maria/.test(engine)) return 3306;
|
|
@@ -2766,6 +2771,8 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
|
2766
2771
|
"EngineLifecycleSupport"
|
|
2767
2772
|
]),
|
|
2768
2773
|
"AWS::EKS::AccessEntry": new Set(["Username"]),
|
|
2774
|
+
"AWS::EKS::Cluster": new Set(["Version"]),
|
|
2775
|
+
"AWS::EKS::Addon": new Set(["AddonVersion"]),
|
|
2769
2776
|
"AWS::Glue::Job": new Set(["MaxCapacity", "AllocatedCapacity"]),
|
|
2770
2777
|
"AWS::EC2::SecurityGroupIngress": new Set(["SourceSecurityGroupName"]),
|
|
2771
2778
|
"AWS::EC2::SecurityGroupEgress": new Set(["DestinationSecurityGroupName"]),
|
|
@@ -2778,7 +2785,11 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
|
2778
2785
|
"SnapshotWindow",
|
|
2779
2786
|
"PreferredAvailabilityZones"
|
|
2780
2787
|
]),
|
|
2781
|
-
"AWS::ElastiCache::ReplicationGroup": new Set([
|
|
2788
|
+
"AWS::ElastiCache::ReplicationGroup": new Set([
|
|
2789
|
+
"PreferredMaintenanceWindow",
|
|
2790
|
+
"SnapshotWindow",
|
|
2791
|
+
"EngineVersion"
|
|
2792
|
+
]),
|
|
2782
2793
|
"AWS::ElastiCache::ServerlessCache": new Set(["DailySnapshotTime"]),
|
|
2783
2794
|
"AWS::MemoryDB::Cluster": new Set(["MaintenanceWindow", "SnapshotWindow"]),
|
|
2784
2795
|
"AWS::Redshift::Cluster": new Set([
|
|
@@ -4923,7 +4934,7 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
4923
4934
|
if (!isObjectForm || /tags$/i.test(parentKey)) return;
|
|
4924
4935
|
}
|
|
4925
4936
|
const schemaPath = path.replace(/\[[^\]]*\]/g, ".*");
|
|
4926
|
-
const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) && !(schemaPath in knownDefPaths) ? "generated" : "undeclared";
|
|
4937
|
+
const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || (KNOWN_DEFAULT_ONE_OF_PATHS[resourceType]?.[schemaPath]?.some((d) => matchesKnownDefault(value, d)) ?? false) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) && !(schemaPath in knownDefPaths) ? "generated" : "undeclared";
|
|
4927
4938
|
const freeFormKey = tier === "undeclared" && underFreeFormMap(schemaPath);
|
|
4928
4939
|
findings.push({
|
|
4929
4940
|
tier,
|