Setup metabase via AWS elastic beanstalk

  1. Create a new application on elastic beanstalk
  2. Create a new environment
    • platform -> preconfigured platform -> docker
    • choose single instance – optional
    • choose t2.micro – optional
  3. Clone this repo
    • https://github.com/alexjv89/metabase-beanstalk
    • make changes if need (eg – ssl cert etc)
  4. eb init
  5. eb deploy
  6. Create a database
  7. Configure environment
    • MB_DB_TYPE : postgres
    • MB_DB_DBNAME : metabase
    • MB_DB_PORT : 5432
    • MB_DB_USER
    • MB_DB_PASS
    • MB_DB_HOST
  8. setup dns map via cloudflare – optional
  9. Modify security group to accept traffic only from cloudflare – optional