Class ContainerCredentialsProvider

java.lang.Object
software.amazon.awssdk.auth.credentials.ContainerCredentialsProvider
All Implemented Interfaces:
AutoCloseable, AwsCredentialsProvider, HttpCredentialsProvider, IdentityProvider<AwsCredentialsIdentity>, ToCopyableBuilder<ContainerCredentialsProvider.Builder,ContainerCredentialsProvider>, SdkAutoCloseable

AwsCredentialsProvider implementation that loads credentials from a local metadata service. Currently supported containers:
  • Amazon Elastic Container Service (ECS)
  • AWS Greengrass

The URI path is retrieved from the environment variable "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" or "AWS_CONTAINER_CREDENTIALS_FULL_URI" in the container's environment. If the environment variable is not set, this credentials provider will throw an exception.

See Also: