# sudoharry/terraform-labs architecture

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

- Interactive diagram: https://gitdiagram.com/sudoharry/terraform-labs
- Repository: https://github.com/sudoharry/terraform-labs

## Overview

Terraform-Labs is a hands-on Terraform learning repository, not one integrated runtime application. Its principal learner workflow moves from Terraform and AWS fundamentals through configuration, reusable modules, state collaboration, provisioning, workspaces, and Vault security. Separate examples extend that learning into modular AWS infrastructure, EKS, hybrid cloud, CI/CD, and a Vault-backed customer web app. The README documents the course sequence; project wiring beyond the sampled app is not established here, so those examples are shown as independent learning branches.

Main entry points: [`README.md`](https://github.com/sudoharry/terraform-labs/blob/main/README.md) (Course Guide), [`vault-k8s-demo-python-mysql-webapp/app/db_client.py`](https://github.com/sudoharry/terraform-labs/blob/main/vault-k8s-demo-python-mysql-webapp/app/db_client.py) (Database Client), [`vault-k8s-demo-python-mysql-webapp/app/db_client_transform.py`](https://github.com/sudoharry/terraform-labs/blob/main/vault-k8s-demo-python-mysql-webapp/app/db_client_transform.py) (Transform Client), [`vault-k8s-demo-python-mysql-webapp/app/app.py`](https://github.com/sudoharry/terraform-labs/blob/main/vault-k8s-demo-python-mysql-webapp/app/app.py) (Customer Web App)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_curriculum["Terraform Course"]
  node_course["Course Guide<br/>[README.md]"]
  node_fundamentals["Terraform Basics"]
  node_configuration["Configuration"]
  node_modules["Reusable Modules"]
  node_state["State Collaboration"]
  node_provisioners["Provisioners"]
  node_workspaces["Workspaces"]
  node_security["Vault Lessons"]
end

subgraph group_examples["Infrastructure Examples"]
  node_awsmodular["Modular AWS"]
  node_eks["EKS Cluster"]
  node_hybrid["Hybrid Cloud"]
  node_basicprovision["AWS Provisioning"]
end

subgraph group_automation["Automation Labs"]
  node_gha["GitHub Actions"]
end

subgraph group_vaultapp["Vault Web App"]
  node_vaultdemo["Customer Web App<br/>[app.py]"]
  node_dbclient["Database Client<br/>[db_client.py]"]
  node_transformclient["Transform Client"]
  node_mysql[("MySQL")]
  node_vault{{"HashiCorp Vault"}}
end

node_learner(("Learner"))

node_learner -->|"reads"| node_course
node_course -->|"starts with"| node_fundamentals
node_course -->|"continues with"| node_configuration
node_course -->|"covers"| node_modules
node_course -->|"covers"| node_state
node_course -->|"covers"| node_provisioners
node_course -->|"covers"| node_workspaces
node_course -->|"covers"| node_security
node_vaultdemo -->|"calls"| node_dbclient
node_vaultdemo -->|"selects"| node_transformclient
node_dbclient -->|"queries"| node_mysql
node_transformclient -->|"queries"| node_mysql
node_dbclient -->|"uses secrets"| node_vault
node_transformclient -->|"uses transforms"| node_vault

click node_course "https://github.com/sudoharry/terraform-labs/blob/main/README.md"
click node_fundamentals "https://github.com/sudoharry/terraform-labs/tree/main/Day1"
click node_configuration "https://github.com/sudoharry/terraform-labs/tree/main/Day2"
click node_modules "https://github.com/sudoharry/terraform-labs/tree/main/Day3"
click node_state "https://github.com/sudoharry/terraform-labs/tree/main/Day4"
click node_provisioners "https://github.com/sudoharry/terraform-labs/tree/main/Day5"
click node_workspaces "https://github.com/sudoharry/terraform-labs/tree/main/Day6/Terraform-workspace"
click node_security "https://github.com/sudoharry/terraform-labs/tree/main/Day7"
click node_awsmodular "https://github.com/sudoharry/terraform-labs/tree/main/Terraform-modular-project"
click node_eks "https://github.com/sudoharry/terraform-labs/tree/main/Terraform-eks"
click node_hybrid "https://github.com/sudoharry/terraform-labs/tree/main/hybrid-terraform-project"
click node_basicprovision "https://github.com/sudoharry/terraform-labs/tree/main/Basic-Practice"
click node_gha "https://github.com/sudoharry/terraform-labs/tree/main/Basic-Practice/CICD-Projects-GitHub-Action/GitHub-Actions-Labs"
click node_vaultdemo "https://github.com/sudoharry/terraform-labs/blob/main/vault-k8s-demo-python-mysql-webapp/app/app.py"
click node_dbclient "https://github.com/sudoharry/terraform-labs/blob/main/vault-k8s-demo-python-mysql-webapp/app/db_client.py"
click node_transformclient "https://github.com/sudoharry/terraform-labs/blob/main/vault-k8s-demo-python-mysql-webapp/app/db_client_transform.py"

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_course,node_fundamentals,node_configuration,node_modules,node_state,node_provisioners,node_workspaces,node_security toneBlue
class node_awsmodular,node_eks,node_hybrid,node_basicprovision toneAmber
class node_gha toneMint
class node_vaultdemo,node_dbclient,node_transformclient,node_mysql,node_vault toneRose
class node_learner toneIndigo
```

## Components

### Terraform Course

- [Course Guide](https://github.com/sudoharry/terraform-labs/blob/main/README.md): `README.md`
- [Terraform Basics](https://github.com/sudoharry/terraform-labs/tree/main/Day1): `Day1`
- [Configuration](https://github.com/sudoharry/terraform-labs/tree/main/Day2): `Day2`
- [Reusable Modules](https://github.com/sudoharry/terraform-labs/tree/main/Day3): `Day3`
- [State Collaboration](https://github.com/sudoharry/terraform-labs/tree/main/Day4): `Day4`
- [Provisioners](https://github.com/sudoharry/terraform-labs/tree/main/Day5): `Day5`
- [Workspaces](https://github.com/sudoharry/terraform-labs/tree/main/Day6/Terraform-workspace): `Day6/Terraform-workspace`
- [Vault Lessons](https://github.com/sudoharry/terraform-labs/tree/main/Day7): `Day7`

### Infrastructure Examples

- [Modular AWS](https://github.com/sudoharry/terraform-labs/tree/main/Terraform-modular-project): `Terraform-modular-project`
- [EKS Cluster](https://github.com/sudoharry/terraform-labs/tree/main/Terraform-eks): `Terraform-eks`
- [Hybrid Cloud](https://github.com/sudoharry/terraform-labs/tree/main/hybrid-terraform-project): `hybrid-terraform-project`
- [AWS Provisioning](https://github.com/sudoharry/terraform-labs/tree/main/Basic-Practice): `Basic-Practice`

### Automation Labs

- [GitHub Actions](https://github.com/sudoharry/terraform-labs/tree/main/Basic-Practice/CICD-Projects-GitHub-Action/GitHub-Actions-Labs): `Basic-Practice/CICD-Projects-GitHub-Action/GitHub-Actions-Labs`

### Vault Web App

- [Customer Web App](https://github.com/sudoharry/terraform-labs/blob/main/vault-k8s-demo-python-mysql-webapp/app/app.py): `vault-k8s-demo-python-mysql-webapp/app/app.py`
- [Database Client](https://github.com/sudoharry/terraform-labs/blob/main/vault-k8s-demo-python-mysql-webapp/app/db_client.py): `vault-k8s-demo-python-mysql-webapp/app/db_client.py`
- [Transform Client](https://github.com/sudoharry/terraform-labs/blob/main/vault-k8s-demo-python-mysql-webapp/app/db_client_transform.py): `vault-k8s-demo-python-mysql-webapp/app/db_client_transform.py`
- **MySQL**
- **HashiCorp Vault**

### Other components

- **Learner**

## Connections

- Learner → Course Guide: reads (evidence: `README.md`)
- Course Guide → Terraform Basics: starts with (evidence: `README.md`)
- Course Guide → Configuration: continues with (evidence: `README.md`)
- Course Guide → Reusable Modules: covers (evidence: `README.md`)
- Course Guide → State Collaboration: covers (evidence: `README.md`)
- Course Guide → Provisioners: covers (evidence: `README.md`)
- Course Guide → Workspaces: covers (evidence: `README.md`)
- Course Guide → Vault Lessons: covers (evidence: `README.md`)
- Customer Web App → Database Client: calls (evidence: `vault-k8s-demo-python-mysql-webapp/app/app.py`)
- Customer Web App → Transform Client: selects (evidence: `vault-k8s-demo-python-mysql-webapp/app/app.py`)
- Database Client → MySQL: queries (evidence: `vault-k8s-demo-python-mysql-webapp/app/db_client.py`)
- Transform Client → MySQL: queries (evidence: `vault-k8s-demo-python-mysql-webapp/app/db_client_transform.py`)
- Database Client → HashiCorp Vault: uses secrets (evidence: `vault-k8s-demo-python-mysql-webapp/app/db_client.py`)
- Transform Client → HashiCorp Vault: uses transforms (evidence: `vault-k8s-demo-python-mysql-webapp/app/db_client_transform.py`)
