You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@reegnzRegions.getCurrentRegion() does not have an equivalent in v2.
There's a feature request to create a EC2 Metadata client, we are tracking here: #61. Make sure you add a 👍 in the original description if you want to support it.
In the end I've done it with DefaultAwsRegionProviderChain, it seems like the region also uniquely identifies the partition.
I've also done some other client metadata discovery to find the partition in the example code below (getting the partition is also possible from the caller identity ARN):
Describe the issue
In AWS SDK for Java V1 there was this simple way of getting access to region metadata, which was:
https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/index.html
I can't find any equivalent way for AWS SDK for Java V2.
Links
https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/index.html
The text was updated successfully, but these errors were encountered: