The following Terraform Files are used to provision the following Architecture.
- VPC (Virtual Private Cloud)
- Subnets within VPC
- Route Table (Provide Routing between Internet Gateway and ALB, ALB to EC2 Instance)
- Security Groups (To allow specific TCP service ports to transmit and recieve its connection)
- EIP (Elastic IP)
- NLB (Network Load Balancer), for listening TCP Port 22 and Port 80
- Internet Gateway (Provide Internet access to and from public subnet)
- NAT Gateway (Provide Internet access to and afrom private subnet)
- EC2 Instances (bootstraped with docker to provision and configure ngix image)
Be sure to always run the following command before executing this .tf file: $terraform init