Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 541a8d8

Browse files
Update README
1 parent d03746e commit 541a8d8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,18 +324,21 @@ Credential
324324
AWS credentials provider chain
325325
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
326326

327-
See `AWS credentials provider chain`_
327+
See `Supplying and retrieving AWS credentials`_
328+
329+
https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/DefaultAWSCredentialsProviderChain.html
328330

329331
AWS credentials provider chain that looks for credentials in this order:
330332

331333
* Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (RECOMMENDED since they are recognized by all the AWS SDKs and CLI except for .NET), or AWS_ACCESS_KEY and AWS_SECRET_KEY (only recognized by Java SDK)
332334
* Java System Properties - aws.accessKeyId and aws.secretKey
335+
* Web Identity Token credentials from the environment or container
333336
* Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
334337
* Credentials delivered through the Amazon EC2 container service if AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" environment variable is set and security manager has permission to access the variable,
335338
* Instance profile credentials delivered through the Amazon EC2 metadata service
336339

337340
In the connect method or connection object, you can connect by specifying at least ``S3OutputLocation`` and ``AwsRegion``.
338-
It is not necessary to specify ``User`` and ``Password``.
341+
``User`` and ``Password`` are not required if environment variables, credential files, or instance profiles have been set.
339342

340343
.. code:: python
341344
@@ -344,6 +347,8 @@ It is not necessary to specify ``User`` and ``Password``.
344347
conn = connect(S3OutputLocation='s3://YOUR_S3_BUCKET/path/to/',
345348
AwsRegion='us-west-2')
346349
350+
.. _`Supplying and retrieving AWS credentials `: https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials.html
351+
347352
Testing
348353
-------
349354

0 commit comments

Comments
 (0)