Skip to content

Commit

Permalink
UPSTREAM: docker/distribution: 3296: allow pointing to an AWS config …
Browse files Browse the repository at this point in the history
…file as a parameter for the s3 driver

Recognize a new parameter when setting up the AWS client so that a generic AWS config file can be used instead of having to specify AWS access and secret keys.

This should allow someone to use different authentication methods beyond just access key, secret key (and optionally session token).

Using the current supported auth methods a valid file would look like:
```
[default]
aws_access_key_id = AKMYAWSACCCESSKEYID
aws_secret_access_key = myawssecretaccesskey
```

But you can also specify alternative auth methods:
```
[default]
role_arn = arn:aws:iam:ACCOUNT_NUM:role/ROLE_NAME
web_identity_token_file = /path/to/token
```

Signed-off-by: Tiger Kaovilai <[email protected]>
  • Loading branch information
Joel Diaz authored and kaovilai committed Jul 11, 2023
1 parent 0c78da2 commit 95dadf8
Show file tree
Hide file tree
Showing 5 changed files with 428 additions and 267 deletions.
Loading

0 comments on commit 95dadf8

Please sign in to comment.