Last active
December 21, 2015 02:49
-
-
Save Twinuma/6238158 to your computer and use it in GitHub Desktop.
Homebrewを使用した 設定のTips
前提: OS X 10.8.4、Homebrew 0.9.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Homebrewで"ec2"を検索 | |
| brew search ec2 | |
| # "ec2-api-tool"をインストール | |
| brew install ec2-api-tool | |
| # bash_profileに追記 | |
| vi ~/.bash_profile | |
| export JAVA_HOME="$(/usr/libexec/java_home)" | |
| export _PRIVATE_KEY="$(/bin/ls "$HOME"/./pk-*.pem | /usr/bin/head -1)" | |
| export _CERT="$(/bin/ls "$HOME"/./cert-*.pem | /usr/bin/head -1)" | |
| export _HOME="/usr/local/Library/LinkedKegs/--/jars" | |
| export _URL="http://ap-northeast-1.amazonaws.com" | |
| export _PRIVATE_KEY=~/./pk-XXXXXX.pem | |
| export _CERT=~/./cert-XXXXXX.pem | |
| export AWS_ACCESS_KEY=hogehoge | |
| export AWS_SECRET_KEY=hogehoge | |
| # ディレクトリを作成 | |
| mkdir ~/.ec2 | |
| # 証明書を作成したディレクトリにコピー | |
| cp cert-XXXXX.pem ~/.ec2 | |
| # 秘密鍵を作成したディレクトリにコピー | |
| cp pk-XXXXX.pem ~/.ec2 | |
| # 権限を"600"にする | |
| chmod 600 cert-XXXXX.pem pk-XXXXX.pem | |
| # バージョンを確認 | |
| ec2ver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment