2048 Game Cloud Deployment

Terraform AWS ECS Fargate Docker IaC
⏱ 1 min read

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

TechnologyPurpose
TerraformInfrastructure as Code
AWS ECS / FargateServerless Container Orchestration
AWS ALBTraffic Load Balancing & Routing
DockerApplication 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.