cdk-real-drift 0.12.40 → 0.12.42
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 +20 -9
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3463,7 +3463,7 @@ function isJsonStringStructEqual(a, b) {
|
|
|
3463
3463
|
const JSON_STRING_PROPS = { "AWS::Config::ConfigRule": new Set(["InputParameters"]) };
|
|
3464
3464
|
const JSON_STRING_DEFAULT_FILLS = { "AWS::CE::CostCategory": { Rules: { Type: "REGULAR" } } };
|
|
3465
3465
|
const CASE_INSENSITIVE_PATHS = {
|
|
3466
|
-
"AWS::Route53::RecordSet": new Set(["AliasTarget.DNSName"]),
|
|
3466
|
+
"AWS::Route53::RecordSet": new Set(["Name", "AliasTarget.DNSName"]),
|
|
3467
3467
|
"AWS::Batch::ComputeEnvironment": new Set(["Type"]),
|
|
3468
3468
|
"AWS::EMRServerless::Application": new Set(["Type"]),
|
|
3469
3469
|
"AWS::RDS::DBInstance": new Set(["DBInstanceIdentifier"]),
|
|
@@ -3691,6 +3691,7 @@ function isTrailingSlashEqual(a, b) {
|
|
|
3691
3691
|
const VERSION_PREFIX_PATHS = {
|
|
3692
3692
|
"AWS::RDS::DBInstance": new Set(["EngineVersion"]),
|
|
3693
3693
|
"AWS::RDS::DBCluster": new Set(["EngineVersion"]),
|
|
3694
|
+
"AWS::RDS::GlobalCluster": new Set(["EngineVersion"]),
|
|
3694
3695
|
"AWS::Neptune::DBCluster": new Set(["EngineVersion"]),
|
|
3695
3696
|
"AWS::DocDB::DBCluster": new Set(["EngineVersion"]),
|
|
3696
3697
|
"AWS::ElastiCache::ReplicationGroup": new Set(["EngineVersion"]),
|
|
@@ -4476,6 +4477,7 @@ async function listExports(client, accountId, region) {
|
|
|
4476
4477
|
return exports;
|
|
4477
4478
|
}
|
|
4478
4479
|
const crossRegionExportsCache = /* @__PURE__ */ new Map();
|
|
4480
|
+
const crossRegionExportsFetched = /* @__PURE__ */ new Map();
|
|
4479
4481
|
const CROSS_REGION_EXPORT_READER_TYPE = "Custom::CrossRegionExportReader";
|
|
4480
4482
|
/**
|
|
4481
4483
|
* Scan the parsed template for `Fn::GetAtt` references whose logicalId is a
|
|
@@ -4521,16 +4523,21 @@ function collectCrossRegionExportNames(template) {
|
|
|
4521
4523
|
}
|
|
4522
4524
|
async function getCrossRegionExports(ssm, accountId, region, names) {
|
|
4523
4525
|
const cacheKey = `${accountId}:${region}`;
|
|
4524
|
-
const
|
|
4525
|
-
|
|
4526
|
-
const
|
|
4527
|
-
|
|
4528
|
-
|
|
4526
|
+
const resolved = crossRegionExportsCache.get(cacheKey) ?? {};
|
|
4527
|
+
const attempted = crossRegionExportsFetched.get(cacheKey) ?? /* @__PURE__ */ new Set();
|
|
4528
|
+
const toFetch = names.filter((n) => !attempted.has(n));
|
|
4529
|
+
if (toFetch.length === 0) return resolved;
|
|
4530
|
+
const nextResolved = { ...resolved };
|
|
4531
|
+
const nextAttempted = new Set(attempted);
|
|
4532
|
+
for (let i = 0; i < toFetch.length; i += 10) {
|
|
4533
|
+
const batch = toFetch.slice(i, i + 10);
|
|
4529
4534
|
const res = await ssm.send(new GetParametersCommand({ Names: batch }));
|
|
4530
|
-
for (const p of res.Parameters ?? []) if (p.Name && typeof p.Value === "string")
|
|
4535
|
+
for (const p of res.Parameters ?? []) if (p.Name && typeof p.Value === "string") nextResolved[p.Name] = p.Value;
|
|
4536
|
+
for (const n of batch) nextAttempted.add(n);
|
|
4531
4537
|
}
|
|
4532
|
-
crossRegionExportsCache.set(cacheKey,
|
|
4533
|
-
|
|
4538
|
+
crossRegionExportsCache.set(cacheKey, nextResolved);
|
|
4539
|
+
crossRegionExportsFetched.set(cacheKey, nextAttempted);
|
|
4540
|
+
return nextResolved;
|
|
4534
4541
|
}
|
|
4535
4542
|
async function listStackResources(client, stackName) {
|
|
4536
4543
|
const physIds = {};
|
|
@@ -15665,6 +15672,10 @@ const REVERT_SET_DEFAULT_PATHS = new Set([
|
|
|
15665
15672
|
"AWS::EC2::Subnet\0AssignIpv6AddressOnCreation",
|
|
15666
15673
|
"AWS::EC2::Subnet\0PrivateDnsNameOptionsOnLaunch",
|
|
15667
15674
|
"AWS::EC2::Subnet\0EnableDns64",
|
|
15675
|
+
"AWS::EC2::VPC\0EnableDnsSupport",
|
|
15676
|
+
"AWS::EC2::NetworkInterface\0SourceDestCheck",
|
|
15677
|
+
"AWS::EC2::Instance\0SourceDestCheck",
|
|
15678
|
+
"AWS::EC2::Instance\0InstanceInitiatedShutdownBehavior",
|
|
15668
15679
|
"AWS::EC2::ClientVpnEndpoint\0VpnPort",
|
|
15669
15680
|
"AWS::EC2::ClientVpnEndpoint\0DisconnectOnSessionTimeout",
|
|
15670
15681
|
"AWS::EC2::ClientVpnEndpoint\0SplitTunnel",
|