cdk-real-drift 0.2.39 → 0.2.40

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 CHANGED
@@ -3243,6 +3243,9 @@ async function loadDesired(client, stackName, region, templateOverride, recovery
3243
3243
  const clustersWithSiblingCapacityProviders = collectClustersWithSiblingCapacityProviders(template.Resources ?? {});
3244
3244
  for (const [logicalId, res] of Object.entries(template.Resources ?? {})) {
3245
3245
  if (res.Type === "AWS::CDK::Metadata") continue;
3246
+ if (typeof res.Condition === "string" && !physIds[logicalId]) {
3247
+ if (evalCondition(res.Condition, ctx) === false) continue;
3248
+ }
3246
3249
  const cdkPath = res.Metadata?.["aws:cdk:path"];
3247
3250
  const declaredRaw = res.Properties ?? {};
3248
3251
  resources.push({