# dinesh10275/terraform-zero-to-hero architecture

> Architecture diagram of the GitHub repository dinesh10275/terraform-zero-to-hero, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dinesh10275/terraform-zero-to-hero
- Repository: https://github.com/dinesh10275/terraform-zero-to-hero

## Overview

This repository is a hands-on Terraform course, organized as a progression from basic infrastructure provisioning through configuration, reusable modules, collaboration, provisioners, workspaces, and secrets. The learner is the initiating actor; course materials and Terraform examples are the learning stages, rather than components of a single application runtime. The README documents the curriculum, but only Day-5/app.py was sampled, so the examples’ internal calls and most implementation details are not inferred.

Main entry points: [`Day-1/01-fundamentals.md`](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-1/01-fundamentals.md) (Terraform Basics), [`Day-1/PROJECT-ec2-instance-creation/main.tf`](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-1/PROJECT-ec2-instance-creation/main.tf) (EC2 Project), [`Day-2/01-providers.md`](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-2/01-providers.md) (Providers and Variables), [`Day-2/PROJECT-vpc-with-ec2/main.tf`](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-2/PROJECT-vpc-with-ec2/main.tf) (VPC and EC2 Project)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Terraform Foundations"]
  node_fundamentals["Terraform Basics<br/>[01-fundamentals.md]"]
  node_ec2_example["EC2 Project<br/>[main.tf]"]
end

subgraph group_configuration["Configuration Patterns"]
  node_providers_variables["Providers and Variables<br/>[01-providers.md]"]
  node_vpc_project["VPC and EC2 Project<br/>[main.tf]"]
end

subgraph group_reuse_state["Reuse and State"]
  node_modules["Reusable Modules<br/>[main.tf]"]
  node_backend_state["Backend and State<br/>[backend.tf]"]
end

subgraph group_operations["Operations"]
  node_provisioners["Provisioners<br/>[main.tf]"]
  node_sample_app["Sample Flask App<br/>[app.py]"]
  node_workspaces["Environment Workspaces<br/>[main.tf]"]
end

subgraph group_security["Security"]
  node_security_lessons["Terraform Security"]
  node_vault["Vault Integration"]
end

node_learner(("Learner"))

node_learner -->|"studies first"| node_fundamentals
node_fundamentals -->|"applies concepts"| node_ec2_example
node_ec2_example -->|"continues to"| node_providers_variables
node_providers_variables -->|"applies configuration"| node_vpc_project
node_vpc_project -->|"continues to"| node_modules
node_modules -->|"continues to"| node_backend_state
node_backend_state -->|"continues to"| node_provisioners
node_provisioners -->|"continues to"| node_workspaces
node_workspaces -->|"continues to"| node_security_lessons
node_security_lessons -->|"covers integration"| node_vault

click node_fundamentals "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-1/01-fundamentals.md"
click node_ec2_example "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-1/PROJECT-ec2-instance-creation/main.tf"
click node_providers_variables "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-2/01-providers.md"
click node_vpc_project "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-2/PROJECT-vpc-with-ec2/main.tf"
click node_modules "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-3/modules/ec2_instance/main.tf"
click node_backend_state "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-4/backend.tf"
click node_provisioners "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-5/main.tf"
click node_sample_app "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-5/app.py"
click node_workspaces "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-6/main.tf"
click node_security_lessons "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-7/01-secure-terraform.md"
click node_vault "https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-7/02-vault-integration.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_fundamentals,node_ec2_example toneBlue
class node_providers_variables,node_vpc_project toneAmber
class node_modules,node_backend_state toneMint
class node_provisioners,node_sample_app,node_workspaces toneRose
class node_security_lessons,node_vault,node_learner toneIndigo
```

## Components

### Terraform Foundations

- [Terraform Basics](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-1/01-fundamentals.md): `Day-1/01-fundamentals.md`
- [EC2 Project](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-1/PROJECT-ec2-instance-creation/main.tf): `Day-1/PROJECT-ec2-instance-creation/main.tf`

### Configuration Patterns

- [Providers and Variables](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-2/01-providers.md): `Day-2/01-providers.md`
- [VPC and EC2 Project](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-2/PROJECT-vpc-with-ec2/main.tf): `Day-2/PROJECT-vpc-with-ec2/main.tf`

### Reuse and State

- [Reusable Modules](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-3/modules/ec2_instance/main.tf): `Day-3/modules/ec2_instance/main.tf`
- [Backend and State](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-4/backend.tf): `Day-4/backend.tf`

### Operations

- [Provisioners](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-5/main.tf): `Day-5/main.tf`
- [Sample Flask App](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-5/app.py): `Day-5/app.py`
- [Environment Workspaces](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-6/main.tf): `Day-6/main.tf`

### Security

- [Terraform Security](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-7/01-secure-terraform.md): `Day-7/01-secure-terraform.md`
- [Vault Integration](https://github.com/dinesh10275/terraform-zero-to-hero/blob/main/Day-7/02-vault-integration.md): `Day-7/02-vault-integration.md`

### Other components

- **Learner**

## Connections

- Learner → Terraform Basics: studies first (evidence: `README.md`)
- Terraform Basics → EC2 Project: applies concepts (evidence: `README.md`)
- EC2 Project → Providers and Variables: continues to (evidence: `README.md`)
- Providers and Variables → VPC and EC2 Project: applies configuration (evidence: `README.md`)
- VPC and EC2 Project → Reusable Modules: continues to (evidence: `README.md`)
- Reusable Modules → Backend and State: continues to (evidence: `README.md`)
- Backend and State → Provisioners: continues to (evidence: `README.md`)
- Provisioners → Environment Workspaces: continues to (evidence: `README.md`)
- Environment Workspaces → Terraform Security: continues to (evidence: `README.md`)
- Terraform Security → Vault Integration: covers integration (evidence: `README.md`)
