I have a Java application running on AWS Fargate. Regions.getCurrentRegion() returns null from within an AWS Fargate for security reasons
Is there an alternative way to determine which region the fargate container is running in?
In Fargate, the current region is available via the AWS_REGION
environment variable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With