How punitkashyup/iac-sample-project works
Main Components
A. Provider & Backend Layer
• AWS Provider configuration
• Backend configuration (indicated by backend.tf and backend-setup directory)
• Use a cloud symbol with AWS logo
B. Module Structure (Core architectural component)
• Four main modules identified:
• VPC Module
• Networking Module
• EC2 Module
• S3 Module
• Module as a distinct container
C. Resource Layer
• Actual AWS resources being created
• Resources by module
Level 1: Terraform Configuration
┌─────────────────────────────────┐
• main.tf / variables.tf / outputs.tf │
• ┘
Level 2: Modules Layer
┌────────┐ ┌──────────┐ ┌─────┐ ┌────┐
• VPC │ │Networking│ │ EC2 │ │ S3 │
• ┘ └──────────┘ └─────┘ └────┘
Level 3: AWS Resources Layer
[Actual AWS resources created by each module]
Specific Elements
A. VPC Module Section:
• VPC boundary
• CIDR block configuration
• Connection to Networking module
B. Networking Module Section:
• Public subnet representation
• Security group configurations
• Routing tables
C. EC2 Module Section:
• EC2 instance
• User data script indication
• GitHub integration for code deployment
• Connection to networking components
D. S3 Module Section:
• S3 bucket
• Versioning configuration
• Access points
Connection and Flow Indicators
• Resource creation flow (green)
• Network traffic flow (blue)
• Data access patterns (orange)
Additional Elements
• Environment indicator (dev/prod)
• AWS region boundary
• Security group rules visualization
• Tags and naming conventions
Technical Details to Highlight
• Backend configuration for state management
• Variable relationships between modules
• Output dependencies
• Resource naming patterns
• Security group rules and access patterns