taoensso / faraday

Amazon DynamoDB client for Clojure
https://www.taoensso.com/faraday
Eclipse Public License 1.0
238 stars 84 forks source link

How do you use the default credential chain? #69

Closed hmgibson23 closed 8 years ago

hmgibson23 commented 9 years ago

Seems a little annoying to have to specify credentials on an EC2 instance.

paulheideman commented 8 years ago

It might work if you just leave the credentials out of the map. It does on Elastic Beanstalk.

tcoupland commented 8 years ago

@paulheideman got it right. Just leave them out and the client will find the creds via the ec2 role you have assigned.

rwillig commented 8 years ago

@paulheideman does this mean a map like {:access-key "" :secret-key ""} or an empty map {} ?

paulheideman commented 8 years ago

I have a map with just the endpoint specified, but an empty map should work too.

{:endpoint (System/getProperty "DYNAMODB_ENDPOINT" "http://localhost:8000")}