Tuesday, February 26, 2013

AWS: Install the auto scaling command line tools

AWS提供了command line tools讓開發者可以透過command對AWS做scaling. 今天花了點時間在我的MBP(OS 10.7.2)上裝了起來. 在這邊記錄一下過程. 以供之後參考. 

主要參考網頁

1. http://docs.amazonwebservices.com/gettingstarted/latest/wah-linux/

2. http://docs.amazonwebservices.com/AutoScaling/latest/DeveloperGuide/index.htm...

3. http://stackoverflow.com/questions/6588390/where-is-java-home-on-osx-lion

其實安裝的步驟在command line tools的README.txt裡寫得蠻清楚的. 所以建議可以先到2裡面的How to Get the Command Line Tool先把zip檔抓回來. 然後照著README.txt裡面步驟作即可. 

Environment Variable的部份, 可以直接改自己目錄裡的.bash_profile, JAVA_HOME 的部份, 我是參考3裡的方法設定.

環境變數設定完後, 得設定AWS user credentials. 我是用AWS Keys的方法(可以連到http://aws.amazon.com/security-credentials查找)

都設定完之後, 可以照README.txt裡的方法. 測試看看是不是都work. (as-describe-auto-scaling-groups --headers一定要試, 因為會測到credentials有沒有設定好) 如果work, 恭喜, 那應該就是安裝好了! :)

 

No comments:

Post a Comment