cdk-real-drift 0.12.27 → 0.12.29
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 +26 -10
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -926,7 +926,8 @@ function applyIgnores(findings, scope, config) {
|
|
|
926
926
|
return {
|
|
927
927
|
...rest,
|
|
928
928
|
tier: "ignored",
|
|
929
|
-
note: `ignored by config rule "${hit.raw}"
|
|
929
|
+
note: `ignored by config rule "${hit.raw}"`,
|
|
930
|
+
...f.tier ? { ignoredFrom: f.tier } : {}
|
|
930
931
|
};
|
|
931
932
|
});
|
|
932
933
|
}
|
|
@@ -1766,7 +1767,9 @@ const FREE_FORM_MAP_PARENTS = new Set([
|
|
|
1766
1767
|
"UserPoolTags",
|
|
1767
1768
|
"BackupPlanTags",
|
|
1768
1769
|
"BackupVaultTags",
|
|
1769
|
-
"RecoveryPointTags"
|
|
1770
|
+
"RecoveryPointTags",
|
|
1771
|
+
"TieringConfigurationTags",
|
|
1772
|
+
"TestAliasTags"
|
|
1770
1773
|
]);
|
|
1771
1774
|
const TAG_PROPERTY_NAMES = new Set([
|
|
1772
1775
|
"Tags",
|
|
@@ -1778,7 +1781,16 @@ const TAG_PROPERTY_NAMES = new Set([
|
|
|
1778
1781
|
"BotTags",
|
|
1779
1782
|
"ResourceTags",
|
|
1780
1783
|
"FileSystemTags",
|
|
1781
|
-
"HostedZoneTags"
|
|
1784
|
+
"HostedZoneTags",
|
|
1785
|
+
"TieringConfigurationTags",
|
|
1786
|
+
"FrameworkTags",
|
|
1787
|
+
"ReportPlanTags",
|
|
1788
|
+
"PipelineTags",
|
|
1789
|
+
"AccessPointTags",
|
|
1790
|
+
"BotAliasTags",
|
|
1791
|
+
"HealthCheckTags",
|
|
1792
|
+
"TestBotAliasTags",
|
|
1793
|
+
"TestAliasTags"
|
|
1782
1794
|
]);
|
|
1783
1795
|
function stripCcApiAwsManagedFields(awsProps) {
|
|
1784
1796
|
return stripWalk(awsProps, false);
|
|
@@ -12343,7 +12355,7 @@ function computeCompleteResources(allLogicalIds, findings, recorded, previousCom
|
|
|
12343
12355
|
for (const f of findings) {
|
|
12344
12356
|
if (f.tier === "skipped" || f.tier === "deleted" || f.tier === "readGap") blocked.add(f.logicalId);
|
|
12345
12357
|
if (f.tier === "undeclared" && !recordedKeys.has(recordedKey(f))) blocked.add(f.logicalId);
|
|
12346
|
-
if (f.tier === "ignored" && !recordedKeys.has(recordedKey(f))) blockedByIgnore.add(f.logicalId);
|
|
12358
|
+
if (f.tier === "ignored" && f.ignoredFrom === "undeclared" && !recordedKeys.has(recordedKey(f))) blockedByIgnore.add(f.logicalId);
|
|
12347
12359
|
}
|
|
12348
12360
|
const all = new Set(allLogicalIds);
|
|
12349
12361
|
const complete = new Set(previousComplete.filter((id) => all.has(id) && !blockedByIgnore.has(id)));
|
|
@@ -16736,6 +16748,15 @@ async function runRecord(args) {
|
|
|
16736
16748
|
|
|
16737
16749
|
//#endregion
|
|
16738
16750
|
//#region src/commands/ignore.ts
|
|
16751
|
+
function ignoreApplyBaselineOpts(desired) {
|
|
16752
|
+
return {
|
|
16753
|
+
declaredByLogical: declaredKeysByLogical(desired.resources),
|
|
16754
|
+
constructPathByLogical: constructPathsByLogical(desired.resources),
|
|
16755
|
+
physicalIdByLogical: physicalIdsByLogical(desired.resources),
|
|
16756
|
+
allLogicalIds: desired.resources.map((r) => r.logicalId),
|
|
16757
|
+
warn: console.error
|
|
16758
|
+
};
|
|
16759
|
+
}
|
|
16739
16760
|
async function runIgnore(args) {
|
|
16740
16761
|
const a = parseCommonArgs(args, "ignore");
|
|
16741
16762
|
if (a.profile) process.env.AWS_PROFILE = a.profile;
|
|
@@ -16784,12 +16805,7 @@ async function runIgnore(args) {
|
|
|
16784
16805
|
if (baseline) checkBaselineAccount(baseline, desired.accountId, stackName);
|
|
16785
16806
|
const result = await ignoreStack({
|
|
16786
16807
|
stackName,
|
|
16787
|
-
findings: applyIgnores(applyBaseline(findings, baseline, {
|
|
16788
|
-
declaredByLogical: declaredKeysByLogical(desired.resources),
|
|
16789
|
-
physicalIdByLogical: physicalIdsByLogical(desired.resources),
|
|
16790
|
-
allLogicalIds: desired.resources.map((r) => r.logicalId),
|
|
16791
|
-
warn: console.error
|
|
16792
|
-
}), {
|
|
16808
|
+
findings: applyIgnores(applyBaseline(findings, baseline, ignoreApplyBaselineOpts(desired)), {
|
|
16793
16809
|
stackName,
|
|
16794
16810
|
accountId: desired.accountId,
|
|
16795
16811
|
region
|