Twoge is a social media platform dedicated solely to tweets about Dodge. This application is built using Flask, SQLAlchemy, and PostgreSQL (see the rest of the original Twoge readme.md at https://github.com/chandradeoarya/twoge)...
Before CICD, the application is brought up and running via:
- Terraform technology to create the AWS RDS instance (not included in this repo, but see Other Things topic below for more information on how to set that up)
- Dockerfile
- Elastic Beanstalk CLI commands:
- eb init
- eb create twoge-app-server --single
- eb setenv SQLALCHEMY_DATABASE_URI=postgresql://user:password@db-host:5432/twogedbtf
- eb deploy
- Now the app is running and it is CICD's time to shine:
- Choose a branch for updates to be applied to image and infrastructure when pushed to repository
- Define jobs for unit testing (ideally, but unit tests are not included in this example), image updates, and application/infrastructure updates
The creation of the AWS RDS instance was done using Terraform code as outlined in a few examples, changing and adding as necessary:
- terraform docs are always helpful:
- also this tutorial: https://fitdevops.in/create-rds-instances-using-terraform/

