How nishi-panchal/cicd-terraform-eks works
This repository demonstrates deploying a small Next.js application to Amazon EKS: Terraform provisions remote state and AWS infrastructure, and a GitHub Actions workflow is triggered by a push to main. The README documents ECR, EKS, and the Kubernetes deployment, but the workflow, Terraform, Docker, and Kubernetes source contents were not sampled; their internal wiring is therefore shown only where the README supports it, with unverified links dashed. The application page itself is a simple greeting.
Main entry points: terraform/main.tf Infrastructure configuration · deploy.yml GitHub Actions · eks.tf EKS cluster · bootstrap/main.tf State bootstrap
Components 14
Web application
- Home page
app/page.js - Root layout
app/layout.js
CI/CD delivery
- GitHub Actions
.github/workflows/deploy.yml - Container image
Dockerfile - Kubernetes deployment
k8s/deployment.yml
AWS infrastructure
- State bootstrap
terraform/bootstrap/main.tf - Terraform state bucket
- State lock table
- VPC networking
terraform/vpc.tf - EKS cluster
terraform/eks.tf - ECR repository
terraform/ecr.tf - Infrastructure configuration
terraform/main.tf
Other components
- Repository push
- Application user
Connections 12
- Repository push → GitHub Actions: pushes main
README.md - GitHub Actions → Container image: builds image
- Container image → ECR repository: publishes image
- GitHub Actions → Kubernetes deployment: deploys resources
- Kubernetes deployment → EKS cluster: runs on
README.md - State bootstrap → Terraform state bucket: creates
README.md - State bootstrap → State lock table: creates
README.md - Infrastructure configuration → VPC networking: provisions
README.md - Infrastructure configuration → EKS cluster: provisions
README.md - Infrastructure configuration → ECR repository: provisions
README.md - Application user → EKS cluster: accesses service
README.md - Root layout → Home page: renders children