Use default boto credential chain if no keys in the config (#342)

* Use default boto credential chain if no keys in the config

* Add use_credentials_chain config to explicitly enable boto cred chain

* Propagate the new config param in the right way

* PEP8 fixes
This commit is contained in:
Manoj
2021-05-13 14:04:13 +05:30
committed by GitHub
parent d93937fc36
commit bcf344da19
6 changed files with 56 additions and 20 deletions

View File

@@ -73,10 +73,17 @@ sdk {
s3 {
# S3 credentials, used for read/write access by various SDK elements
# default, used for any bucket not specified below
# Default, used for any bucket not specified below
region: ""
# Specify explicit keys
key: ""
secret: ""
region: ""
# Or enable credentials chain to let Boto3 pick the right credentials.
# This includes picking credentials from environment variables,
# credential file and IAM role using metadata service.
# Refer to the latest Boto3 docs
use_credentials_chain: false
credentials: [
# specifies key/secret credentials to use when handling s3 urls (read or write)

View File

@@ -73,10 +73,17 @@ sdk {
s3 {
# S3 credentials, used for read/write access by various SDK elements
# default, used for any bucket not specified below
# Default, used for any bucket not specified below
region: ""
# Specify explicit keys
key: ""
secret: ""
region: ""
# Or enable credentials chain to let Boto3 pick the right credentials.
# This includes picking credentials from environment variables,
# credential file and IAM role using metadata service.
# Refer to the latest Boto3 docs
use_credentials_chain: false
credentials: [
# specifies key/secret credentials to use when handling s3 urls (read or write)