Skip to content

vivekyad4v/aws-elasticbeanstalk-multi-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

LinkedIn

AWS-ElasticBeantsalk-MultiContainer

Dockerrun version:'2', deploy docker images to ECS using ElasticBeanstalk

Python API - Dockerrun.aws.json.python.api.tmpl

  • AWS Dockerrun version:2 template

  • Multiple container definitions - volumes, memory, ports, command etc

  • ENV variables for deployment -

    | ACCOUNT_ID  | AWS account ID |
    | ENVIRON     | dev, uat, prod etc |
    | NGINXM      | Nginx server memory in MB |
    | WSGIM       | API(python) server memory in MB |
    | APP_ENV     | ElasticBeanstalk environment name |
    | BUILD_TAG   | Tag name/no. of your deployment |
    | GIT_COMMIT  | Git #commit |
    
  • Depoyment

$ sed -e "s/\${ACCOUNT_ID}/${ACCOUNT_ID}/" -e "s/\${ENVIRON}/${ENVIRON}/" -e "s/\${NGINXM}/${NGINXM}/" -e "s/\${WSGIM}/${WSGIM}/" Dockerrun.aws.python.api.json.tmpl > Dockerrun.aws.json

$ eb deploy $APP_ENV -l ${BUILD_TAG}_${GIT_COMMIT} --timeout 30

About

AWS Elasticbeanstalk Multi Container deployment JSON templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published