Skip to content

Elastic Beanstalk Docker Demo - Infrastructure created with Terraform & App deployed with EB CLI tool

Notifications You must be signed in to change notification settings

vinod026k/elastic_beanstalk_demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  1. Terraform

    $ brew install terraform # Mac OSX

  2. AWS CLI & AWS Elastic Beanstalk Command Line Tool

    $ brew install aws-elasticbeanstalk # Mac OSX $ brew install awscli # Mac OSX

Howto deploy

  1. Create Amazon EC2 Container Registry Infrastructure

    $ cd terraform/ecr $ terraform plan $ terraform apply $ cd ../..

  2. Create Elastic Beanstalk Infrastructure

    $ cd terraform/eb $ terraform plan $ terraform apply $ cd ../..

  3. Upload image to ECR

    $ aws ecr get-login --region us-west-2 # Login to Amazon ECR $ docker build -t django-app-test . # Build image $ docker tag django-app-test:latest 378517677616.dkr.ecr.us-west-2.amazonaws.com/django-app-test:latest $ docker push 378517677616.dkr.ecr.us-west-2.amazonaws.com/django-app-test:latest

  4. Initilize Elastic Beanstalk Command Line Tool $ cd aws $ eb init django-app-test -r us-west-2

  5. Deploy application

    $ eb deploy

About

Elastic Beanstalk Docker Demo - Infrastructure created with Terraform & App deployed with EB CLI tool

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 67.7%
  • HCL 32.3%