Skip to content

Commit

Permalink
feat: add some env vars related to multi region
Browse files Browse the repository at this point in the history
  • Loading branch information
limcross committed Nov 9, 2022
1 parent 1bd706e commit 2a42986
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,18 @@ module.exports = {
return cloudformation
}
},
set: {
env: (arc) => {
const multiRegion = arc['multi-region']
if (!multiRegion) return { ARC_MULTI_REGION: false }

const { primaryRegion } = getMultiRegionOptions(arc)
const { currentRegion } = getArcOptions(arc)

return {
ARC_MULTI_REGION_PRIMARY: primaryRegion,
ARC_MULTI_REGION_CURRENT: currentRegion
}
}
}
}

0 comments on commit 2a42986

Please sign in to comment.