Skip to content

Setup to AWS Elastic Beanstalk

betahikaru edited this page May 23, 2014 · 1 revision

Easy way to hosting by AWS Elastic Beanstalk

Setup

Command

brew install aws-elasticbeanstalk
eb -h
cd $repo_dir
git checkout -b topicbranch
eb init
# IAM (EC2 admin, IAM admin, Elastic Beanstalk admin) KEY and Secret
# Tokyo, ruby(passenger),no-db,,,
# See http://qiita.com/soramugi/items/1258127d159703fe731d
# .gitignore is modified
git add .
git commit -m "eb init"
eb branch

Start hosting

Command

eb start
# Wait a few minutes...

Deploy src

Command

git aws.push

Check status

Command

eb status

Stop or Terminate hosting

Command

eb stop

Setup Environment Variable (by Management Console)

Browser

  • サイドバーの「Configration」をクリック

  • 「Software Configuration」の横のアイコンをクリック

  • 「Environment Properties」の表の「Property Name」にキー、「Property Value」に値を入れて「+」をクリックで追加できる。

  • AWS_REGION => # Tokyo is ap-northeast-1.

  • AWS_ACCESS_KEY_ID =>

  • AWS_SECRET_ACCESS_KEY =>

  • 「Save」をクリック

  • しばらく待つと、反映される

Setup Environment Variable (by Other way)

  • /// TODO ///