Add ExtraArgs configuration (#307)

This commit is contained in:
pollfly 2022-08-10 19:38:53 +03:00 committed by GitHub
parent 5e95471667
commit f119911788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -711,6 +711,13 @@ metrics, network, AWS S3 buckets and credentials, Google Cloud Storage, Azure St
* Dictionary of AWS Storage, AWS S3 options.
---
**`sdk.aws.s3.extra_args`** (*dict*)
* Additional [ExtraArgs](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-uploading-files.html#the-extraargs-parameter)
passed to boto3 when uploading files. This can be set on a per-bucket under `sdk.aws.s3.credentials`.
---
**`sdk.aws.s3.key`** (*string*)

View File

@ -29,6 +29,9 @@ You can also enable using a credentials chain to let Boto3
pick the right credentials. This includes picking credentials from environment variables, a credential file, and metadata service
with an IAM role configured. See [Boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html#configuring-credentials).
You can specify additional [ExtraArgs](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-uploading-files.html#the-extraargs-parameter)
to pass to boto3 when uploading files. You can set this on a per-bucket basis.
```
aws {
s3 {
@ -38,7 +41,9 @@ aws {
key: ""
secret: ""
region: ""
use_credentials_chain: false
extra_args: {}
credentials: [
# specifies key/secret credentials to use when handling s3 urls (read or write)
{