Automated deploy for AWS ElasticBeanstalk through bitbucket pipelines.
To use that script you will need to use a bitbucket pipeline.
We use release branchs to deploy our applications using a release branch for staging: release-v0.0.0-prod
and for production using a specific tag in master branch: v0.0.0-prod
Some environment variables are required to upload our application:
EB_APPLICATION_NAME
that is your application nameEB_APPLICATION_ENVIRONMENT
that is your ElasticBeanstalk environmentEB_BUCKET_S3
that is a temporary bucket responsible to deliver a .zip to ElasticBeanstalk
Run that awesome script is more simple than walk in a cloud: python deploy.py
and all the magician happen :p