# naeemark/terraform-samples architecture

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

- Interactive diagram: https://gitdiagram.com/naeemark/terraform-samples
- Repository: https://github.com/naeemark/terraform-samples

## Overview

Terraform Samples is a collection of infrastructure deployment examples for AWS and GCP. The documented entry point is the root README, which links to both cloud-provider areas and describes the examples as quick deployments of commonly used use cases. The AWS tree contains five separately named configurations, from EC2 through Docker/RDS and a three-tier variant; their exact resource behavior is not shown in the supplied excerpts. The graph therefore shows the documented catalog links without inferring deployment steps or dependencies between configurations.

Main entry points: [`README.md`](https://github.com/naeemark/terraform-samples/blob/main/README.md) (Terraform samples), [`aws`](https://github.com/naeemark/terraform-samples/tree/main/aws) (AWS samples), [`gcp/README.md`](https://github.com/naeemark/terraform-samples/blob/main/gcp/README.md) (GCP samples)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Sample catalog"]
  node_catalog["Terraform samples<br/>[README.md]"]
end

subgraph group_aws["AWS examples"]
  node_aws_index["AWS samples"]
  node_ec2["EC2 sample<br/>[main.tf]"]
  node_docker["EC2 Docker sample<br/>[main.tf]"]
  node_rds["RDS sample<br/>[main.tf]"]
  node_docker_rds["Docker RDS sample<br/>[main.tf]"]
  node_three_tier["Three-tier sample<br/>[main.tf]"]
end

subgraph group_gcp["GCP examples"]
  node_gcp_samples["GCP samples<br/>[README.md]"]
end

node_user(("Infrastructure user"))

node_user -->|"chooses examples"| node_catalog
node_catalog -->|"links to"| node_aws_index
node_catalog -->|"links to"| node_gcp_samples

click node_catalog "https://github.com/naeemark/terraform-samples/blob/main/README.md"
click node_aws_index "https://github.com/naeemark/terraform-samples/tree/main/aws"
click node_ec2 "https://github.com/naeemark/terraform-samples/blob/main/aws/1-ec2/main.tf"
click node_docker "https://github.com/naeemark/terraform-samples/blob/main/aws/2-ec2-docker/main.tf"
click node_rds "https://github.com/naeemark/terraform-samples/blob/main/aws/3-rds/main.tf"
click node_docker_rds "https://github.com/naeemark/terraform-samples/blob/main/aws/4-ec2-docker-rds/main.tf"
click node_three_tier "https://github.com/naeemark/terraform-samples/blob/main/aws/5-ec2-docker-rds-3t/main.tf"
click node_gcp_samples "https://github.com/naeemark/terraform-samples/blob/main/gcp/README.md"

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_catalog,node_user toneBlue
class node_aws_index,node_ec2,node_docker,node_rds,node_docker_rds,node_three_tier toneAmber
class node_gcp_samples toneMint
```

## Components

### Sample catalog

- [Terraform samples](https://github.com/naeemark/terraform-samples/blob/main/README.md): `README.md`

### AWS examples

- [AWS samples](https://github.com/naeemark/terraform-samples/tree/main/aws): `aws`
- [EC2 sample](https://github.com/naeemark/terraform-samples/blob/main/aws/1-ec2/main.tf): `aws/1-ec2/main.tf`
- [EC2 Docker sample](https://github.com/naeemark/terraform-samples/blob/main/aws/2-ec2-docker/main.tf): `aws/2-ec2-docker/main.tf`
- [RDS sample](https://github.com/naeemark/terraform-samples/blob/main/aws/3-rds/main.tf): `aws/3-rds/main.tf`
- [Docker RDS sample](https://github.com/naeemark/terraform-samples/blob/main/aws/4-ec2-docker-rds/main.tf): `aws/4-ec2-docker-rds/main.tf`
- [Three-tier sample](https://github.com/naeemark/terraform-samples/blob/main/aws/5-ec2-docker-rds-3t/main.tf): `aws/5-ec2-docker-rds-3t/main.tf`

### GCP examples

- [GCP samples](https://github.com/naeemark/terraform-samples/blob/main/gcp/README.md): `gcp/README.md`

### Other components

- **Infrastructure user**

## Connections

- Infrastructure user → Terraform samples: chooses examples (evidence: `README.md`)
- Terraform samples → AWS samples: links to (evidence: `README.md`)
- Terraform samples → GCP samples: links to (evidence: `README.md`)
