How to discover the resolved region by the default provider chain? #2830
-
I have a region specified in my In another part my script I need to know the region to generate a specific ARN. Is there a way to discover the region that was discovered by the default provider chain? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I think I figured it out: |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I think I figured it out:
Aws::STS::Client.new.config.region