distribution/registry/storage/driver/s3-aws
Andrew Bulford 9690d843fa Support ECS TaskRole in S3 storage driver
Instead of constructing the list of credential providers manually, if we
use the default list we can take advantage of the AWS SDK checking the
environment and returning either the EC2RoleProvider or the generic HTTP
credentials provider, configured to use the ECS credentials endpoint.

Also, use the `defaults.Config()` function instead of `aws.NewConfig()`,
as this results in an initialised HTTP client which prevents a fatal
error when retrieving credentials from the ECS credentials endpoint.

Fixes #2960

Signed-off-by: Andrew Bulford <andrew.bulford@redmatter.com>
2020-07-01 08:42:56 +01:00
..
s3_test.go Merge pull request #2632 from whoshuu/feature/improve-s3-driver 2018-08-10 15:01:11 -07:00
s3_v2_signer.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
s3.go Support ECS TaskRole in S3 storage driver 2020-07-01 08:42:56 +01:00