# kfirm1208/aws-wordpress-three-tier-terraform architecture

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

- Interactive diagram: https://gitdiagram.com/kfirm1208/aws-wordpress-three-tier-terraform
- Repository: https://github.com/kfirm1208/aws-wordpress-three-tier-terraform

## Overview

This repository is Terraform for provisioning a highly available, secure AWS architecture for a school WordPress website. The documented capabilities span CDN delivery, load balancing and autoscaled compute, private MySQL storage, and network/security controls. The README does not expose module calls or traffic wiring, so internal provisioning links are shown as unverified rather than asserted; source excerpts were not available.

Main entry points: [`main.tf`](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/main.tf) (Infrastructure configuration), [`modules/network/vpc/main.tf`](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/network/vpc/main.tf) (VPC and subnets), [`modules/network/security/main.tf`](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/network/security/main.tf) (Security groups), [`modules/compute/cloudfront/main.tf`](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/compute/cloudfront/main.tf) (CloudFront CDN)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Terraform entrypoint"]
  node_root["Infrastructure configuration<br/>[main.tf]"]
end

subgraph group_networking["Network and security"]
  node_vpc["VPC and subnets<br/>[main.tf]"]
  node_security["Security groups<br/>[main.tf]"]
end

subgraph group_compute["Web delivery and compute"]
  node_cloudfront["CloudFront CDN<br/>[main.tf]"]
  node_alb["Application load balancer<br/>[main.tf]"]
  node_autoscaling["EC2 auto scaling<br/>[main.tf]"]
end

subgraph group_storage["Database"]
  node_rds[("Private MySQL database<br/>[main.tf]")]
end

node_operator(("Infrastructure operator"))

node_operator -->|"runs Terraform"| node_root
node_root -.->|"provisions"| node_vpc
node_root -.->|"provisions"| node_security
node_root -.->|"provisions"| node_cloudfront
node_root -.->|"provisions"| node_alb
node_root -.->|"provisions"| node_autoscaling
node_root -.->|"provisions"| node_rds

click node_root "https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/main.tf"
click node_vpc "https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/network/vpc/main.tf"
click node_security "https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/network/security/main.tf"
click node_cloudfront "https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/compute/cloudfront/main.tf"
click node_alb "https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/compute/alb/main.tf"
click node_autoscaling "https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/compute/autoscaling/main.tf"
click node_rds "https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/database/rds/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_root toneBlue
class node_vpc,node_security toneAmber
class node_cloudfront,node_alb,node_autoscaling toneMint
class node_rds toneRose
class node_operator toneIndigo
```

## Components

### Terraform entrypoint

- [Infrastructure configuration](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/main.tf): `main.tf`

### Network and security

- [VPC and subnets](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/network/vpc/main.tf): `modules/network/vpc/main.tf`
- [Security groups](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/network/security/main.tf): `modules/network/security/main.tf`

### Web delivery and compute

- [CloudFront CDN](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/compute/cloudfront/main.tf): `modules/compute/cloudfront/main.tf`
- [Application load balancer](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/compute/alb/main.tf): `modules/compute/alb/main.tf`
- [EC2 auto scaling](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/compute/autoscaling/main.tf): `modules/compute/autoscaling/main.tf`

### Database

- [Private MySQL database](https://github.com/kfirm1208/aws-wordpress-three-tier-terraform/blob/main/modules/database/rds/main.tf): `modules/database/rds/main.tf`

### Other components

- **Infrastructure operator**

## Connections

- Infrastructure operator → Infrastructure configuration: runs Terraform (evidence: `README.md`)
- Infrastructure configuration → VPC and subnets: provisions
- Infrastructure configuration → Security groups: provisions
- Infrastructure configuration → CloudFront CDN: provisions
- Infrastructure configuration → Application load balancer: provisions
- Infrastructure configuration → EC2 auto scaling: provisions
- Infrastructure configuration → Private MySQL database: provisions
