https://github.com/scriptcamp/terraform-aws
Terraform AWS Cloud examples for beginners
https://github.com/scriptcamp/terraform-aws
Last synced: 24 days ago
JSON representation
Terraform AWS Cloud examples for beginners
- Host: GitHub
- URL: https://github.com/scriptcamp/terraform-aws
- Owner: scriptcamp
- Created: 2022-02-10T12:52:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-11T15:48:02.000Z (over 3 years ago)
- Last Synced: 2025-04-28T12:59:44.671Z (24 days ago)
- Language: HCL
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terraform-aws
Terraform AWS Cloud examples for beginners## Terraform Init With s3 Backend
terraform init \
-backend-config="key=dev/vpc.tfstate" \
-backend-config="bucket=dcube-terraform-state" \
-backend-config="region=us-west-2"## Requirements
1. Create VPC (10.0.0.0/16)
2. 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
3. Public subnets can talk to app subnets (only on specific ports using NAC) not DB subnets.
4. App Subnets can talk to DB subnets (On specify ports using NACL)