# satyavinayak-e/terraform-gcp-automation architecture

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

- Interactive diagram: https://gitdiagram.com/satyavinayak-e/terraform-gcp-automation
- Repository: https://github.com/satyavinayak-e/terraform-gcp-automation

## Overview

This repository is an offline-oriented Terraform example for modeling GCP infrastructure. A user runs Terraform to review a plan; the configuration is parameterized and organized into reusable VPC and compute modules, with a local backend and root outputs. The documented infrastructure stages are a VPC, its subnet, and a Compute Engine VM. No source excerpts were provided, so relationships below rely on the README; module wiring and resource details beyond its architecture description are not asserted.

Main entry points: [`modules/vpc/main.tf`](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/vpc/main.tf) (Subnet), [`main.tf`](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/main.tf) (Root Configuration), [`modules/compute/main.tf`](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/compute/main.tf) (Compute VM)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_root["Terraform Configuration"]
  node_root_config["Root Configuration<br/>[main.tf]"]
  node_inputs["Root Inputs<br/>[variables.tf]"]
  node_outputs["Root Outputs<br/>[outputs.tf]"]
  node_backend["Local Backend<br/>[backend.tf]"]
end

subgraph group_network["Network Module"]
  node_vpc["VPC Network<br/>[main.tf]"]
  node_vpc_inputs["VPC Inputs<br/>[variables.tf]"]
  node_vpc_outputs["VPC Outputs<br/>[outputs.tf]"]
  node_subnet["Subnet<br/>[main.tf]"]
end

subgraph group_compute["Compute Module"]
  node_vm["Compute VM<br/>[main.tf]"]
  node_compute_inputs["Compute Inputs<br/>[variables.tf]"]
  node_compute_outputs["Compute Outputs<br/>[outputs.tf]"]
end

node_user(("Terraform User"))

node_user -->|"plans"| node_root_config
node_vpc -->|"contains"| node_subnet
node_subnet -->|"contains"| node_vm

click node_root_config "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/main.tf"
click node_inputs "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/variables.tf"
click node_outputs "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/outputs.tf"
click node_backend "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/backend.tf"
click node_vpc "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/vpc/main.tf"
click node_vpc_inputs "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/vpc/variables.tf"
click node_vpc_outputs "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/vpc/outputs.tf"
click node_subnet "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/vpc/main.tf"
click node_vm "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/compute/main.tf"
click node_compute_inputs "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/compute/variables.tf"
click node_compute_outputs "https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/compute/outputs.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_root_config,node_inputs,node_outputs,node_backend,node_user toneBlue
class node_vpc,node_vpc_inputs,node_vpc_outputs,node_subnet toneAmber
class node_vm,node_compute_inputs,node_compute_outputs toneMint
```

## Components

### Terraform Configuration

- [Root Configuration](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/main.tf): `main.tf`
- [Root Inputs](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/variables.tf): `variables.tf`
- [Root Outputs](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/outputs.tf): `outputs.tf`
- [Local Backend](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/backend.tf): `backend.tf`

### Network Module

- [VPC Network](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/vpc/main.tf): `modules/vpc/main.tf`
- [VPC Inputs](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/vpc/variables.tf): `modules/vpc/variables.tf`
- [VPC Outputs](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/vpc/outputs.tf): `modules/vpc/outputs.tf`
- [Subnet](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/vpc/main.tf): `modules/vpc/main.tf`

### Compute Module

- [Compute VM](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/compute/main.tf): `modules/compute/main.tf`
- [Compute Inputs](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/compute/variables.tf): `modules/compute/variables.tf`
- [Compute Outputs](https://github.com/satyavinayak-e/terraform-gcp-automation/blob/main/modules/compute/outputs.tf): `modules/compute/outputs.tf`

### Other components

- **Terraform User**

## Connections

- Terraform User → Root Configuration: plans (evidence: `README.md`)
- VPC Network → Subnet: contains (evidence: `README.md`)
- Subnet → Compute VM: contains (evidence: `README.md`)
