# wawm/terraform-wordpress architecture

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

- Interactive diagram: https://gitdiagram.com/wawm/terraform-wordpress
- Repository: https://github.com/wawm/terraform-wordpress

## Overview

This small repository describes a Terraform-based setup for installing WordPress on an AWS t2.micro instance. The README supports that overall product intent, but no source excerpts show how the Terraform files or YAML files work together, so their internal relationships are left unspecified.

Main entry points: [`main.tf`](https://github.com/wawm/terraform-wordpress/blob/master/main.tf) (Terraform config)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Site owner"))
node_terraform["Terraform config<br/>[main.tf]"]
node_variables["Terraform variables<br/>[variables.tf]"]
node_tfvars["Variable values<br/>[terraform.tfvars]"]
node_wordpress["WordPress setup<br/>[wordpress.yml]"]
node_s3update["S3 update<br/>[s3update.yml]"]
node_aws["AWS t2.micro"]
node_wordpress_site["WordPress site"]

node_user -->|"installs via"| node_wordpress_site
node_terraform -->|"deploys to"| node_aws
node_aws -->|"hosts"| node_wordpress_site

click node_terraform "https://github.com/wawm/terraform-wordpress/blob/master/main.tf"
click node_variables "https://github.com/wawm/terraform-wordpress/blob/master/variables.tf"
click node_tfvars "https://github.com/wawm/terraform-wordpress/blob/master/terraform.tfvars"
click node_wordpress "https://github.com/wawm/terraform-wordpress/blob/master/wordpress.yml"
click node_s3update "https://github.com/wawm/terraform-wordpress/blob/master/s3update.yml"

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_user,node_aws,node_wordpress_site toneIndigo
class node_terraform,node_variables,node_tfvars,node_wordpress,node_s3update toneTeal
```

## Components

### Other components

- **Site owner**
- [Terraform config](https://github.com/wawm/terraform-wordpress/blob/master/main.tf): `main.tf`
- [Terraform variables](https://github.com/wawm/terraform-wordpress/blob/master/variables.tf): `variables.tf`
- [Variable values](https://github.com/wawm/terraform-wordpress/blob/master/terraform.tfvars): `terraform.tfvars`
- [WordPress setup](https://github.com/wawm/terraform-wordpress/blob/master/wordpress.yml): `wordpress.yml`
- [S3 update](https://github.com/wawm/terraform-wordpress/blob/master/s3update.yml): `s3update.yml`
- **AWS t2.micro**
- **WordPress site**

## Connections

- Site owner → WordPress site: installs via (evidence: `README.md`)
- Terraform config → AWS t2.micro: deploys to (evidence: `README.md`)
- AWS t2.micro → WordPress site: hosts (evidence: `README.md`)
