cdk-real-drift 0.12.59 → 0.12.61
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 +11 -0
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5986,6 +5986,7 @@ function matchesPropertyTransform(transformExpr, declaredValue, parentObject, ro
|
|
|
5986
5986
|
for (const scope of scopes) try {
|
|
5987
5987
|
const out = compiled.evaluate(scope);
|
|
5988
5988
|
if (out !== void 0 && deepEqual(out, liveValue)) return true;
|
|
5989
|
+
if (typeof out === "string" && typeof liveValue === "string" && typeof declaredValue === "string" && out !== declaredValue && new RegExp("^(?:" + out + ")$").test(liveValue)) return true;
|
|
5989
5990
|
} catch {}
|
|
5990
5991
|
}
|
|
5991
5992
|
return false;
|
|
@@ -16549,6 +16550,15 @@ function buildRevertPlan(findings, baseline, opts = {}) {
|
|
|
16549
16550
|
});
|
|
16550
16551
|
continue;
|
|
16551
16552
|
}
|
|
16553
|
+
if (CC_UPDATE_REJECTED_TYPES.has(f.resourceType) && !SDK_WRITERS[f.resourceType] && !propScoped && !nestedScoped) {
|
|
16554
|
+
notRevertable.push({
|
|
16555
|
+
displayId,
|
|
16556
|
+
resourceType: f.resourceType,
|
|
16557
|
+
path: f.path,
|
|
16558
|
+
reason: "type rejects any Cloud Control patch (Tags minItems:1) — no SDK writer for this path, detect/record only"
|
|
16559
|
+
});
|
|
16560
|
+
continue;
|
|
16561
|
+
}
|
|
16552
16562
|
const kind = SDK_WRITERS[f.resourceType] || propScoped || nestedScoped ? "sdk" : "cc";
|
|
16553
16563
|
let toRevert = f;
|
|
16554
16564
|
const sgSide = f.tier === "declared" && f.resourceType === "AWS::EC2::SecurityGroup" ? SG_REVERT_SIDE[f.path] : void 0;
|
|
@@ -16715,6 +16725,7 @@ function tagPreservingOps(ops, liveRaw) {
|
|
|
16715
16725
|
});
|
|
16716
16726
|
return changed ? out : ops;
|
|
16717
16727
|
}
|
|
16728
|
+
const CC_UPDATE_REJECTED_TYPES = new Set(["AWS::KinesisVideo::Stream", "AWS::KinesisVideo::SignalingChannel"]);
|
|
16718
16729
|
const CC_UPDATE_REJECTED_EMPTY_PATHS = {
|
|
16719
16730
|
"AWS::VpcLattice::Rule": ["/Match/HttpMatch/HeaderMatches"],
|
|
16720
16731
|
"AWS::ImageBuilder::DistributionConfiguration": [
|