@digitraffic/common 2025.1.15-1 → 2025.1.15-2
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.
@@ -129,10 +129,13 @@ export class DbStack extends Stack {
|
|
129
129
|
})
|
130
130
|
: new DatabaseCluster(this, instanceName, parameters);
|
131
131
|
// this workaround should prevent stack failing on version upgrade
|
132
|
+
// https://github.com/aws/aws-cdk/issues/21758
|
133
|
+
// https://github.com/aws/aws-cdk/pull/22185
|
134
|
+
// Maybe this could be removed completely as we don't update db with the CDK?
|
132
135
|
const cfnInstances = cluster.node.children.filter((child) => child instanceof CfnDBInstance);
|
133
|
-
if (cfnInstances.length === 0) {
|
134
|
-
|
135
|
-
}
|
136
|
+
// if (cfnInstances.length === 0) {
|
137
|
+
// throw new Error("Couldn't pull CfnDBInstances from the L1 constructs!");
|
138
|
+
// }
|
136
139
|
cfnInstances.forEach((cfnInstance) => delete cfnInstance.engineVersion);
|
137
140
|
return cluster;
|
138
141
|
}
|