cdk-real-drift 0.20.0 → 0.20.1
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 +38 -8
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2266,6 +2266,25 @@ const KNOWN_DEFAULTS = {
|
|
|
2266
2266
|
"AWS::EKS::Addon": { NamespaceConfig: { Namespace: "kube-system" } },
|
|
2267
2267
|
"AWS::WAFv2::WebACL": { OnSourceDDoSProtectionConfig: { ALBLowReputationMode: "ACTIVE_UNDER_DDOS" } },
|
|
2268
2268
|
"AWS::VpcLattice::ServiceNetwork": { SharingConfig: { enabled: true } },
|
|
2269
|
+
"AWS::VpcLattice::AccessLogSubscription": { ServiceNetworkLogType: "SERVICE" },
|
|
2270
|
+
"AWS::VpcLattice::ResourceGateway": {
|
|
2271
|
+
IpAddressType: "IPV4",
|
|
2272
|
+
Ipv4AddressesPerEni: 16,
|
|
2273
|
+
ResourceConfigDnsResolution: "PUBLIC"
|
|
2274
|
+
},
|
|
2275
|
+
"AWS::VpcLattice::ResourceConfiguration": { AllowAssociationToSharableServiceNetwork: true },
|
|
2276
|
+
"AWS::SES::DedicatedIpPool": { ScalingMode: "STANDARD" },
|
|
2277
|
+
"AWS::CodeDeploy::Application": { ComputePlatform: "Server" },
|
|
2278
|
+
"AWS::EC2::TransitGatewayAttachment": { Options: {
|
|
2279
|
+
DnsSupport: "disable",
|
|
2280
|
+
SecurityGroupReferencingSupport: "enable",
|
|
2281
|
+
Ipv6Support: "disable",
|
|
2282
|
+
ApplianceModeSupport: "disable"
|
|
2283
|
+
} },
|
|
2284
|
+
"AWS::Backup::RestoreTestingPlan": {
|
|
2285
|
+
StartWindowHours: 24,
|
|
2286
|
+
ScheduleExpressionTimezone: "Etc/UTC"
|
|
2287
|
+
},
|
|
2269
2288
|
"AWS::AmazonMQ::Broker": {
|
|
2270
2289
|
AuthenticationStrategy: "SIMPLE",
|
|
2271
2290
|
EncryptionOptions: { UseAwsOwnedKey: true },
|
|
@@ -2970,6 +2989,7 @@ const KNOWN_DEFAULT_ONE_OF_PATHS = {
|
|
|
2970
2989
|
"AWS::OpenSearchService::Domain": { "EBSOptions.VolumeType": ["gp3", "gp2"] }
|
|
2971
2990
|
};
|
|
2972
2991
|
const KNOWN_DEFAULT_PATHS = {
|
|
2992
|
+
"AWS::Backup::RestoreTestingPlan": { "RecoveryPointSelection.SelectionWindowDays": 30 },
|
|
2973
2993
|
"AWS::IoT::TopicRule": { "TopicRulePayload.AwsIotSqlVersion": "2015-10-08" },
|
|
2974
2994
|
"AWS::SageMaker::DataQualityJobDefinition": {
|
|
2975
2995
|
"DataQualityJobInput.BatchTransformInput.S3DataDistributionType": "FullyReplicated",
|
|
@@ -3564,6 +3584,7 @@ function ebOptionSettingTier(namespace, optionName, value, envType, siblingOptio
|
|
|
3564
3584
|
const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
3565
3585
|
"AWS::ApiGateway::ApiKey": new Set(["Value"]),
|
|
3566
3586
|
"AWS::Backup::BackupVault": new Set(["EncryptionKeyArn"]),
|
|
3587
|
+
"AWS::Lambda::Version": new Set(["Description"]),
|
|
3567
3588
|
"AWS::Batch::JobQueue": new Set(["JobQueueType"]),
|
|
3568
3589
|
"AWS::ECS::Service": new Set(["AvailabilityZoneRebalancing", "PlatformVersion"]),
|
|
3569
3590
|
"AWS::KinesisAnalyticsV2::Application": new Set(["ApplicationMaintenanceConfiguration"]),
|
|
@@ -5878,6 +5899,7 @@ const notRestored = (...restoreSourceKeys) => ({ declared }) => restoreSourceKey
|
|
|
5878
5899
|
const MEANINGFUL_WHEN_OFF = {
|
|
5879
5900
|
"AWS::KMS::Key": { Enabled: () => true },
|
|
5880
5901
|
"AWS::ServiceCatalog::TagOption": { Active: () => true },
|
|
5902
|
+
"AWS::VpcLattice::ResourceConfiguration": { AllowAssociationToSharableServiceNetwork: () => true },
|
|
5881
5903
|
"AWS::SQS::Queue": { SqsManagedSseEnabled: ({ declared, live }) => declared["KmsMasterKeyId"] === void 0 && live["KmsMasterKeyId"] === void 0 },
|
|
5882
5904
|
"AWS::EC2::VPC": { EnableDnsSupport: () => true },
|
|
5883
5905
|
"AWS::EC2::Instance": { SourceDestCheck: () => true },
|
|
@@ -5965,7 +5987,8 @@ const DEFAULT_SG_LIST_PATHS = {
|
|
|
5965
5987
|
"AWS::EC2::Instance": "SecurityGroupIds",
|
|
5966
5988
|
"AWS::DAX::Cluster": "SecurityGroupIds",
|
|
5967
5989
|
"AWS::DMS::ReplicationInstance": "VpcSecurityGroupIds",
|
|
5968
|
-
"AWS::EC2::ClientVpnEndpoint": "SecurityGroupIds"
|
|
5990
|
+
"AWS::EC2::ClientVpnEndpoint": "SecurityGroupIds",
|
|
5991
|
+
"AWS::VpcLattice::ResourceGateway": "SecurityGroupIds"
|
|
5969
5992
|
};
|
|
5970
5993
|
/** #1269 fold decision for an UNDECLARED default-SUBNET list (RedshiftServerless Workgroup
|
|
5971
5994
|
* SubnetIds). Unlike the SG gate (which folds only a SINGLE default SG), a workgroup placed into
|
|
@@ -6371,21 +6394,23 @@ function stripInjectedJsonStringDefaults(declared, live, defaults) {
|
|
|
6371
6394
|
function isCfnGeneratedName(value, constructPath, physicalId, logicalId) {
|
|
6372
6395
|
if (typeof value !== "string" || value === physicalId) return false;
|
|
6373
6396
|
if (logicalId && value === logicalId) return true;
|
|
6397
|
+
const valueLc = value.toLowerCase();
|
|
6374
6398
|
if (logicalId && CFN_RANDOM_SUFFIX.test(value)) {
|
|
6375
|
-
const base =
|
|
6376
|
-
|
|
6399
|
+
const base = valueLc.replace(CFN_RANDOM_SUFFIX, "");
|
|
6400
|
+
const logicalLc = logicalId.toLowerCase();
|
|
6401
|
+
if (base.length > logicalLc.length && base.endsWith(`-${logicalLc}`)) return true;
|
|
6377
6402
|
}
|
|
6378
6403
|
if (!constructPath) return false;
|
|
6379
|
-
const stackName = constructPath.split("/")[0];
|
|
6404
|
+
const stackName = constructPath.split("/")[0]?.toLowerCase();
|
|
6380
6405
|
if (!stackName || !CFN_RANDOM_SUFFIX.test(value)) return false;
|
|
6381
|
-
if (
|
|
6406
|
+
if (valueLc.startsWith(`${stackName}-`)) return true;
|
|
6382
6407
|
if (!logicalId) return false;
|
|
6383
|
-
const base =
|
|
6408
|
+
const base = valueLc.replace(CFN_RANDOM_SUFFIX, "");
|
|
6384
6409
|
const sep = base.lastIndexOf("-");
|
|
6385
6410
|
if (sep <= 0) return false;
|
|
6386
6411
|
const stackPart = base.slice(0, sep);
|
|
6387
6412
|
const logicalPart = base.slice(sep + 1);
|
|
6388
|
-
return stackPart.length < stackName.length && stackName.startsWith(stackPart) && logicalPart.length > 0 && logicalId.startsWith(logicalPart);
|
|
6413
|
+
return stackPart.length < stackName.length && stackName.startsWith(stackPart) && logicalPart.length > 0 && logicalId.toLowerCase().startsWith(logicalPart);
|
|
6389
6414
|
}
|
|
6390
6415
|
function isSelfEchoTrivialEmpty(v, physicalId) {
|
|
6391
6416
|
if (physicalId === void 0 || v === null || typeof v !== "object" || Array.isArray(v)) return false;
|
|
@@ -14133,7 +14158,8 @@ const DEFAULT_SG_LIST_TYPES = new Set([
|
|
|
14133
14158
|
"AWS::EC2::Instance",
|
|
14134
14159
|
"AWS::DAX::Cluster",
|
|
14135
14160
|
"AWS::DMS::ReplicationInstance",
|
|
14136
|
-
"AWS::EC2::ClientVpnEndpoint"
|
|
14161
|
+
"AWS::EC2::ClientVpnEndpoint",
|
|
14162
|
+
"AWS::VpcLattice::ResourceGateway"
|
|
14137
14163
|
]);
|
|
14138
14164
|
const DEFAULT_SUBNET_LIST_TYPES = new Set(["AWS::RedshiftServerless::Workgroup"]);
|
|
14139
14165
|
const defaultSgIdsCache = /* @__PURE__ */ new Map();
|
|
@@ -19125,6 +19151,10 @@ const REVERT_SET_DEFAULT_PATHS = new Set([
|
|
|
19125
19151
|
"AWS::Cognito::UserPoolClient\0RefreshTokenValidity",
|
|
19126
19152
|
"AWS::RUM::AppMonitor\0CustomEvents",
|
|
19127
19153
|
"AWS::ServiceCatalog::TagOption\0Active",
|
|
19154
|
+
"AWS::VpcLattice::ResourceConfiguration\0AllowAssociationToSharableServiceNetwork",
|
|
19155
|
+
"AWS::Backup::RestoreTestingPlan\0StartWindowHours",
|
|
19156
|
+
"AWS::Backup::RestoreTestingPlan\0ScheduleExpressionTimezone",
|
|
19157
|
+
"AWS::EC2::TransitGatewayAttachment\0Options",
|
|
19128
19158
|
"AWS::Lambda::Url\0InvokeMode",
|
|
19129
19159
|
"AWS::RolesAnywhere::Profile\0DurationSeconds",
|
|
19130
19160
|
"AWS::RolesAnywhere::Profile\0AttributeMappings",
|