4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ElasticBeanstalkでカスタムAMIを使う

4
Posted at

GUIの場合

  • GUIの場合、AWSの公式ドキュメントがあるが、一度インスタンスを起動した後に置き換えるやり方なのでイマイチ。
  • 環境(インスタンス)が起動した後に、環境の「設定」→「インスタンス」の「カスタムAMI ID」で置き換えたいAMI IDを指定すると、そのAMIでインスタンスを再作成する
    20151228_084724.jpg

CUIの場合

  • 「option_settings」の「aws:autoscaling:launchconfiguration」で指定すると、インスタンス作成時にそのAMIを使用する(eb createコマンドにAMIを指定するパラメータは無い)
.ebextensions/launchconfiguration.config
option_settings:
  - namespace: aws:autoscaling:launchconfiguration
    option_name: ImageId
    value: ami-xxxxx
4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?