andrewrk / node-s3-cli

command line utility to go along with node s3 module
MIT License
97 stars 35 forks source link

Allow fallback to AWS SDK's credentials configuration #16

Open jdp opened 9 years ago

jdp commented 9 years ago

Requiring the use of only either ~/.s3cfg or environment variables is limiting, it would be nice to fall back to the official AWS SDK's credentials configuration strategy: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html

It supports the environment variables too, but also switching profiles, loading from the ~/.aws configuration directory, and all that.

michalrames commented 7 years ago

+1 Using environment variables is the way to go for bitbucket pipelines (and maybe other CI tools and Pupppet-managed configurations, docker images etc... as well). I believe it's safer that way because it decouples platform configuration from the application.