Terraform AWS Cloud examples for beginners
terraform init
-backend-config="key=dev/vpc.tfstate"
-backend-config="bucket=dcube-terraform-state"
-backend-config="region=us-west-2"
- Create VPC (10.0.0.0/16)
- Create Subnets
- Public Subnets (For LB)
- 10.0.1.0/24
- 10.0.2.0/24
- 10.0.3.0/24
- App Subnetes (Private Subnet)
- 10.0.4.0/24
- 10.0.5.0/24
- 10.0.6.0/24
- DB Subnetes (Priavet Subnet)
- 10.0.7.0/24
- 10.0.8.0/24
- 10.0.9.0/24
- Public Subnets (For LB)
- Public subnets can talk to app subnets (only on specific ports using NAC) not DB subnets.
- App Subnets can talk to DB subnets (On specify ports using NACL)