This repo has modules defined for VPC and ECS cluster
VPC module creates a VPC, subnets and routetables on 3 AZs ECS module creates ECS cluster for FARGATE, Application Loadbalancer, and Security groups
- Install terraform (latest version) on your local
- Install AWS CLI and create profile on your local
- Open main.tf - update aws region, profile name in aws provider block
- Modules are defined with test defaults, with that it can create a VPC and subnets
- Run terraform init and plan - It will list out what all resources its going to create.
- Review the plan output and once you are OK, run terraform apply.