Credentials are automatically resolved by the SDK. The order of precedence when resolving credentials is:
Credentials provided in code using AWS Options are "Static Credentials".
Environment credentials are provided via the environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN.
When running on an Elastic Compute Cloud (EC2) instance or inside an Elastic Container Service (ECS) instance, credentials will be automatically sourced from the instance profile.
Copyright © 2019-2021 Appercept Ltd. All rights reserved.
|