cdk-real-drift 0.4.42 → 0.4.43
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 +2 -5
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1227,17 +1227,14 @@ async function resolveStacks(a) {
|
|
|
1227
1227
|
const app = resolveApp(a.app);
|
|
1228
1228
|
if (!app) throw new Error("cdkrd needs a CDK app: run in a directory with cdk.json, pass --app \"<cmd>\" or --app <cdk.out> (a pre-synthesized assembly), or set $CDKRD_APP");
|
|
1229
1229
|
const scopePatterns = !a.all && a.stackNames.length > 0 ? a.stackNames : void 0;
|
|
1230
|
+
if (!a.region) a.region = await resolveProfileRegion(a.profile);
|
|
1231
|
+
const fallbackRegion = a.region;
|
|
1230
1232
|
const discovered = await discoverStacks(app, {
|
|
1231
1233
|
region: a.region,
|
|
1232
1234
|
profile: a.profile,
|
|
1233
1235
|
context: a.context,
|
|
1234
1236
|
stackPatterns: scopePatterns
|
|
1235
1237
|
});
|
|
1236
|
-
let fallbackRegion = a.region;
|
|
1237
|
-
if (!fallbackRegion && discovered.some((s) => !s.region)) {
|
|
1238
|
-
fallbackRegion = await resolveProfileRegion(a.profile);
|
|
1239
|
-
a.region = fallbackRegion;
|
|
1240
|
-
}
|
|
1241
1238
|
if (a.all || a.stackNames.length === 0) return discovered.map((s) => ({
|
|
1242
1239
|
stackName: s.stackName,
|
|
1243
1240
|
region: s.region ?? fallbackRegion,
|