/Github-Action-Terraform-ECS-CI-CD

Complete CI/CD pipeline for the Flaskapp on ECS with Github Actions and Terraform.

Primary LanguageHCL

Complete CI/CD pipeline for the Flaskapp on ECS with Github Actions and Terraform.

Tools Used :

  • Github Actions : Used to automate the CI/CD pipeline which includes stages like, Building image from Dockerfile, tagging it and pushing it to ECR repo and applying Terraform scripts to provision the infrastructure.

  • Terraform Scripts includes, ECS cluster, task definition, SG, iam roles, target group, and ALB.

  • Dockefile = Dockerfile

  • Pipeline Script = flaskapp-pipeline.yml

  • Terraform Configuration Files = terraform_iac

Screenshot

  • ECS Fargate Cluster with Running Task :

Cluster

  • Task Definition :

task-def

  • ECR Repository :

ECR

  • Application LoadBalancer

ALB

  • Access Application on ALB URL :

App