cdk-real-drift 0.4.34 → 0.4.35
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 +21 -9
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2290,6 +2290,7 @@ const KNOWN_DEFAULTS = {
|
|
|
2290
2290
|
"AWS::CodeGuruProfiler::ProfilingGroup": { ComputePlatform: "Default" },
|
|
2291
2291
|
"AWS::ServiceCatalog::CloudFormationProduct": { ProductType: "CLOUD_FORMATION_TEMPLATE" },
|
|
2292
2292
|
"AWS::InternetMonitor::Monitor": { Status: "ACTIVE" },
|
|
2293
|
+
"AWS::Athena::DataCatalog": { Status: "CREATE_COMPLETE" },
|
|
2293
2294
|
"AWS::RolesAnywhere::Profile": {
|
|
2294
2295
|
DurationSeconds: 3600,
|
|
2295
2296
|
AttributeMappings: [
|
|
@@ -2686,6 +2687,7 @@ const CONTEXT_ARN_DEFAULTS = {
|
|
|
2686
2687
|
"AWS::AutoScaling::AutoScalingGroup": { ServiceLinkedRoleARN: "arn:{partition}:iam::{accountId}:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling" },
|
|
2687
2688
|
"AWS::LakeFormation::Tag": { CatalogId: "{accountId}" },
|
|
2688
2689
|
"AWS::S3::AccessPoint": { BucketAccountId: "{accountId}" },
|
|
2690
|
+
"AWS::EC2::VPCPeeringConnection": { PeerOwnerId: "{accountId}" },
|
|
2689
2691
|
"AWS::Chatbot::SlackChannelConfiguration": { GuardrailPolicies: ["arn:{partition}:iam::aws:policy/AdministratorAccess"] }
|
|
2690
2692
|
};
|
|
2691
2693
|
const ENGINE_DEFAULTS = {
|
|
@@ -4568,13 +4570,21 @@ const NESTED_ARRAY_IDENTITY = {
|
|
|
4568
4570
|
"AWS::SecretsManager::Secret": { ReplicaRegions: "Region" },
|
|
4569
4571
|
"AWS::ApiGateway::Stage": { MethodSettings: "HttpMethod" }
|
|
4570
4572
|
};
|
|
4571
|
-
const CLUSTER_ECHO_CHILD = {
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4573
|
+
const CLUSTER_ECHO_CHILD = {
|
|
4574
|
+
"AWS::RDS::DBInstance": {
|
|
4575
|
+
parentType: "AWS::RDS::DBCluster",
|
|
4576
|
+
parentIdKey: "DBClusterIdentifier",
|
|
4577
|
+
aliases: {
|
|
4578
|
+
VPCSecurityGroups: "VpcSecurityGroupIds",
|
|
4579
|
+
EnablePerformanceInsights: "PerformanceInsightsEnabled"
|
|
4580
|
+
}
|
|
4581
|
+
},
|
|
4582
|
+
"AWS::Neptune::DBInstance": {
|
|
4583
|
+
parentType: "AWS::Neptune::DBCluster",
|
|
4584
|
+
parentIdKey: "DBClusterIdentifier",
|
|
4585
|
+
aliases: {}
|
|
4576
4586
|
}
|
|
4577
|
-
}
|
|
4587
|
+
};
|
|
4578
4588
|
const isKeyValueEntry = (t) => !!t && typeof t === "object" && typeof t.Key === "string" && "Value" in t;
|
|
4579
4589
|
const REFLECTED_CHILD_PROPS = { "AWS::SNS::Topic": "Subscription" };
|
|
4580
4590
|
const IAM_PRINCIPAL_POLICY_TYPES = new Set([
|
|
@@ -9902,16 +9912,18 @@ function buildBucketNotificationManaged(desired) {
|
|
|
9902
9912
|
return managed;
|
|
9903
9913
|
}
|
|
9904
9914
|
function buildClusterEchoModels(desired) {
|
|
9915
|
+
const parentTypes = new Set(Object.values(CLUSTER_ECHO_CHILD).map((s) => s.parentType));
|
|
9905
9916
|
const clusterByPhys = {};
|
|
9906
9917
|
for (const r of desired.resources) {
|
|
9907
|
-
if (r.resourceType
|
|
9918
|
+
if (!parentTypes.has(r.resourceType) || !r.physicalId) continue;
|
|
9908
9919
|
const live = desired.ctx.liveAttrs[r.logicalId];
|
|
9909
9920
|
if (live && typeof live === "object") clusterByPhys[r.physicalId] = live;
|
|
9910
9921
|
}
|
|
9911
9922
|
const map = {};
|
|
9912
9923
|
for (const r of desired.resources) {
|
|
9913
|
-
|
|
9914
|
-
|
|
9924
|
+
const spec = CLUSTER_ECHO_CHILD[r.resourceType];
|
|
9925
|
+
if (!spec || !r.physicalId) continue;
|
|
9926
|
+
const clusterId = r.declared?.[spec.parentIdKey];
|
|
9915
9927
|
if (typeof clusterId !== "string") continue;
|
|
9916
9928
|
const clusterLive = clusterByPhys[clusterId];
|
|
9917
9929
|
if (clusterLive) map[r.physicalId] = clusterLive;
|