Skip to content

zepplock/hello_phoenix_ebs_docker_codepipeline

Repository files navigation

HelloPhoenix On AWS Elastic Beanstalk, Docker, CodePipeline

Notable changes and limitations

  • prod.secret.exs is not supported, please use ENV variables to confugure sensitive information, e.g. keys, tokens
  • No Ecto - ecto is disabled but Docker container supports Ecto/Postgres, just uncomment 2 lines in Dockerfile and docker-entrypoint.sh
  • No brunch - sorry no JS monkey business since this template is used for REST/JSON APIs, I will provide a working Webpack config later.

AWS Elastic Beanstalk installation guide

Create a new EBS application called hello_phoenix

new_application

Create a new environment using Docker platform. Choose a Sample application for now.

new_environment

Update configuration to have ENV prod under Software Configuration

env_prod

AWS CodePipeline configuration

Step 1: Go to AWS CodePipeline and create a new pipeline, name it hello_phoenix

Step 2a: Select GitHub as a source provider

Step 2b: Click on Connect to GitHub button

Step 2c: After being redirected to GitHub, enter your username and password

Step 2d: Enter repository name and branch

Step 3: Choose No Build

Step 4: Choose Elastic Beanstalk, then hello_phoenix under Application name and then Sample-env under Environment name

Step 5: Choose AWS-CodePipeline-Service under Role name

Step 6: Review and click Create pipeline

Upon successful pipeline creation you will see that it is getting code from GitHub and deploying. Make some tea and wait.

deployment

Verify deployment

In your AWS Elastic Beanstalk configuration console click on the URL next to the Actions button, it should look something like http://sample-env.2j7f6imcis.us-west-2.elasticbeanstalk.com

If your deployment was successful you will see default Hello Phoenix UI.

About

HelloPhoenix On AWS Elastic Beanstalk, Docker, CodePipeline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published