nyaruka / gocommon

Common utility library for the TextIt platform.
Other
7 stars 11 forks source link

Allow for AWS Credential Chain #70

Closed tybritten closed 2 years ago

tybritten commented 2 years ago

Currently gocommon/storage hard codes static key/secret credentials. This change maintains that capability but also allows for consumer apps to use s3 without providing static key/secret. When no credentials are provided, the AWS Go SDK goes through its credential chain (see "specifying credentials" section here: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html) instead.

This allows the use of other ways of passing AWS creds to rapidpro go apps besides static key/secret.