Goal:
Lets see if I can deploy a web app to my EKS cluster & Terraform. After EKS cluster is deployed w/Terraform I’ll provision the cluster & run Node.js & use MongoDB as the backend DB.
Basically it goes like this:
- Web Browser – – – EKS Cluster – – – Public Endpoint
- Namespace – – – Node.js – – – Docker Image Repository – – – MongoDB
Lessons Learned:
- Deploy EKS Cluster w/Terraform:
- Complete Terraform Configuration:
- Deploy Web App w/Terraform:
- Scale Kubernetes Web App:
Deploy EKS Cluster w/Terraform:
- Cloud User – – – Security Credz – – – Access Keys


- Add key details in CLI


Couple Commands to Leverage for Sanity Check:
- LS files
- Unzip
- LS
- CD
- LS
- Now can see all TF files

Terraform – init, fmt, apply:


Complete Terraform Configuration:
Double Check its Running:


Couple Commands:

Vim modules/pac-man/pac-man-deployment.tf:

Vim pac-man.tf:

Terraform – Fmt, Init, & Apply:

Deploy Web App w/Terraform:

Scale Kubernetes Web App:
Change Deployment Files
- MongoDB = 2
- Pacman Pods = 3



Double Check Working:
