Skip to content

Commit

Permalink
Return early if the stackset has no new regions.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed May 18, 2024
1 parent 317e5fa commit 116a540
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/CloudFormationDeployer.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ class CloudFormationDeployer {
await this.cloudFormationClient.updateStackSet(stackParameters).promise();
}

if (!newRegions.length) {
return { title: 'Success' };
}

const rootOrgsInfo = await new Organizations({ region: 'us-east-1' }).listRoots({}).promise();

const deployToAdditionalRegionsParams = {
Expand Down

0 comments on commit 116a540

Please sign in to comment.