AWS Elasticbeanstalk Multi Container deployment JSON templates
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Dockerrun.aws.python.api.json.tmpl
LICENSE
README.md

README.md

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