Aplicação Flask Hello World usando AWS Elastic Beanstalk com Continuous Delivery through AWS CodeBuild
- Configurar aws cli,
- Configurar Git,
- Configurar ssh-key no Github
- Instalar Elastic Beanstalk CLI
- Configurar Elastic Beanstalk CLI
-
Create a folder with files:
Makefile
: with make instructionsrequirements.txt
: with python packagesbuildspec.yml
: with build specifications for CodeBuild -
Write a Flask application
application.py
-
Optionally, write tests
test_application.py
-
Create application and enviroment with Elastic Beanstalk CLI
eb init -p python-3.7 flaskhelloworld --region sa-east-1 eb init eb create flaskhelloworld-env eb open eb terminate flaskhelloworld-env
-
Create CodeBuild project and link to github repository
-
Commit changes and check CodeBuild project build status.