endpoint creds (#1291)

* endpoint creds

* gofmt

* Add credential chain

* error handling

* Fix things

* add docs

* f

* asd

* fix
This commit is contained in:
Manu Gupta
2019-07-22 13:47:37 -07:00
committed by marpio
parent 33d01b1a7a
commit 5bff5fe74d
3 changed files with 46 additions and 26 deletions
+1
View File
@@ -8,4 +8,5 @@ type S3Config struct {
Token string `envconfig:"AWS_SESSION_TOKEN"`
Bucket string `validate:"required" envconfig:"ATHENS_S3_BUCKET_NAME"`
UseDefaultConfiguration bool `envconfig:"AWS_USE_DEFAULT_CONFIGURATION"`
CredentialsEndpoint string `envconfig:"AWS_CREDENTIALS_ENDPOINT"`
}