# masamasamasashito/cloudformation-vpc-subnet-sg-3az architecture

> Architecture diagram of the GitHub repository masamasamasashito/cloudformation-vpc-subnet-sg-3az, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az
- Repository: https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az

## Overview

This repository provides a CloudFormation template for quickly creating a three-AZ VPC network. The documented result has 9 public and 6 private subnets, with one network ACL, route table, and security group per subnet. Public route tables have an Internet Gateway route; security groups allow no inbound traffic and unrestricted outbound traffic. The README documents the deployment flow and resource counts; source excerpts were not available, so relationships are limited to those documented there.

Main entry points: [`cfn-vpc-subnet-sg-3az.yml`](https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml) (15 Route Tables)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_configuration["Template"]
  node_template["VPC Template"]
end

subgraph group_network["Network"]
  node_vpc["VPC"]
  node_subnets["15 Subnets"]
  node_igw["Internet Gateway"]
  node_routes["15 Route Tables"]
end

subgraph group_controls["Subnet Controls"]
  node_nacls["15 Network ACLs"]
  node_security_groups["15 Security Groups"]
end

node_operator(("Operator"))
node_cloudformation["CloudFormation"]

node_operator -->|"uploads template"| node_cloudformation
node_cloudformation -->|"deploys"| node_template
node_cloudformation -->|"creates"| node_vpc
node_cloudformation -->|"creates"| node_subnets
node_cloudformation -->|"uses"| node_igw
node_cloudformation -->|"creates"| node_routes
node_cloudformation -->|"creates"| node_nacls
node_cloudformation -->|"creates"| node_security_groups
node_routes -->|"public route"| node_igw

click node_template "https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml"
click node_vpc "https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml"
click node_subnets "https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml"
click node_igw "https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml"
click node_routes "https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml"
click node_nacls "https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml"
click node_security_groups "https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.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_template toneBlue
class node_vpc,node_subnets,node_igw,node_routes toneAmber
class node_nacls,node_security_groups toneMint
class node_operator,node_cloudformation toneIndigo
```

## Components

### Template

- [VPC Template](https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml): `cfn-vpc-subnet-sg-3az.yml`

### Network

- [VPC](https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml): `cfn-vpc-subnet-sg-3az.yml`
- [15 Subnets](https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml): `cfn-vpc-subnet-sg-3az.yml`
- [Internet Gateway](https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml): `cfn-vpc-subnet-sg-3az.yml`
- [15 Route Tables](https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml): `cfn-vpc-subnet-sg-3az.yml`

### Subnet Controls

- [15 Network ACLs](https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml): `cfn-vpc-subnet-sg-3az.yml`
- [15 Security Groups](https://github.com/masamasamasashito/cloudformation-vpc-subnet-sg-3az/blob/main/cfn-vpc-subnet-sg-3az.yml): `cfn-vpc-subnet-sg-3az.yml`

### Other components

- **Operator**
- **CloudFormation**

## Connections

- Operator → CloudFormation: uploads template (evidence: `README.md`)
- CloudFormation → VPC Template: deploys (evidence: `README.md`)
- CloudFormation → VPC: creates (evidence: `README.md`)
- CloudFormation → 15 Subnets: creates (evidence: `README.md`)
- CloudFormation → Internet Gateway: uses (evidence: `README.md`)
- CloudFormation → 15 Route Tables: creates (evidence: `README.md`)
- CloudFormation → 15 Network ACLs: creates (evidence: `README.md`)
- CloudFormation → 15 Security Groups: creates (evidence: `README.md`)
- 15 Route Tables → Internet Gateway: public route (evidence: `README.md`)
