cdk-real-drift 0.4.34 → 0.4.36
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 +24 -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: [
|
|
@@ -2684,8 +2685,12 @@ const CONTEXT_ARN_DEFAULTS = {
|
|
|
2684
2685
|
"AWS::ResourceExplorer2::View": { Scope: "arn:{partition}:iam::{accountId}:root" },
|
|
2685
2686
|
"AWS::KinesisVideo::Stream": { KmsKeyId: "arn:{partition}:kms:{region}:{accountId}:alias/aws/kinesisvideo" },
|
|
2686
2687
|
"AWS::AutoScaling::AutoScalingGroup": { ServiceLinkedRoleARN: "arn:{partition}:iam::{accountId}:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling" },
|
|
2688
|
+
"AWS::Batch::ComputeEnvironment": { ServiceRole: "arn:{partition}:iam::{accountId}:role/aws-service-role/batch.amazonaws.com/AWSServiceRoleForBatch" },
|
|
2689
|
+
"AWS::CodeBuild::Project": { EncryptionKey: "arn:{partition}:kms:{region}:{accountId}:alias/aws/s3" },
|
|
2690
|
+
"AWS::SSM::MaintenanceWindowTask": { ServiceRoleArn: "arn:{partition}:iam::{accountId}:role/aws-service-role/ssm.amazonaws.com/AWSServiceRoleForAmazonSSM" },
|
|
2687
2691
|
"AWS::LakeFormation::Tag": { CatalogId: "{accountId}" },
|
|
2688
2692
|
"AWS::S3::AccessPoint": { BucketAccountId: "{accountId}" },
|
|
2693
|
+
"AWS::EC2::VPCPeeringConnection": { PeerOwnerId: "{accountId}" },
|
|
2689
2694
|
"AWS::Chatbot::SlackChannelConfiguration": { GuardrailPolicies: ["arn:{partition}:iam::aws:policy/AdministratorAccess"] }
|
|
2690
2695
|
};
|
|
2691
2696
|
const ENGINE_DEFAULTS = {
|
|
@@ -4568,13 +4573,21 @@ const NESTED_ARRAY_IDENTITY = {
|
|
|
4568
4573
|
"AWS::SecretsManager::Secret": { ReplicaRegions: "Region" },
|
|
4569
4574
|
"AWS::ApiGateway::Stage": { MethodSettings: "HttpMethod" }
|
|
4570
4575
|
};
|
|
4571
|
-
const CLUSTER_ECHO_CHILD = {
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
+
const CLUSTER_ECHO_CHILD = {
|
|
4577
|
+
"AWS::RDS::DBInstance": {
|
|
4578
|
+
parentType: "AWS::RDS::DBCluster",
|
|
4579
|
+
parentIdKey: "DBClusterIdentifier",
|
|
4580
|
+
aliases: {
|
|
4581
|
+
VPCSecurityGroups: "VpcSecurityGroupIds",
|
|
4582
|
+
EnablePerformanceInsights: "PerformanceInsightsEnabled"
|
|
4583
|
+
}
|
|
4584
|
+
},
|
|
4585
|
+
"AWS::Neptune::DBInstance": {
|
|
4586
|
+
parentType: "AWS::Neptune::DBCluster",
|
|
4587
|
+
parentIdKey: "DBClusterIdentifier",
|
|
4588
|
+
aliases: {}
|
|
4576
4589
|
}
|
|
4577
|
-
}
|
|
4590
|
+
};
|
|
4578
4591
|
const isKeyValueEntry = (t) => !!t && typeof t === "object" && typeof t.Key === "string" && "Value" in t;
|
|
4579
4592
|
const REFLECTED_CHILD_PROPS = { "AWS::SNS::Topic": "Subscription" };
|
|
4580
4593
|
const IAM_PRINCIPAL_POLICY_TYPES = new Set([
|
|
@@ -9902,16 +9915,18 @@ function buildBucketNotificationManaged(desired) {
|
|
|
9902
9915
|
return managed;
|
|
9903
9916
|
}
|
|
9904
9917
|
function buildClusterEchoModels(desired) {
|
|
9918
|
+
const parentTypes = new Set(Object.values(CLUSTER_ECHO_CHILD).map((s) => s.parentType));
|
|
9905
9919
|
const clusterByPhys = {};
|
|
9906
9920
|
for (const r of desired.resources) {
|
|
9907
|
-
if (r.resourceType
|
|
9921
|
+
if (!parentTypes.has(r.resourceType) || !r.physicalId) continue;
|
|
9908
9922
|
const live = desired.ctx.liveAttrs[r.logicalId];
|
|
9909
9923
|
if (live && typeof live === "object") clusterByPhys[r.physicalId] = live;
|
|
9910
9924
|
}
|
|
9911
9925
|
const map = {};
|
|
9912
9926
|
for (const r of desired.resources) {
|
|
9913
|
-
|
|
9914
|
-
|
|
9927
|
+
const spec = CLUSTER_ECHO_CHILD[r.resourceType];
|
|
9928
|
+
if (!spec || !r.physicalId) continue;
|
|
9929
|
+
const clusterId = r.declared?.[spec.parentIdKey];
|
|
9915
9930
|
if (typeof clusterId !== "string") continue;
|
|
9916
9931
|
const clusterLive = clusterByPhys[clusterId];
|
|
9917
9932
|
if (clusterLive) map[r.physicalId] = clusterLive;
|