cdk-real-drift 0.18.8 → 0.18.10
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 +41 -5
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2242,6 +2242,10 @@ const KNOWN_DEFAULTS = {
|
|
|
2242
2242
|
EventBusName: "default",
|
|
2243
2243
|
State: "ENABLED"
|
|
2244
2244
|
},
|
|
2245
|
+
"AWS::Events::EventBus": { LogConfig: {
|
|
2246
|
+
IncludeDetail: "NONE",
|
|
2247
|
+
Level: "OFF"
|
|
2248
|
+
} },
|
|
2245
2249
|
"AWS::Athena::WorkGroup": {
|
|
2246
2250
|
State: "ENABLED",
|
|
2247
2251
|
WorkGroupConfiguration: {
|
|
@@ -2403,7 +2407,8 @@ const KNOWN_DEFAULTS = {
|
|
|
2403
2407
|
} },
|
|
2404
2408
|
"AWS::ECR::Repository": {
|
|
2405
2409
|
EncryptionConfiguration: { EncryptionType: "AES256" },
|
|
2406
|
-
ImageTagMutability: "MUTABLE"
|
|
2410
|
+
ImageTagMutability: "MUTABLE",
|
|
2411
|
+
ImageScanningConfiguration: { ScanOnPush: false }
|
|
2407
2412
|
},
|
|
2408
2413
|
"AWS::ECR::RepositoryCreationTemplate": {
|
|
2409
2414
|
EncryptionConfiguration: { EncryptionType: "AES256" },
|
|
@@ -2411,7 +2416,8 @@ const KNOWN_DEFAULTS = {
|
|
|
2411
2416
|
},
|
|
2412
2417
|
"AWS::Kinesis::Stream": {
|
|
2413
2418
|
MaxRecordSizeInKiB: 1024,
|
|
2414
|
-
RetentionPeriodHours: 24
|
|
2419
|
+
RetentionPeriodHours: 24,
|
|
2420
|
+
StreamModeDetails: { StreamMode: "PROVISIONED" }
|
|
2415
2421
|
},
|
|
2416
2422
|
"AWS::SSM::Parameter": {
|
|
2417
2423
|
DataType: "text",
|
|
@@ -3111,7 +3117,23 @@ const KNOWN_DEFAULT_PATHS = {
|
|
|
3111
3117
|
"ExtendedS3DestinationConfiguration.BufferingHints": {
|
|
3112
3118
|
IntervalInSeconds: 300,
|
|
3113
3119
|
SizeInMBs: 5
|
|
3114
|
-
}
|
|
3120
|
+
},
|
|
3121
|
+
"HttpEndpointDestinationConfiguration.RequestConfiguration": {
|
|
3122
|
+
CommonAttributes: [],
|
|
3123
|
+
ContentEncoding: "NONE"
|
|
3124
|
+
},
|
|
3125
|
+
"HttpEndpointDestinationConfiguration.BufferingHints": {
|
|
3126
|
+
IntervalInSeconds: 300,
|
|
3127
|
+
SizeInMBs: 5
|
|
3128
|
+
},
|
|
3129
|
+
"HttpEndpointDestinationConfiguration.RetryOptions": { DurationInSeconds: 300 },
|
|
3130
|
+
"HttpEndpointDestinationConfiguration.S3BackupMode": "FailedDataOnly",
|
|
3131
|
+
"HttpEndpointDestinationConfiguration.S3Configuration.BufferingHints": {
|
|
3132
|
+
IntervalInSeconds: 300,
|
|
3133
|
+
SizeInMBs: 5
|
|
3134
|
+
},
|
|
3135
|
+
"HttpEndpointDestinationConfiguration.S3Configuration.CompressionFormat": "UNCOMPRESSED",
|
|
3136
|
+
"HttpEndpointDestinationConfiguration.S3Configuration.EncryptionConfiguration": { NoEncryptionConfig: "NoEncryption" }
|
|
3115
3137
|
},
|
|
3116
3138
|
"AWS::Athena::WorkGroup": {
|
|
3117
3139
|
"WorkGroupConfiguration.EnforceWorkGroupConfiguration": true,
|
|
@@ -7585,6 +7607,16 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
7585
7607
|
continue;
|
|
7586
7608
|
}
|
|
7587
7609
|
}
|
|
7610
|
+
if (resourceType === "AWS::EFS::FileSystem" && k === "BackupPolicy" && typeof declared["AvailabilityZoneName"] === "string") {
|
|
7611
|
+
findings.push({
|
|
7612
|
+
tier: matchesKnownDefault(v, { Status: "ENABLED" }) ? "atDefault" : "undeclared",
|
|
7613
|
+
logicalId,
|
|
7614
|
+
resourceType,
|
|
7615
|
+
path: k,
|
|
7616
|
+
actual: v
|
|
7617
|
+
});
|
|
7618
|
+
continue;
|
|
7619
|
+
}
|
|
7588
7620
|
if (resourceType === "AWS::DMS::ReplicationInstance" && k === "AllocatedStorage") {
|
|
7589
7621
|
const cls = declared["ReplicationInstanceClass"];
|
|
7590
7622
|
const derived = typeof cls === "string" ? opts.accountDefaults?.dmsAllocatedStorageDefaults?.[cls] : void 0;
|
|
@@ -18635,6 +18667,7 @@ const SYNTHETIC_READ_SIGNAL_PATHS = {
|
|
|
18635
18667
|
"AWS::Lambda::Function": ["CodeSha256"],
|
|
18636
18668
|
"AWS::Glue::Job": ["ScriptSha256"]
|
|
18637
18669
|
};
|
|
18670
|
+
const WRITEONLY_REINCLUDE_SKIP = { "AWS::Lambda::Function": ["Code"] };
|
|
18638
18671
|
const CC_REVERTABLE_DESPITE_READ_OVERRIDE = new Set([
|
|
18639
18672
|
"AWS::Scheduler::Schedule",
|
|
18640
18673
|
"AWS::Cognito::IdentityPool",
|
|
@@ -18669,6 +18702,7 @@ const REVERT_SET_DEFAULT_PATHS = new Set([
|
|
|
18669
18702
|
"AWS::SNS::Subscription\0FilterPolicyScope",
|
|
18670
18703
|
"AWS::InternetMonitor::Monitor\0Status",
|
|
18671
18704
|
"AWS::ECR::Repository\0ImageTagMutability",
|
|
18705
|
+
"AWS::ECR::Repository\0ImageScanningConfiguration",
|
|
18672
18706
|
"AWS::SQS::Queue\0MaximumMessageSize",
|
|
18673
18707
|
"AWS::Lambda::Url\0InvokeMode",
|
|
18674
18708
|
"AWS::RolesAnywhere::Profile\0DurationSeconds",
|
|
@@ -19189,12 +19223,14 @@ function valueAtDottedPath(model, path) {
|
|
|
19189
19223
|
}
|
|
19190
19224
|
return node;
|
|
19191
19225
|
}
|
|
19192
|
-
function writeOnlyReincludeOps(declared, schema, existingOps) {
|
|
19226
|
+
function writeOnlyReincludeOps(declared, schema, existingOps, resourceType) {
|
|
19193
19227
|
if (!declared || !schema || schema.writeOnlyPaths.length === 0) return [];
|
|
19194
19228
|
const touched = new Set(existingOps.map((o) => o.path));
|
|
19229
|
+
const skipPrefixes = resourceType ? WRITEONLY_REINCLUDE_SKIP[resourceType] ?? [] : [];
|
|
19195
19230
|
const ops = [];
|
|
19196
19231
|
for (const path of schema.writeOnlyPaths) {
|
|
19197
19232
|
if (path.includes("*")) continue;
|
|
19233
|
+
if (skipPrefixes.some((p) => path === p || path.startsWith(`${p}.`))) continue;
|
|
19198
19234
|
if (isUnderCreateOnly(path, schema.createOnlyPaths)) continue;
|
|
19199
19235
|
if (isUnderCreateOnly(path, schema.conditionalCreateOnlyPaths ?? [])) continue;
|
|
19200
19236
|
const value = valueAtDottedPath(declared, path);
|
|
@@ -20108,7 +20144,7 @@ function augmentCcItemOps(item, schemas, liveByLogical, declaredByLogical) {
|
|
|
20108
20144
|
if (item.kind !== "cc") return item;
|
|
20109
20145
|
const liveRaw = liveByLogical.get(item.logicalId);
|
|
20110
20146
|
const tagged = tagPreservingOps(item.ops, liveRaw);
|
|
20111
|
-
const extra = writeOnlyReincludeOps(declaredByLogical(item.logicalId), schemas.get(item.resourceType), tagged);
|
|
20147
|
+
const extra = writeOnlyReincludeOps(declaredByLogical(item.logicalId), schemas.get(item.resourceType), tagged, item.resourceType);
|
|
20112
20148
|
const strip = rejectedEmptyStripOps(item.resourceType, [...tagged, ...extra], liveRaw);
|
|
20113
20149
|
const combined = [
|
|
20114
20150
|
...tagged,
|