LoginSignup
0
0

More than 5 years have passed since last update.

ElasticBeanstalk custom platformのサンプルでAMI作成リージョンを変える

Posted at

AWS Elastic Beanstalkのドキュメントにあるサンプルを使ってTokyoリージョンにAMIを作ろうとしてハマったのでメモ。

Custom Platformのファイル群はgit管理する必要がある。commitしていない変更はアップロードされないので注意!私がハマったのはむしろここorz

custom_platform.json
* builders.region: AMIが作成されるリージョン。ebp initap-northeast-1を選択しても、これがus-west-2とかだとそっちに作成されてしまい、ap-northeast-1のEBでは使用できなくなる。
* builder.source_ami: 指定したAMIのリージョンがbuilders.regionにマッチしないと、AMI not foundエラーになる。

UbuntuのAMIはここで探すと良い https://cloud-images.ubuntu.com/locator/ec2/

あるいは、Packerのドキュメントのようにsource_ami_filterを使ってもよい。

0
0
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
0
0