How sumitverma77/infra-pilot-iac works
InfraPilot is an infrastructure-as-code workspace for provisioning AWS environments with Terraform, with GitHub Actions automating infrastructure changes. The principal workflow is a repository change triggering Terraform validation and planning, followed by an apply that provisions the network, security, load balancing, and ECS baseline. The README also documents an application-repository deployment flow that updates ECS independently. Source excerpts were unavailable, so relationships below are limited to those explicitly described in the README; the Terraform components are mapped from the file tree.
Main entry points: terraform-ci-cd.yml Terraform Plan and Apply · ecs.tf Spring Boot Container · alb.tf Load Balancer · main.tf Backend Configuration
Components 18
Infrastructure Automation
- Terraform Workflow
.github/workflows/terraform-ci-cd.yml - Terraform Plan and Apply
.github/workflows/terraform-ci-cd.yml
Terraform Configuration
- Backend Configuration
terraform/main.tf - Reusable ECS Service
terraform/modules/ecs-service/main.tf - IAM Configuration
terraform/iam.tf - GitHub OIDC Role
terraform/modules/github-oidc-role/main.tf
AWS Environment
- VPC and Subnets
terraform/vpc.tf - Security Groups
terraform/security-groups.tf - Load Balancer
terraform/alb.tf - ECS Fargate
terraform/ecs.tf - Container Registry
terraform/ecr.tf - Terraform State Bucket
- State Lock Table
- CloudWatch Logs
- Spring Boot Container
terraform/ecs.tf
Application Deployment
- Application CI/CD
Other components
- IaC Repository
- Application Repository
Connections 17
- IaC Repository → Terraform Workflow: triggers
README.md - Terraform Workflow → Terraform Plan and Apply: runs
README.md - Terraform Plan and Apply → Backend Configuration: uses backend
README.md - Terraform Plan and Apply → Terraform State Bucket: loads state
README.md - Terraform Plan and Apply → VPC and Subnets: provisions
README.md - Terraform Plan and Apply → Security Groups: provisions
README.md - Terraform Plan and Apply → Load Balancer: provisions
README.md - Terraform Plan and Apply → ECS Fargate: provisions baseline
README.md - Terraform Plan and Apply → IAM Configuration: provisions
README.md - Terraform Plan and Apply → GitHub OIDC Role: provisions role
README.md - ECS Fargate → Spring Boot Container: runs
README.md - Load Balancer → Spring Boot Container: routes traffic
README.md - Application Repository → Application CI/CD: triggers
README.md - Application CI/CD → Container Registry: pushes image
README.md - Application CI/CD → ECS Fargate: updates task definition
README.md - Application CI/CD → Spring Boot Container: deploys image
README.md - Spring Boot Container → CloudWatch Logs: writes logs
README.md