weavejester / lein-beanstalk

Leiningen plugin for Amazon's Elastic Beanstalk service
149 stars 41 forks source link

Placing AWS credentials in ~/.lein/profile.clj doesn't work with Leiningen 2.0.0-preview10 #25

Open clizzin opened 11 years ago

clizzin commented 11 years ago

I use lein-beanstalk in my project by putting the following in my project.clj:

  :plugins [[lein-beanstalk "0.2.6"]]

I then edit ~/.lein/profile.clj to contain my AWS credentials, as advised by the README:

{:user
 {:aws {:access-key "xxx"
        :secret-key "xxx"}}}

I then run lein beanstalk deploy development but get this error:

No credentials found; please add to ~/.lein/init.clj: (def lein-beanstalk-credentials {:access-key "XXX" :secret-key "YYY"})

If I run lein version, I see Leiningen 2.0.0-preview10 on Java 1.6.0_35 Java HotSpot(TM) 64-Bit Server VM. This was installed via Homebrew on Mac OS X Lion.

What am I doing wrong? Or is the README not up-to-date? Thanks!

weavejester commented 11 years ago

It's a typo in the README - it should be ~/.lein/profiles.clj with an "s". I'll fix it soon.

clizzin commented 11 years ago

Perfect. Thanks for the quick reply!