cdk-real-drift 0.12.2 → 0.12.4
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 +10 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1750,6 +1750,10 @@ const TAG_PROPERTY_NAMES = new Set([
|
|
|
1750
1750
|
function stripCcApiAwsManagedFields(awsProps) {
|
|
1751
1751
|
return stripWalk(awsProps, false);
|
|
1752
1752
|
}
|
|
1753
|
+
const MANAGED_TIMESTAMP_NAME = /^(creation|created|create|lastmodified|lastupdated|lastupdate|modification|modified|updated|update)(date|time|timestamp|at)$/;
|
|
1754
|
+
function isManagedTimestampName(key) {
|
|
1755
|
+
return MANAGED_TIMESTAMP_NAME.test(key.toLowerCase().replace(/[^a-z0-9]/g, ""));
|
|
1756
|
+
}
|
|
1753
1757
|
function stripWalk(value, freeForm) {
|
|
1754
1758
|
if (value === null || value === void 0) return value;
|
|
1755
1759
|
if (Array.isArray(value)) {
|
|
@@ -1759,7 +1763,7 @@ function stripWalk(value, freeForm) {
|
|
|
1759
1763
|
if (typeof value === "object") {
|
|
1760
1764
|
const out = {};
|
|
1761
1765
|
for (const [k, child] of Object.entries(value)) {
|
|
1762
|
-
if (!freeForm && ALWAYS_STRIPPED.has(k)) continue;
|
|
1766
|
+
if (!freeForm && (ALWAYS_STRIPPED.has(k) || isManagedTimestampName(k))) continue;
|
|
1763
1767
|
out[k] = stripWalk(child, freeForm || FREE_FORM_MAP_PARENTS.has(k));
|
|
1764
1768
|
}
|
|
1765
1769
|
return out;
|
|
@@ -2541,7 +2545,10 @@ const KNOWN_DEFAULTS = {
|
|
|
2541
2545
|
"AWS::CodeStarConnections::Connection": { HostArn: "arn:aws:codestar-connections:us-west-2:000000000000:host/00000000-0000-0000-0000-000000000000" }
|
|
2542
2546
|
};
|
|
2543
2547
|
const KNOWN_DEFAULT_ONE_OF = { "AWS::ApiGatewayV2::Integration": { TimeoutInMillis: [29e3, 3e4] } };
|
|
2544
|
-
const KNOWN_DEFAULT_ONE_OF_PATHS = {
|
|
2548
|
+
const KNOWN_DEFAULT_ONE_OF_PATHS = {
|
|
2549
|
+
"AWS::EKS::Cluster": { "KubernetesNetworkConfig.ServiceIpv4Cidr": ["10.100.0.0/16", "172.20.0.0/16"] },
|
|
2550
|
+
"AWS::S3::Bucket": { "LifecycleConfiguration.TransitionDefaultMinimumObjectSize": ["all_storage_classes_128K", "varies_by_storage_class"] }
|
|
2551
|
+
};
|
|
2545
2552
|
const KNOWN_DEFAULT_PATHS = {
|
|
2546
2553
|
"AWS::ElasticLoadBalancingV2::TargetGroup": { "Targets.*.AvailabilityZone": "all" },
|
|
2547
2554
|
"AWS::ApiGatewayV2::Stage": { "DefaultRouteSettings.LoggingLevel": "OFF" },
|
|
@@ -2653,7 +2660,6 @@ const KNOWN_DEFAULT_PATHS = {
|
|
|
2653
2660
|
"HealthCheckConfig.FailureThreshold": 3
|
|
2654
2661
|
},
|
|
2655
2662
|
"AWS::Route53::RecordSet": { "GeoProximityLocation.Bias": 0 },
|
|
2656
|
-
"AWS::S3::Bucket": { "LifecycleConfiguration.TransitionDefaultMinimumObjectSize": "all_storage_classes_128K" },
|
|
2657
2663
|
"AWS::Scheduler::Schedule": { "Target.RetryPolicy": {
|
|
2658
2664
|
MaximumEventAgeInSeconds: 86400,
|
|
2659
2665
|
MaximumRetryAttempts: 185
|
|
@@ -5507,7 +5513,7 @@ function collectNestedUndeclared(declaredVal, liveVal, path, emit, nestedArrayId
|
|
|
5507
5513
|
}
|
|
5508
5514
|
if (!isNestedObject(declaredVal) || !isNestedObject(liveVal)) return;
|
|
5509
5515
|
if (Object.keys(liveVal).some((k) => PATH_UNSAFE_KEY.test(k))) {
|
|
5510
|
-
emit(path, liveVal);
|
|
5516
|
+
if (Object.keys(declaredVal).length === 0) emit(path, liveVal);
|
|
5511
5517
|
return;
|
|
5512
5518
|
}
|
|
5513
5519
|
for (const [k, val] of Object.entries(liveVal)) {
|