- fork the project on GitHub: https://github.com/michaelwittig/automation-for-the-people
- create a personal GitHub access token. Generate one here: https://github.com/settings/tokens (scopes needed: admin:repo_hook, repo)
- clone the project:
git clone [email protected]:YOUR_USERNAME/automation-for-the-people.git
- cd into the cloned directory:
cd automation-for-the-people/
- cd into the infrastructure directory:
cd infrastructure/
- run:
./init.sh
This will setup a CodePipeline to:
- connect to the forked GitHub repository
- update itself
- create/update a ElasticBeanstalk application
- create/update a staging ElasticBeanstalk environment
- deploy a new application version to the staging environment
- run infrastructure tests against the staging environment
- create/update a production ElasticBeanstalk environment
- deploy a new application version to the production environment
To delete all AWS resources, remove the CloudFormation stacks in the following order:
- aftp-prod & aftp-stage
- aftp-application
- aftp-pipeline