How mohammed-005/terraform-capstone works
This repository provisions an AWS web server with Terraform. The principal workflow is to apply the infrastructure configuration, which uses network and compute modules to create the public-facing deployment; Terraform reports the EC2 public IP for users to visit. A separate backend configuration provisions S3-backed state, documented with locking, versioning, and encryption. Source excerpts were not provided, so relationships below rely on the README; implementation details beyond those statements are omitted.
Main entry points: infrastructure/main.tf Infrastructure config · compute/main.tf EC2 and Apache · network Network module · network/main.tf VPC and public network
Components 10
Terraform deployment
- Infrastructure config
infrastructure/main.tf - Deployment outputs
infrastructure/outputs.tf
AWS networking
- Network module
infrastructure/modules/network - VPC and public network
infrastructure/modules/network/main.tf
Web server
- Compute module
infrastructure/modules/compute - EC2 and Apache
infrastructure/modules/compute/main.tf
Terraform state
- Backend config
backend/main.tf - S3 Terraform state
infrastructure/backend.tf
Other components
- Terraform operator
- Web visitor
Connections 10
- Terraform operator → Infrastructure config: applies
README.md - Infrastructure config → Network module: uses module
README.md - Infrastructure config → Compute module: uses module
README.md - Network module → VPC and public network: creates
README.md - Compute module → EC2 and Apache: creates
README.md - VPC and public network → EC2 and Apache: provides subnet
README.md - Infrastructure config → Deployment outputs: reports IP
README.md - Terraform operator → Backend config: applies
README.md - Backend config → S3 Terraform state: configures state
README.md - Web visitor → EC2 and Apache: opens public IP
README.md