cdk-real-drift 0.18.7 → 0.18.9
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 +33 -10
- 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: {
|
|
@@ -2411,7 +2415,8 @@ const KNOWN_DEFAULTS = {
|
|
|
2411
2415
|
},
|
|
2412
2416
|
"AWS::Kinesis::Stream": {
|
|
2413
2417
|
MaxRecordSizeInKiB: 1024,
|
|
2414
|
-
RetentionPeriodHours: 24
|
|
2418
|
+
RetentionPeriodHours: 24,
|
|
2419
|
+
StreamModeDetails: { StreamMode: "PROVISIONED" }
|
|
2415
2420
|
},
|
|
2416
2421
|
"AWS::SSM::Parameter": {
|
|
2417
2422
|
DataType: "text",
|
|
@@ -2600,7 +2605,8 @@ const KNOWN_DEFAULTS = {
|
|
|
2600
2605
|
AquaConfigurationStatus: "auto",
|
|
2601
2606
|
MaintenanceTrackName: "current",
|
|
2602
2607
|
KmsKeyId: "AWS_OWNED_KMS_KEY",
|
|
2603
|
-
NumberOfNodes: 1
|
|
2608
|
+
NumberOfNodes: 1,
|
|
2609
|
+
ClusterSubnetGroupName: "default"
|
|
2604
2610
|
},
|
|
2605
2611
|
"AWS::Redshift::ScheduledAction": { Enable: true },
|
|
2606
2612
|
"AWS::EC2::VPCEndpoint": {
|
|
@@ -2925,12 +2931,22 @@ const KNOWN_DEFAULTS = {
|
|
|
2925
2931
|
const KNOWN_DEFAULT_ONE_OF = {
|
|
2926
2932
|
"AWS::ApiGatewayV2::Integration": { TimeoutInMillis: [29e3, 3e4] },
|
|
2927
2933
|
"AWS::SecurityHub::Hub": { ControlFindingGenerator: ["SECURITY_CONTROL", "STANDARD_CONTROL"] },
|
|
2928
|
-
"AWS::Glue::Job": { Timeout: [2880, 480] }
|
|
2934
|
+
"AWS::Glue::Job": { Timeout: [2880, 480] },
|
|
2935
|
+
"AWS::OpenSearchService::Domain": { DomainEndpointOptions: [{
|
|
2936
|
+
CustomEndpointEnabled: false,
|
|
2937
|
+
EnforceHTTPS: false,
|
|
2938
|
+
TLSSecurityPolicy: "Policy-Min-TLS-1-2-2019-07"
|
|
2939
|
+
}, {
|
|
2940
|
+
CustomEndpointEnabled: false,
|
|
2941
|
+
EnforceHTTPS: false,
|
|
2942
|
+
TLSSecurityPolicy: "Policy-Min-TLS-1-0-2019-07"
|
|
2943
|
+
}] }
|
|
2929
2944
|
};
|
|
2930
2945
|
const KNOWN_DEFAULT_ONE_OF_PATHS = {
|
|
2931
2946
|
"AWS::EKS::Cluster": { "KubernetesNetworkConfig.ServiceIpv4Cidr": ["10.100.0.0/16", "172.20.0.0/16"] },
|
|
2932
2947
|
"AWS::S3::Bucket": { "LifecycleConfiguration.TransitionDefaultMinimumObjectSize": ["all_storage_classes_128K", "varies_by_storage_class"] },
|
|
2933
|
-
"AWS::Batch::ComputeEnvironment": { "ComputeResources.Ec2Configuration": [[{ ImageType: "ECS_AL2023" }], [{ ImageType: "ECS_AL2" }]] }
|
|
2948
|
+
"AWS::Batch::ComputeEnvironment": { "ComputeResources.Ec2Configuration": [[{ ImageType: "ECS_AL2023" }], [{ ImageType: "ECS_AL2" }]] },
|
|
2949
|
+
"AWS::OpenSearchService::Domain": { "EBSOptions.VolumeType": ["gp3", "gp2"] }
|
|
2934
2950
|
};
|
|
2935
2951
|
const KNOWN_DEFAULT_PATHS = {
|
|
2936
2952
|
"AWS::IoT::TopicRule": { "TopicRulePayload.AwsIotSqlVersion": "2015-10-08" },
|
|
@@ -3090,7 +3106,8 @@ const KNOWN_DEFAULT_PATHS = {
|
|
|
3090
3106
|
"AWS::Synthetics::Canary": { "Schedule.RetryConfig": { MaxRetries: 0 } },
|
|
3091
3107
|
"AWS::OpenSearchService::Domain": {
|
|
3092
3108
|
"EBSOptions.Iops": 3e3,
|
|
3093
|
-
"EBSOptions.Throughput": 125
|
|
3109
|
+
"EBSOptions.Throughput": 125,
|
|
3110
|
+
"ClusterConfig.ZoneAwarenessConfig": { AvailabilityZoneCount: 2 }
|
|
3094
3111
|
},
|
|
3095
3112
|
"AWS::KinesisFirehose::DeliveryStream": {
|
|
3096
3113
|
"ExtendedS3DestinationConfiguration.S3BackupMode": "Disabled",
|
|
@@ -3265,7 +3282,9 @@ const ENGINE_DEFAULTS = {
|
|
|
3265
3282
|
AllocatedStorage: (e) => e.startsWith("aurora") ? 1 : void 0,
|
|
3266
3283
|
Port: rdsDefaultPort,
|
|
3267
3284
|
LicenseModel: rdsDefaultLicense,
|
|
3268
|
-
CharacterSetName: (e) => /sqlserver/.test(e) ? "SQL_Latin1_General_CP1_CI_AS" : void 0
|
|
3285
|
+
CharacterSetName: (e) => /sqlserver/.test(e) ? "SQL_Latin1_General_CP1_CI_AS" : /oracle/.test(e) ? "AL32UTF8" : void 0,
|
|
3286
|
+
NcharCharacterSetName: (e) => /oracle/.test(e) ? "AL16UTF16" : void 0,
|
|
3287
|
+
DBName: (e) => /oracle/.test(e) ? "ORCL" : void 0
|
|
3269
3288
|
},
|
|
3270
3289
|
"AWS::RDS::DBCluster": {
|
|
3271
3290
|
StorageType: (e) => e.startsWith("aurora") ? "aurora" : void 0,
|
|
@@ -3589,7 +3608,7 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
|
3589
3608
|
"AvailabilityZone",
|
|
3590
3609
|
"ClusterVersion"
|
|
3591
3610
|
]),
|
|
3592
|
-
"AWS::OpenSearchService::Domain": new Set(["OffPeakWindowOptions"]),
|
|
3611
|
+
"AWS::OpenSearchService::Domain": new Set(["OffPeakWindowOptions", "EngineVersion"]),
|
|
3593
3612
|
"AWS::AmazonMQ::Broker": new Set(["MaintenanceWindowStartTime", "SubnetIds"]),
|
|
3594
3613
|
"AWS::EC2::InstanceConnectEndpoint": new Set(["SecurityGroupIds"]),
|
|
3595
3614
|
"AWS::EC2::EIPAssociation": new Set(["PrivateIpAddress", "EIP"]),
|
|
@@ -3891,6 +3910,7 @@ const CASE_INSENSITIVE_PATHS = {
|
|
|
3891
3910
|
"AWS::Neptune::DBClusterParameterGroup": new Set(["Name"]),
|
|
3892
3911
|
"AWS::DocDB::DBClusterParameterGroup": new Set(["Name"]),
|
|
3893
3912
|
"AWS::Redshift::ClusterParameterGroup": new Set(["ParameterGroupName"]),
|
|
3913
|
+
"AWS::Redshift::Cluster": new Set(["ClusterIdentifier"]),
|
|
3894
3914
|
"AWS::DMS::ReplicationInstance": new Set(["ReplicationInstanceIdentifier"]),
|
|
3895
3915
|
"AWS::DMS::ReplicationSubnetGroup": new Set(["ReplicationSubnetGroupIdentifier"]),
|
|
3896
3916
|
"AWS::DMS::Endpoint": new Set(["EndpointType", "EndpointIdentifier"]),
|
|
@@ -18620,6 +18640,7 @@ const SYNTHETIC_READ_SIGNAL_PATHS = {
|
|
|
18620
18640
|
"AWS::Lambda::Function": ["CodeSha256"],
|
|
18621
18641
|
"AWS::Glue::Job": ["ScriptSha256"]
|
|
18622
18642
|
};
|
|
18643
|
+
const WRITEONLY_REINCLUDE_SKIP = { "AWS::Lambda::Function": ["Code"] };
|
|
18623
18644
|
const CC_REVERTABLE_DESPITE_READ_OVERRIDE = new Set([
|
|
18624
18645
|
"AWS::Scheduler::Schedule",
|
|
18625
18646
|
"AWS::Cognito::IdentityPool",
|
|
@@ -19174,12 +19195,14 @@ function valueAtDottedPath(model, path) {
|
|
|
19174
19195
|
}
|
|
19175
19196
|
return node;
|
|
19176
19197
|
}
|
|
19177
|
-
function writeOnlyReincludeOps(declared, schema, existingOps) {
|
|
19198
|
+
function writeOnlyReincludeOps(declared, schema, existingOps, resourceType) {
|
|
19178
19199
|
if (!declared || !schema || schema.writeOnlyPaths.length === 0) return [];
|
|
19179
19200
|
const touched = new Set(existingOps.map((o) => o.path));
|
|
19201
|
+
const skipPrefixes = resourceType ? WRITEONLY_REINCLUDE_SKIP[resourceType] ?? [] : [];
|
|
19180
19202
|
const ops = [];
|
|
19181
19203
|
for (const path of schema.writeOnlyPaths) {
|
|
19182
19204
|
if (path.includes("*")) continue;
|
|
19205
|
+
if (skipPrefixes.some((p) => path === p || path.startsWith(`${p}.`))) continue;
|
|
19183
19206
|
if (isUnderCreateOnly(path, schema.createOnlyPaths)) continue;
|
|
19184
19207
|
if (isUnderCreateOnly(path, schema.conditionalCreateOnlyPaths ?? [])) continue;
|
|
19185
19208
|
const value = valueAtDottedPath(declared, path);
|
|
@@ -20093,7 +20116,7 @@ function augmentCcItemOps(item, schemas, liveByLogical, declaredByLogical) {
|
|
|
20093
20116
|
if (item.kind !== "cc") return item;
|
|
20094
20117
|
const liveRaw = liveByLogical.get(item.logicalId);
|
|
20095
20118
|
const tagged = tagPreservingOps(item.ops, liveRaw);
|
|
20096
|
-
const extra = writeOnlyReincludeOps(declaredByLogical(item.logicalId), schemas.get(item.resourceType), tagged);
|
|
20119
|
+
const extra = writeOnlyReincludeOps(declaredByLogical(item.logicalId), schemas.get(item.resourceType), tagged, item.resourceType);
|
|
20097
20120
|
const strip = rejectedEmptyStripOps(item.resourceType, [...tagged, ...extra], liveRaw);
|
|
20098
20121
|
const combined = [
|
|
20099
20122
|
...tagged,
|
|
@@ -20377,7 +20400,7 @@ async function revertStack(p) {
|
|
|
20377
20400
|
const key = `${item.logicalId}\0${dotted}`;
|
|
20378
20401
|
if (!preActual.has(key)) continue;
|
|
20379
20402
|
const pre = preActual.get(key);
|
|
20380
|
-
const post0 = post.find((f) => f.logicalId === item.logicalId && f.path === dotted && !isDrift(f));
|
|
20403
|
+
const post0 = post.find((f) => f.logicalId === item.logicalId && f.path === dotted && !isDrift(f) && f.tier !== "readGap");
|
|
20381
20404
|
const persisted = post0 !== void 0 && deepEqual(post0.actual, pre);
|
|
20382
20405
|
if (op.op === "remove" ? persisted : persisted && !deepEqual(post0.actual, op.value)) noOpRemovals.push({
|
|
20383
20406
|
displayId: item.displayId,
|