# mohamed8989saleh-del/gcp-terraform-firewall-lab architecture

> Architecture diagram of the GitHub repository mohamed8989saleh-del/gcp-terraform-firewall-lab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mohamed8989saleh-del/gcp-terraform-firewall-lab
- Repository: https://github.com/mohamed8989saleh-del/gcp-terraform-firewall-lab

## Overview

This lab uses Terraform to provision a Google Cloud VPC and a tagged firewall rule, then can destroy those resources. The README documents the workflow and intended configuration; no source excerpts were provided, so relationships below are limited to those documented there.

Main entry points: [`main.tf`](https://github.com/mohamed8989saleh-del/gcp-terraform-firewall-lab/blob/main/main.tf) (Terraform configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_networking["Cloud networking"]
  node_configuration["Terraform configuration<br/>[main.tf]"]
  node_vpc["VPC network<br/>[main.tf]"]
  node_firewall["Firewall rule<br/>[main.tf]"]
end

node_operator(("Operator"))
node_terraform["Terraform CLI"]
node_gcp["GCP project"]

node_operator -->|"runs commands"| node_terraform
node_terraform -->|"plans and applies"| node_configuration
node_configuration -->|"provisions"| node_vpc
node_configuration -->|"provisions"| node_firewall
node_terraform -->|"provisions resources"| node_gcp
node_operator -->|"destroys resources"| node_terraform

click node_configuration "https://github.com/mohamed8989saleh-del/gcp-terraform-firewall-lab/blob/main/main.tf"
click node_vpc "https://github.com/mohamed8989saleh-del/gcp-terraform-firewall-lab/blob/main/main.tf"
click node_firewall "https://github.com/mohamed8989saleh-del/gcp-terraform-firewall-lab/blob/main/main.tf"

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_configuration,node_vpc,node_firewall toneBlue
class node_operator,node_terraform,node_gcp toneIndigo
```

## Components

### Cloud networking

- [Terraform configuration](https://github.com/mohamed8989saleh-del/gcp-terraform-firewall-lab/blob/main/main.tf): `main.tf`
- [VPC network](https://github.com/mohamed8989saleh-del/gcp-terraform-firewall-lab/blob/main/main.tf): `main.tf`
- [Firewall rule](https://github.com/mohamed8989saleh-del/gcp-terraform-firewall-lab/blob/main/main.tf): `main.tf`

### Other components

- **Operator**
- **Terraform CLI**
- **GCP project**

## Connections

- Operator → Terraform CLI: runs commands (evidence: `README.md`)
- Terraform CLI → Terraform configuration: plans and applies (evidence: `README.md`)
- Terraform configuration → VPC network: provisions (evidence: `README.md`)
- Terraform configuration → Firewall rule: provisions (evidence: `README.md`)
- Terraform CLI → GCP project: provisions resources (evidence: `README.md`)
- Operator → Terraform CLI: destroys resources (evidence: `README.md`)
