diff --git a/CHANGELOG.md b/CHANGELOG.md index 5911896c..a0f4408e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- [#115](https://github.com/meltwater/drone-cache/pull/102) Update aws-sdk-go to add support for IAM Roles for Service Accounts in Kubernetes. - [#102](https://github.com/meltwater/drone-cache/pull/102) Implement option to disable cache rebuild if it already exists in storage. - [#86](https://github.com/meltwater/drone-cache/pull/86) Add backend operation timeout option that cancels request if they take longer than given duration. `BACKEND_OPERATION_TIMEOUT`, `backend.operation-timeot`. Default value is `3 minutes`. - [#86](https://github.com/meltwater/drone-cache/pull/86) Customize the cache key in the path. Adds a new `remote_root` option to customize it. Defaults to `repo.name`. diff --git a/DOCS.md b/DOCS.md index 0db11f1f..2ea44d32 100644 --- a/DOCS.md +++ b/DOCS.md @@ -102,6 +102,8 @@ steps: - name: restore-cache image: meltwater/drone-cache:dev environment: + # leaving these variables unset will default to using instance profile credentials + # when running in EC2 or IAM Roles for Service Accounts, if configured, in Kubernetes AWS_ACCESS_KEY_ID: from_secret: aws_access_key_id AWS_SECRET_ACCESS_KEY: diff --git a/README.md b/README.md index c61dcb7b..2884f847 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,8 @@ steps: - name: restore-cache image: meltwater/drone-cache environment: + # leaving these variables unset will default to using instance profile credentials + # when running in EC2 or IAM Roles for Service Accounts, if configured, in Kubernetes AWS_ACCESS_KEY_ID: from_secret: aws_access_key_id AWS_SECRET_ACCESS_KEY: diff --git a/go.mod b/go.mod index 95003784..dc6ce1d6 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ require ( cloud.google.com/go/storage v1.1.0 github.com/Azure/azure-storage-blob-go v0.8.0 github.com/Azure/go-autorest/autorest/adal v0.8.1 // indirect - github.com/aws/aws-sdk-go v1.16.35 + github.com/aws/aws-sdk-go v1.23.13 github.com/campoy/embedmd v1.0.0 github.com/dustin/go-humanize v1.0.0 github.com/go-kit/kit v0.9.0 diff --git a/go.sum b/go.sum index 1fb70a7e..98fb9a67 100644 --- a/go.sum +++ b/go.sum @@ -44,10 +44,8 @@ github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrU github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/aws/aws-sdk-go v1.16.35 h1:qz1h7uxswkVaE6kJPoPWwt3F76HlCLrg/UyDJq3cavc= -github.com/aws/aws-sdk-go v1.16.35 h1:qz1h7uxswkVaE6kJPoPWwt3F76HlCLrg/UyDJq3cavc= -github.com/aws/aws-sdk-go v1.16.35/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.16.35/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go v1.23.13 h1:l/NG+mgQFRGG3dsFzEj0jw9JIs/zYdtU6MXhY1WIDmM= +github.com/aws/aws-sdk-go v1.23.13/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/bombsimon/wsl/v2 v2.0.0 h1:+Vjcn+/T5lSrO8Bjzhk4v14Un/2UyCA1E3V5j9nwTkQ=