cdk-real-drift 0.13.0 → 0.13.2
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 +22 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5588,7 +5588,13 @@ const MEANINGFUL_WHEN_OFF = {
|
|
|
5588
5588
|
"AWS::MemoryDB::Cluster": { TLSEnabled: () => true },
|
|
5589
5589
|
"AWS::Redshift::ScheduledAction": { Enable: () => true }
|
|
5590
5590
|
};
|
|
5591
|
-
const MEANINGFUL_WHEN_OFF_NESTED = {
|
|
5591
|
+
const MEANINGFUL_WHEN_OFF_NESTED = {
|
|
5592
|
+
"AWS::CloudFront::Distribution": { "DistributionConfig.IPV6Enabled": () => true },
|
|
5593
|
+
"AWS::Athena::WorkGroup": {
|
|
5594
|
+
"WorkGroupConfiguration.EnforceWorkGroupConfiguration": () => true,
|
|
5595
|
+
"WorkGroupConfiguration.PublishCloudWatchMetricsEnabled": () => true
|
|
5596
|
+
}
|
|
5597
|
+
};
|
|
5592
5598
|
const GUARDDUTY_FEATURE_CREATION_STATUS = {
|
|
5593
5599
|
AI_ANALYST: ["DISABLED"],
|
|
5594
5600
|
RUNTIME_MONITORING: ["DISABLED", "ENABLED"],
|
|
@@ -7395,6 +7401,21 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
7395
7401
|
continue;
|
|
7396
7402
|
}
|
|
7397
7403
|
}
|
|
7404
|
+
if (resourceType === "AWS::RDS::DBInstance" && k === "PubliclyAccessible") {
|
|
7405
|
+
const subnetGroup = declared.DBSubnetGroupName ?? live.DBSubnetGroupName;
|
|
7406
|
+
if (typeof subnetGroup === "string") {
|
|
7407
|
+
if (v === (subnetGroup === "default")) {
|
|
7408
|
+
findings.push({
|
|
7409
|
+
tier: "atDefault",
|
|
7410
|
+
logicalId,
|
|
7411
|
+
resourceType,
|
|
7412
|
+
path: k,
|
|
7413
|
+
actual: v
|
|
7414
|
+
});
|
|
7415
|
+
continue;
|
|
7416
|
+
}
|
|
7417
|
+
}
|
|
7418
|
+
}
|
|
7398
7419
|
const namePattern = DEFAULT_MANAGED_NAME_PATHS[resourceType]?.[k];
|
|
7399
7420
|
if (namePattern !== void 0 && typeof v === "string" && namePattern.test(v)) {
|
|
7400
7421
|
findings.push({
|