2048 Game Cloud Deployment
Overview
2048 Game Cloud Deployment is a cloud engineering showcase that implements Infrastructure-as-Code (IaC) principles. It leverages Terraform to provision a complete, secure AWS network topology (VPC, subnets, gateways) and automatically deploys a containerized web version of the classic 2048 game onto serverless AWS ECS Fargate with an Application Load Balancer.
Key Features
- 🏗️ Full IaC Provisioning: Provisions VPC, public/private subnets, internet gateways, route tables, and security groups completely via Terraform.
- 🚀 Serverless Container Hosting: Deploys the web app using AWS ECS with Fargate launch type, avoiding the need to manage EC2 instances.
- ⚖️ High Availability: Integrates an Application Load Balancer (ALB) to handle incoming traffic and scale container instances smoothly.
- 🔒 Secure Networking: Places containers inside private subnets with access restricted via least-privilege security groups and routing only through the ALB.
Tech Stack
| Technology | Purpose |
|---|---|
| Terraform | Infrastructure as Code |
| AWS ECS / Fargate | Serverless Container Orchestration |
| AWS ALB | Traffic Load Balancing & Routing |
| Docker | Application Packaging & Containerization |
Getting Started
# Clone the repository
git clone https://github.com/Hritikraj8804/2048-game.git
cd 2048-game
# Initialize Terraform providers
terraform init
# Plan and verify the cloud resources
terraform plan
# Apply and spin up the infrastructure on AWS
terraform apply -auto-approve
Automating web app delivery with enterprise-grade Infrastructure-as-Code patterns.