Class DefaultAwsRegionProviderChain

  • All Implemented Interfaces:
    AwsRegionProvider

    public final class DefaultAwsRegionProviderChain
    extends AwsRegionProviderChain
    AWS Region provider that looks for the region in this order:
    1. Check the 'aws.region' system property for the region.
    2. Check the 'AWS_REGION' environment variable for the region.
    3. Check the {user.home}/.aws/credentials and {user.home}/.aws/config files for the region.
    4. If running in EC2, check the EC2 metadata service for the region.