aws.region
API
#6794
Labels
☁️ aws
Related to Amazon Web Services support
✨ enhancement
New feature or request
needs-discussion
Further discussion is needed prior to impl
🎨 sdk
SDK
Use Case
As a user, when I'm compiling a Wing app to one of the AWS platforms, I'd like to have a way to easily access the AWS region my app's resources are being deployed to so that I can use it for constructing ARNs and other things like that.
We already use region information in the TypeScript implementations of some of the built-in
cloud
classes:wing/libs/wingsdk/src/target-tf-aws/api.ts
Lines 319 to 322 in 734a760
Proposed Solution
Implementation Notes
By default the AWS Terraform Provider operates in a single region and also CloudFormation runs deployments in a single region.
The implementation of
aws.region
needs to somehow depend on which target you're compiling to (tf-aws
orawscdk
).Component
SDK
Community Notes
The text was updated successfully, but these errors were encountered: