AWS Nginx ECS Cluster

Prerequisite

  • Terraform with version >= 0.12
  • AWS account

How to provision the cluster

  • Create a aws_keys.tfvars file that will contains aws_access_key and aws_secret_key. You can follow aws_keys.tfvars.example file that I've provided
  • Run terraform init
  • Run terraform apply -var-file="aws_keys.tfvars"
  • Run terraform output to get load balancer's host name that you can use to test if your cluster has been provisioned successfully

How to decommission the the cluster

  • Run terraform destroy -var-file="aws_keys.tfvars"

Current Architecture

Screen Shot 2022-12-08 at 13 20 21

Question?

You can email me at kadeksuryam@gmail.com