cdk-real-drift 0.12.14 → 0.12.15
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/README.md +1 -1
- package/dist/cli.js +9 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -576,7 +576,7 @@ that folds everything informational.
|
|
|
576
576
|
result: 1 drift(s) (declared=1)
|
|
577
577
|
───────────────────────────────
|
|
578
578
|
info:
|
|
579
|
-
- readGap=1 (declared but unverifiable —
|
|
579
|
+
- readGap=1 (declared but unverifiable — not drift: 1 write-only)
|
|
580
580
|
- skipped=2 (custom resource 2)
|
|
581
581
|
run with --verbose for the list
|
|
582
582
|
```
|
package/dist/cli.js
CHANGED
|
@@ -16765,6 +16765,7 @@ function reasonKey(f) {
|
|
|
16765
16765
|
const n = f.note ?? "";
|
|
16766
16766
|
if (f.tier === "ignored") return n.replace(/^ignored by config rule /, "") || "ignored";
|
|
16767
16767
|
if (f.tier === "unresolved") return "intrinsic unresolved";
|
|
16768
|
+
if (n === "declared value unverifiable — CloudFormation GetTemplate masks non-ASCII characters as \"?\"") return "non-ASCII masked by GetTemplate";
|
|
16768
16769
|
if (n.includes("write-only")) return "write-only";
|
|
16769
16770
|
if (n.startsWith("custom resource")) return "custom resource";
|
|
16770
16771
|
if (n.includes("target not resolvable")) return "override target unresolved";
|
|
@@ -16858,9 +16859,14 @@ function report(rawFindings, header, opts = {}) {
|
|
|
16858
16859
|
if (t === "generated") return `generated=${items.length} (auto-generated identifiers not in your template, AWS-assigned at deploy — not drift)`;
|
|
16859
16860
|
if (t === "readGap") {
|
|
16860
16861
|
const writeOnly = items.filter((f) => (f.note ?? "").includes("write-only")).length;
|
|
16861
|
-
const
|
|
16862
|
-
const
|
|
16863
|
-
|
|
16862
|
+
const masked = items.filter((f) => f.note === GETTEMPLATE_MASK_NOTE).length;
|
|
16863
|
+
const notReturned = items.length - writeOnly - masked;
|
|
16864
|
+
const parts = [
|
|
16865
|
+
...notReturned > 0 ? [`${notReturned} not returned by AWS`] : [],
|
|
16866
|
+
...writeOnly > 0 ? [`${writeOnly} write-only`] : [],
|
|
16867
|
+
...masked > 0 ? [`${masked} non-ASCII masked by GetTemplate`] : []
|
|
16868
|
+
];
|
|
16869
|
+
return `readGap=${items.length} (declared but unverifiable — not drift: ${parts.join(", ")})`;
|
|
16864
16870
|
}
|
|
16865
16871
|
if (t === "unresolved") return `unresolved=${items.length} (declared values whose CloudFormation intrinsic cdkrd couldn't resolve to a concrete value — e.g. Fn::GetAZs, a {{resolve:...}} dynamic reference, or an Fn::GetAtt whose target wasn't readable — unverifiable, not drift)`;
|
|
16866
16872
|
if (t === "skipped") return `skipped=${items.length} — NOT checked (coverage incomplete: ${groupReasons(items)})`;
|