Skip to content

Commit

Permalink
Merge pull request #4338 from RyanFitzSimmonsAK/develop
Browse files Browse the repository at this point in the history
Added container credential provider to the credential precedence documentation
  • Loading branch information
nateprewitt authored Nov 22, 2024
2 parents 04fe19d + c87e4b0 commit eb80fa1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/guide/credentials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Boto3 will look in several locations when searching for credentials. The mechani
#. Shared credential file (``~/.aws/credentials``)
#. AWS config file (``~/.aws/config``)
#. Boto2 config file (``/etc/boto.cfg`` and ``~/.boto``)
#. Container credential provider
#. Instance metadata service on an Amazon EC2 instance that has an IAM role configured.

Each of those locations is discussed in more detail below.
Expand Down Expand Up @@ -287,6 +288,11 @@ Boto3 will attempt to load credentials from the Boto2 config file. It first chec
This credential provider is primarily for backwards compatibility purposes with Boto2.


Container credential provider
---------
If you are using Amazon Elastic Container Service (Amazon ECS) or Amazon Elastic Kubernetes Service (Amazon EKS), you can obtain credentials by specifying an HTTP endpoint as an environment variable. The SDK will request credentials from the specified endpoint. For more information, see `Container credential provider <https://docs.aws.amazon.com/sdkref/latest/guide/feature-container-credentials.html>`_ in the Amazon SDKs and Tools Reference Guide.


IAM roles
---------

Expand Down

0 comments on commit eb80fa1

Please sign in to comment.