Trouble deploying to AWS Elastic Beanstalk

Hi all-

This is how I was able to resolve the issue:

  1. Go to Elastic Beanstalk: https://console.aws.amazon.com/elasticbeanstalk/home

  2. Make sure you’re in your preferred region as indicated in the upper right-hand corner

  3. Click Create New Application in the upper right-hand corner

  4. In the pop-up, name the application “Metabase”

  5. After creating the application, you will be brought to the application home screen where it says “No environments currently exist for this application. Create one now.” Click Create one now

  6. Keep Web server environment checked and click Select

This will take you to the setup screen that will look very familiar as it’s the same screenshot that everybody has been sharing. The difference is that Metabase configurations will not be pre-loaded so we must do that ourselves

  1. Under Choose platform, select Docker

  2. Under application code, select Upload your code then click the Upload button

  3. Under Source code origin, select Public S3 URL and paste in the following:

https://downloads.metabase.com.s3.amazonaws.com/v0.26.2/metabase-aws-eb.zip

Note: for those who are looking at this post in the future, please make sure this is the latest version of Metabase available

  1. Confirm the version label auto-populates, then click Upload

  2. Now click Configure more options button (which I noticed didn’t exist before), next to the blue Create environment button

  3. Under the Database section, click “Modify” and configure a Postgres with the following options:

Engine: Postgres
Engine version: 9.6.2 (the default at time of publishing)
Instance class: db.t2.micro
Storage: 10
Username: [create username]
Password: [create password]
Retenion: [up to you]
Availability: [up to you]

  1. Then click Save

  2. Now click Create environment

  3. When the environment has finished being created, go to the endpoint provided and you should have a fresh Metabase configuration rolling! The postgres database configuration (username, password, endpoint etc) will automatically be exposed to the Docker instance via environment variables

Hope this helps!

Not sure why the Metabase auto-install failed - I’ve looked at their URL and all of the options we just selected above match.

2 Likes