cdk-real-drift 0.16.1 → 0.16.3
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 +90 -14
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13,6 +13,7 @@ import { CloudFormationClient, DescribeStackResourcesCommand, DescribeStacksComm
|
|
|
13
13
|
import { DescribeAddressesCommand, DescribeClientVpnAuthorizationRulesCommand, DescribeClientVpnEndpointsCommand, DescribeClientVpnTargetNetworksCommand, DescribeFlowLogsCommand, DescribeInternetGatewaysCommand, DescribeLaunchTemplateVersionsCommand, DescribeNatGatewaysCommand, DescribeNetworkAclsCommand, DescribeRouteTablesCommand, DescribeSecurityGroupsCommand, DescribeSubnetsCommand, DescribeTransitGatewayAttachmentsCommand, DescribeTransitGatewayRouteTablesCommand, DescribeVpcEndpointsCommand, DescribeVpcsCommand, EC2Client, GetDefaultCreditSpecificationCommand, GetEbsEncryptionByDefaultCommand, GetInstanceMetadataDefaultsCommand, ModifyClientVpnEndpointCommand } from "@aws-sdk/client-ec2";
|
|
14
14
|
import { DescribeServicesCommand, ECSClient, ListAccountSettingsCommand, ListServicesCommand, UpdateServiceCommand } from "@aws-sdk/client-ecs";
|
|
15
15
|
import { DescribeCertificatesCommand, DescribeDBClustersCommand, DescribeDBInstancesCommand, DescribeOptionGroupOptionsCommand, RDSClient } from "@aws-sdk/client-rds";
|
|
16
|
+
import { DatabaseMigrationServiceClient, DescribeEndpointsCommand, DescribeOrderableReplicationInstancesCommand, DescribeReplicationInstancesCommand, DescribeReplicationSubnetGroupsCommand, DescribeReplicationTasksCommand, ListTagsForResourceCommand } from "@aws-sdk/client-database-migration-service";
|
|
16
17
|
import { DescribeParametersCommand, GetParametersCommand, GetServiceSettingCommand, SSMClient } from "@aws-sdk/client-ssm";
|
|
17
18
|
import jsonata from "jsonata";
|
|
18
19
|
import { KMSClient, ListAliasesCommand, ListGrantsCommand, RevokeGrantCommand } from "@aws-sdk/client-kms";
|
|
@@ -39,14 +40,13 @@ import { BudgetsClient, DescribeBudgetCommand } from "@aws-sdk/client-budgets";
|
|
|
39
40
|
import { DescribeConfigurationSettingsCommand, ElasticBeanstalkClient, UpdateApplicationCommand, UpdateApplicationResourceLifecycleCommand, UpdateEnvironmentCommand } from "@aws-sdk/client-elastic-beanstalk";
|
|
40
41
|
import { CognitoSyncClient, GetCognitoEventsCommand, SetCognitoEventsCommand } from "@aws-sdk/client-cognito-sync";
|
|
41
42
|
import { BatchGetProjectsCommand, BatchGetReportGroupsCommand, CodeBuildClient, UpdateReportGroupCommand } from "@aws-sdk/client-codebuild";
|
|
42
|
-
import { DescribeDBClustersCommand as DescribeDBClustersCommand$1, DescribeDBInstancesCommand as DescribeDBInstancesCommand$1, DocDBClient, ListTagsForResourceCommand, ModifyDBClusterCommand, ModifyDBInstanceCommand } from "@aws-sdk/client-docdb";
|
|
43
|
+
import { DescribeDBClustersCommand as DescribeDBClustersCommand$1, DescribeDBInstancesCommand as DescribeDBInstancesCommand$1, DocDBClient, ListTagsForResourceCommand as ListTagsForResourceCommand$1, ModifyDBClusterCommand, ModifyDBInstanceCommand } from "@aws-sdk/client-docdb";
|
|
43
44
|
import { DAXClient, DescribeClustersCommand, DescribeParameterGroupsCommand, DescribeParametersCommand as DescribeParametersCommand$1, DescribeSubnetGroupsCommand, ListTagsCommand, UpdateClusterCommand, UpdateParameterGroupCommand } from "@aws-sdk/client-dax";
|
|
44
45
|
import { AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreatePolicyVersionCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetGroupPolicyCommand, GetPolicyCommand as GetPolicyCommand$1, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListEntitiesForPolicyCommand, ListPolicyVersionsCommand, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPolicyCommand } from "@aws-sdk/client-iam";
|
|
45
|
-
import { DescribeCacheClustersCommand, DescribeCacheParameterGroupsCommand, DescribeCacheParametersCommand, DescribeReplicationGroupsCommand, DescribeUsersCommand, ElastiCacheClient, ListTagsForResourceCommand as ListTagsForResourceCommand$
|
|
46
|
+
import { DescribeCacheClustersCommand, DescribeCacheParameterGroupsCommand, DescribeCacheParametersCommand, DescribeReplicationGroupsCommand, DescribeUsersCommand, ElastiCacheClient, ListTagsForResourceCommand as ListTagsForResourceCommand$2, ModifyCacheParameterGroupCommand, ResetCacheParameterGroupCommand } from "@aws-sdk/client-elasticache";
|
|
46
47
|
import { DescribeParameterGroupsCommand as DescribeParameterGroupsCommand$1, DescribeParametersCommand as DescribeParametersCommand$2, DescribeUsersCommand as DescribeUsersCommand$1, MemoryDBClient, ResetParameterGroupCommand, UpdateParameterGroupCommand as UpdateParameterGroupCommand$1 } from "@aws-sdk/client-memorydb";
|
|
47
48
|
import { CloudWatchClient, DescribeAnomalyDetectorsCommand, PutAnomalyDetectorCommand } from "@aws-sdk/client-cloudwatch";
|
|
48
49
|
import { DLMClient, GetLifecyclePolicyCommand, UpdateLifecyclePolicyCommand } from "@aws-sdk/client-dlm";
|
|
49
|
-
import { DatabaseMigrationServiceClient, DescribeEndpointsCommand, DescribeReplicationInstancesCommand, DescribeReplicationSubnetGroupsCommand, DescribeReplicationTasksCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$2 } from "@aws-sdk/client-database-migration-service";
|
|
50
50
|
import { DescribeResourceCommand, EntityNotFoundException, LakeFormationClient } from "@aws-sdk/client-lakeformation";
|
|
51
51
|
import { GetJobTemplateCommand, GetQueueCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$3, MediaConvertClient } from "@aws-sdk/client-mediaconvert";
|
|
52
52
|
import { ConfigServiceClient, DescribeConfigRulesCommand, DescribeConfigurationRecordersCommand, DescribeDeliveryChannelsCommand, PutConfigRuleCommand, PutConfigurationRecorderCommand } from "@aws-sdk/client-config-service";
|
|
@@ -1920,6 +1920,8 @@ function buildCorpusCase(resource, liveRaw, schema, opts, findings) {
|
|
|
1920
1920
|
const rdsOptCatalog = resource.physicalId && opts.rdsOptionSettingDefaults?.[resource.physicalId] ? opts.rdsOptionSettingDefaults[resource.physicalId] : void 0;
|
|
1921
1921
|
const listenerArn = resource.resourceType === "AWS::GlobalAccelerator::EndpointGroup" ? resource.declared?.ListenerArn : void 0;
|
|
1922
1922
|
const gaListenerPort = typeof listenerArn === "string" && opts.siblingListenerPorts?.[listenerArn] !== void 0 ? { [listenerArn]: opts.siblingListenerPorts[listenerArn] } : void 0;
|
|
1923
|
+
const dmsClass = resource.resourceType === "AWS::DMS::ReplicationInstance" ? resource.declared?.ReplicationInstanceClass : void 0;
|
|
1924
|
+
const dmsStorageDefault = typeof dmsClass === "string" && opts.accountDefaults?.dmsAllocatedStorageDefaults?.[dmsClass] !== void 0 ? { dmsAllocatedStorageDefaults: { [dmsClass]: opts.accountDefaults.dmsAllocatedStorageDefaults[dmsClass] } } : void 0;
|
|
1923
1925
|
return sanitizeAccountId({
|
|
1924
1926
|
corpusVersion: 1,
|
|
1925
1927
|
resource: {
|
|
@@ -1956,7 +1958,8 @@ function buildCorpusCase(resource, liveRaw, schema, opts, findings) {
|
|
|
1956
1958
|
...tgRegistrarId ? { siblingTargetGroupRegistrars: [tgRegistrarId] } : {},
|
|
1957
1959
|
...echoModel && resource.physicalId ? { clusterEchoModel: { [resource.physicalId]: echoModel } } : {},
|
|
1958
1960
|
...rdsOptCatalog && resource.physicalId ? { rdsOptionSettingDefaults: { [resource.physicalId]: rdsOptCatalog } } : {},
|
|
1959
|
-
...gaListenerPort ? { siblingListenerPorts: gaListenerPort } : {}
|
|
1961
|
+
...gaListenerPort ? { siblingListenerPorts: gaListenerPort } : {},
|
|
1962
|
+
...dmsStorageDefault ? { accountDefaults: dmsStorageDefault } : {}
|
|
1960
1963
|
},
|
|
1961
1964
|
expected: findings
|
|
1962
1965
|
}, opts.accountId);
|
|
@@ -2096,6 +2099,11 @@ const KNOWN_DEFAULTS = {
|
|
|
2096
2099
|
"AWS::KinesisAnalyticsV2::Application": { ApplicationMode: "STREAMING" },
|
|
2097
2100
|
"AWS::Events::ApiDestination": { InvocationRateLimitPerSecond: 300 },
|
|
2098
2101
|
"AWS::DMS::Endpoint": { SslMode: "none" },
|
|
2102
|
+
"AWS::DMS::ReplicationInstance": {
|
|
2103
|
+
AutoMinorVersionUpgrade: true,
|
|
2104
|
+
PubliclyAccessible: true,
|
|
2105
|
+
NetworkType: "IPV4"
|
|
2106
|
+
},
|
|
2099
2107
|
"AWS::MediaConvert::Queue": {
|
|
2100
2108
|
PricingPlan: "ON_DEMAND",
|
|
2101
2109
|
Status: "ACTIVE"
|
|
@@ -2295,7 +2303,10 @@ const KNOWN_DEFAULTS = {
|
|
|
2295
2303
|
Scheme: "internet-facing",
|
|
2296
2304
|
Type: "application"
|
|
2297
2305
|
},
|
|
2298
|
-
"AWS::ElasticLoadBalancingV2::Listener": {
|
|
2306
|
+
"AWS::ElasticLoadBalancingV2::Listener": {
|
|
2307
|
+
MutualAuthentication: { Mode: "off" },
|
|
2308
|
+
SslPolicy: "ELBSecurityPolicy-2016-08"
|
|
2309
|
+
},
|
|
2299
2310
|
"AWS::EC2::NatGateway": {
|
|
2300
2311
|
ConnectivityType: "public",
|
|
2301
2312
|
AvailabilityMode: "zonal"
|
|
@@ -2726,10 +2737,17 @@ const KNOWN_DEFAULTS = {
|
|
|
2726
2737
|
AuthorizationType: "NONE"
|
|
2727
2738
|
},
|
|
2728
2739
|
"AWS::ElasticLoadBalancingV2::ListenerRule": { IsDefault: false },
|
|
2729
|
-
"AWS::Glue::Crawler": {
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2740
|
+
"AWS::Glue::Crawler": {
|
|
2741
|
+
LakeFormationConfiguration: {
|
|
2742
|
+
AccountId: "",
|
|
2743
|
+
UseLakeFormationCredentials: false
|
|
2744
|
+
},
|
|
2745
|
+
SchemaChangePolicy: {
|
|
2746
|
+
UpdateBehavior: "UPDATE_IN_DATABASE",
|
|
2747
|
+
DeleteBehavior: "DEPRECATE_IN_DATABASE"
|
|
2748
|
+
},
|
|
2749
|
+
RecrawlPolicy: { RecrawlBehavior: "CRAWL_EVERYTHING" }
|
|
2750
|
+
},
|
|
2733
2751
|
"AWS::Config::ConfigRule": { EvaluationModes: [{ Mode: "DETECTIVE" }] },
|
|
2734
2752
|
"AWS::RUM::AppMonitor": {
|
|
2735
2753
|
Platform: "Web",
|
|
@@ -2912,6 +2930,7 @@ const KNOWN_DEFAULT_ONE_OF_PATHS = {
|
|
|
2912
2930
|
"AWS::Batch::ComputeEnvironment": { "ComputeResources.Ec2Configuration": [[{ ImageType: "ECS_AL2023" }], [{ ImageType: "ECS_AL2" }]] }
|
|
2913
2931
|
};
|
|
2914
2932
|
const KNOWN_DEFAULT_PATHS = {
|
|
2933
|
+
"AWS::IoT::TopicRule": { "TopicRulePayload.AwsIotSqlVersion": "2015-10-08" },
|
|
2915
2934
|
"AWS::SageMaker::DataQualityJobDefinition": {
|
|
2916
2935
|
"DataQualityJobInput.BatchTransformInput.S3DataDistributionType": "FullyReplicated",
|
|
2917
2936
|
"DataQualityJobInput.BatchTransformInput.S3InputMode": "File",
|
|
@@ -3281,6 +3300,9 @@ const GENERATED_TOPLEVEL_PATHS = {
|
|
|
3281
3300
|
"AWS::EC2::SecurityGroupIngress": new Set(["SourceSecurityGroupOwnerId", "GroupName"]),
|
|
3282
3301
|
"AWS::ECS::Service": new Set(["Role"]),
|
|
3283
3302
|
"AWS::SecretsManager::Secret": new Set(["Name"]),
|
|
3303
|
+
"AWS::DMS::ReplicationInstance": new Set(["ReplicationInstanceIdentifier"]),
|
|
3304
|
+
"AWS::DMS::Endpoint": new Set(["EndpointIdentifier"]),
|
|
3305
|
+
"AWS::DMS::ReplicationTask": new Set(["ReplicationTaskIdentifier"]),
|
|
3284
3306
|
"AWS::ElasticLoadBalancingV2::TargetGroup": new Set(["Name"]),
|
|
3285
3307
|
"AWS::ApplicationAutoScaling::ScalingPolicy": new Set([
|
|
3286
3308
|
"ResourceId",
|
|
@@ -3485,6 +3507,13 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
|
3485
3507
|
]),
|
|
3486
3508
|
"AWS::ApiGateway::Authorizer": new Set(["AuthType"]),
|
|
3487
3509
|
"AWS::DMS::Endpoint": new Set(["KmsKeyId"]),
|
|
3510
|
+
"AWS::DMS::ReplicationInstance": new Set([
|
|
3511
|
+
"EngineVersion",
|
|
3512
|
+
"AvailabilityZone",
|
|
3513
|
+
"PreferredMaintenanceWindow",
|
|
3514
|
+
"KmsKeyId"
|
|
3515
|
+
]),
|
|
3516
|
+
"AWS::DMS::ReplicationTask": new Set(["ReplicationTaskSettings"]),
|
|
3488
3517
|
"AWS::DAX::Cluster": new Set(["PreferredMaintenanceWindow"]),
|
|
3489
3518
|
"AWS::Lightsail::Instance": new Set(["AvailabilityZone"]),
|
|
3490
3519
|
"AWS::RDS::DBCluster": new Set([
|
|
@@ -5728,6 +5757,10 @@ const MEANINGFUL_WHEN_OFF = {
|
|
|
5728
5757
|
"AWS::ApplicationInsights::Application": { CWEMonitorEnabled: () => true },
|
|
5729
5758
|
"AWS::GuardDuty::Detector": { DataSources: () => true },
|
|
5730
5759
|
"AWS::Lambda::EventSourceMapping": { Enabled: () => true },
|
|
5760
|
+
"AWS::DMS::ReplicationInstance": {
|
|
5761
|
+
AutoMinorVersionUpgrade: () => true,
|
|
5762
|
+
PubliclyAccessible: () => true
|
|
5763
|
+
},
|
|
5731
5764
|
"AWS::ElasticLoadBalancingV2::TargetGroup": { HealthCheckEnabled: ({ declared }) => declared["TargetType"] !== "lambda" },
|
|
5732
5765
|
"AWS::MemoryDB::Cluster": {
|
|
5733
5766
|
TLSEnabled: () => true,
|
|
@@ -5790,7 +5823,8 @@ const DEFAULT_SG_LIST_PATHS = {
|
|
|
5790
5823
|
"AWS::AmazonMQ::Broker": "SecurityGroups",
|
|
5791
5824
|
"AWS::RedshiftServerless::Workgroup": "SecurityGroupIds",
|
|
5792
5825
|
"AWS::EC2::Instance": "SecurityGroupIds",
|
|
5793
|
-
"AWS::DAX::Cluster": "SecurityGroupIds"
|
|
5826
|
+
"AWS::DAX::Cluster": "SecurityGroupIds",
|
|
5827
|
+
"AWS::DMS::ReplicationInstance": "VpcSecurityGroupIds"
|
|
5794
5828
|
};
|
|
5795
5829
|
/** #1269 fold decision for an UNDECLARED default-SUBNET list (RedshiftServerless Workgroup
|
|
5796
5830
|
* SubnetIds). Unlike the SG gate (which folds only a SINGLE default SG), a workgroup placed into
|
|
@@ -7506,6 +7540,20 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
7506
7540
|
continue;
|
|
7507
7541
|
}
|
|
7508
7542
|
}
|
|
7543
|
+
if (resourceType === "AWS::DMS::ReplicationInstance" && k === "AllocatedStorage") {
|
|
7544
|
+
const cls = declared["ReplicationInstanceClass"];
|
|
7545
|
+
const derived = typeof cls === "string" ? opts.accountDefaults?.dmsAllocatedStorageDefaults?.[cls] : void 0;
|
|
7546
|
+
if (derived !== void 0) {
|
|
7547
|
+
findings.push({
|
|
7548
|
+
tier: matchesKnownDefault(v, derived) ? "atDefault" : "undeclared",
|
|
7549
|
+
logicalId,
|
|
7550
|
+
resourceType,
|
|
7551
|
+
path: k,
|
|
7552
|
+
actual: v
|
|
7553
|
+
});
|
|
7554
|
+
continue;
|
|
7555
|
+
}
|
|
7556
|
+
}
|
|
7509
7557
|
if (k in schema.defaults && matchesKnownDefault(v, schema.defaults[k]) || k in schema.defaultPaths && matchesKnownDefault(v, schema.defaultPaths[k]) || k in knownDef && matchesKnownDefault(v, knownDef[k]) || KNOWN_DEFAULT_ONE_OF[resourceType]?.[k]?.some((d) => matchesKnownDefault(v, d)) || VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS[resourceType]?.has(k) && !isTrivialEmpty(v) && !(k in knownDef) || clbDefaultSslPoliciesAtDefault(resourceType, k, v)) {
|
|
7510
7558
|
findings.push({
|
|
7511
7559
|
tier: "atDefault",
|
|
@@ -11440,7 +11488,7 @@ const readDlmLifecyclePolicy = async ({ physicalId, declared, region }) => {
|
|
|
11440
11488
|
};
|
|
11441
11489
|
async function attachDmsTags(c, arn, declared, model, label) {
|
|
11442
11490
|
try {
|
|
11443
|
-
const tags = projectTagList((await c.send(new ListTagsForResourceCommand
|
|
11491
|
+
const tags = projectTagList((await c.send(new ListTagsForResourceCommand({ ResourceArn: arn }))).TagList);
|
|
11444
11492
|
if (tags) model.Tags = tags;
|
|
11445
11493
|
} catch (err) {
|
|
11446
11494
|
const mirrored = mirrorDeclaredTags(declared.Tags);
|
|
@@ -11908,7 +11956,7 @@ const readElastiCacheParameterGroup = async ({ physicalId, declared, region, acc
|
|
|
11908
11956
|
if (accountId) {
|
|
11909
11957
|
const arn = `arn:${partitionForRegion(region).partition}:elasticache:${region}:${accountId}:parametergroup:${name}`;
|
|
11910
11958
|
try {
|
|
11911
|
-
const tags = projectTagList((await c.send(new ListTagsForResourceCommand$
|
|
11959
|
+
const tags = projectTagList((await c.send(new ListTagsForResourceCommand$2({ ResourceName: arn }))).TagList);
|
|
11912
11960
|
if (tags) model.Tags = tags;
|
|
11913
11961
|
} catch (err) {
|
|
11914
11962
|
const mirrored = mirrorDeclaredTags(declared.Tags);
|
|
@@ -12497,7 +12545,7 @@ const readServiceDiscoveryService = async ({ physicalId, declared, region }) =>
|
|
|
12497
12545
|
};
|
|
12498
12546
|
async function attachDocDbTags(c, arn, declared, model, label) {
|
|
12499
12547
|
try {
|
|
12500
|
-
const tags = projectTagList((await c.send(new ListTagsForResourceCommand({ ResourceName: arn }))).TagList);
|
|
12548
|
+
const tags = projectTagList((await c.send(new ListTagsForResourceCommand$1({ ResourceName: arn }))).TagList);
|
|
12501
12549
|
if (tags) model.Tags = tags;
|
|
12502
12550
|
} catch (err) {
|
|
12503
12551
|
const mirrored = mirrorDeclaredTags(declared.Tags);
|
|
@@ -13832,7 +13880,8 @@ const DEFAULT_SG_LIST_TYPES = new Set([
|
|
|
13832
13880
|
"AWS::RDS::DBInstance",
|
|
13833
13881
|
"AWS::DocDB::DBCluster",
|
|
13834
13882
|
"AWS::EC2::Instance",
|
|
13835
|
-
"AWS::DAX::Cluster"
|
|
13883
|
+
"AWS::DAX::Cluster",
|
|
13884
|
+
"AWS::DMS::ReplicationInstance"
|
|
13836
13885
|
]);
|
|
13837
13886
|
const DEFAULT_SUBNET_LIST_TYPES = new Set(["AWS::RedshiftServerless::Workgroup"]);
|
|
13838
13887
|
const defaultSgIdsCache = /* @__PURE__ */ new Map();
|
|
@@ -13967,6 +14016,29 @@ async function fetchRdsDefaultCaIdentifier(region) {
|
|
|
13967
14016
|
return;
|
|
13968
14017
|
}
|
|
13969
14018
|
}
|
|
14019
|
+
const dmsAllocatedStorageDefaultsCache = /* @__PURE__ */ new Map();
|
|
14020
|
+
async function fetchDmsAllocatedStorageDefaults(region) {
|
|
14021
|
+
const cached = dmsAllocatedStorageDefaultsCache.get(region);
|
|
14022
|
+
if (cached) return cached;
|
|
14023
|
+
const map = {};
|
|
14024
|
+
try {
|
|
14025
|
+
const c = new DatabaseMigrationServiceClient({
|
|
14026
|
+
region,
|
|
14027
|
+
...READ_RETRY
|
|
14028
|
+
});
|
|
14029
|
+
let marker;
|
|
14030
|
+
do {
|
|
14031
|
+
const r = await c.send(new DescribeOrderableReplicationInstancesCommand({
|
|
14032
|
+
Marker: marker,
|
|
14033
|
+
MaxRecords: 100
|
|
14034
|
+
}));
|
|
14035
|
+
for (const o of r.OrderableReplicationInstances ?? []) if (typeof o.ReplicationInstanceClass === "string" && typeof o.DefaultAllocatedStorage === "number") map[o.ReplicationInstanceClass] = o.DefaultAllocatedStorage;
|
|
14036
|
+
marker = r.Marker;
|
|
14037
|
+
} while (marker);
|
|
14038
|
+
} catch {}
|
|
14039
|
+
dmsAllocatedStorageDefaultsCache.set(region, map);
|
|
14040
|
+
return map;
|
|
14041
|
+
}
|
|
13970
14042
|
const instanceMetadataDefaultsCache = /* @__PURE__ */ new Map();
|
|
13971
14043
|
async function fetchInstanceMetadataDefaults(region) {
|
|
13972
14044
|
if (instanceMetadataDefaultsCache.has(region)) return instanceMetadataDefaultsCache.get(region);
|
|
@@ -14725,6 +14797,10 @@ async function gatherFindings(stackName, region, templateOverride, recoveryTempl
|
|
|
14725
14797
|
const v = await fetchRdsDefaultCaIdentifier(region);
|
|
14726
14798
|
if (v !== void 0) accountDefaults.rdsDefaultCaIdentifier = v;
|
|
14727
14799
|
}
|
|
14800
|
+
if (desired.resources.some((r) => r.resourceType === "AWS::DMS::ReplicationInstance")) {
|
|
14801
|
+
const m = await fetchDmsAllocatedStorageDefaults(region);
|
|
14802
|
+
if (Object.keys(m).length > 0) accountDefaults.dmsAllocatedStorageDefaults = m;
|
|
14803
|
+
}
|
|
14728
14804
|
const classifyOpts = {
|
|
14729
14805
|
accountId: desired.accountId,
|
|
14730
14806
|
region,
|