How patilaryan96/aws-infrastructure-automation works
This repository is a Terraform configuration for provisioning a public AWS web server. The operator runs Terraform; its configuration selects the AWS region and inputs, declares networking and compute resources, stores state in S3, and exposes the instance’s public IP. The README documents these relationships, but no Terraform source excerpts were provided, so the graph reflects documented behavior only.
Main entry points: main.tf EC2 Instance · provider.tf AWS Provider · variables.tf Deployment Variables · backend.tf S3 Backend Config
Components 14
Terraform Configuration
- AWS Provider
terraform/provider.tf - Deployment Variables
terraform/variables.tf
Public Networking
- VPC
terraform/main.tf - Public Subnet
terraform/main.tf - Internet Gateway
terraform/main.tf - Route Table
terraform/main.tf - Security Group
terraform/main.tf
Web Workload
- EC2 Instance
terraform/main.tf - Apache Setup
terraform/main.tf - Instance Outputs
terraform/outputs.tf
Remote State
- S3 Backend Config
terraform/backend.tf
Other components
- Operator
- Terraform CLI
- S3 State Bucket
Connections 17
- Operator → Terraform CLI: runs commands
README.md - Terraform CLI → AWS Provider: uses config
README.md - AWS Provider → Deployment Variables: sets region
README.md - Terraform CLI → VPC: provisions
README.md - Deployment Variables → VPC: configures CIDR
README.md - VPC → Public Subnet: contains
README.md - VPC → Internet Gateway: attaches
README.md - Public Subnet → Route Table: associates
README.md - Route Table → Internet Gateway: routes through
README.md - Terraform CLI → Security Group: provisions
README.md - Terraform CLI → EC2 Instance: launches
README.md - Public Subnet → EC2 Instance: hosts
README.md - Security Group → EC2 Instance: allows traffic
README.md - EC2 Instance → Apache Setup: runs user data
README.md - Instance Outputs → EC2 Instance: reads public IP
README.md - Terraform CLI → S3 Backend Config: initializes state
README.md - S3 Backend Config → S3 State Bucket: stores state
README.md