# krishz2058/aws-two-tier-architecture-project architecture

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

- Interactive diagram: https://gitdiagram.com/krishz2058/aws-two-tier-architecture-project
- Repository: https://github.com/krishz2058/aws-two-tier-architecture-project

## Overview

This repository documents an AWS two-tier deployment rather than providing executable source or infrastructure code. Its main path is Internet traffic through the Internet Gateway and public subnet to the web server, with backend access in the private subnet to the database server. The graph also preserves the documented routing and security configuration. All relationships come from the README; implementation details beyond that documentation are not available.

Main entry points: [`README.md`](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md) (Web Server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_networking["Networking"]
  node_vpc["Custom VPC<br/>[README.md]"]
  node_igw["Internet Gateway<br/>[README.md]"]
  node_public_subnet["Public Subnet<br/>[README.md]"]
  node_private_subnet["Private Subnet<br/>[README.md]"]
  node_public_routes["Public Route Table<br/>[README.md]"]
  node_private_routes["Private Route Table<br/>[README.md]"]
  node_nat["NAT Gateway<br/>[README.md]"]
end

subgraph group_compute["Compute"]
  node_web_server["Web Server<br/>[README.md]"]
  node_database_server[("Database Server<br/>[README.md]")]
  node_apache["Apache HTTP Server<br/>[README.md]"]
end

subgraph group_security["Security"]
  node_security_groups["Security Groups<br/>[README.md]"]
end

node_internet(("Internet"))

node_internet -->|"enters through"| node_igw
node_igw -->|"routes to"| node_public_subnet
node_public_subnet -->|"hosts"| node_web_server
node_web_server -->|"communicates with"| node_private_subnet
node_private_subnet -->|"hosts"| node_database_server
node_vpc -->|"contains"| node_public_subnet
node_vpc -->|"contains"| node_private_subnet
node_public_routes -->|"routes through"| node_igw
node_private_routes -->|"routes through"| node_nat
node_web_server -->|"runs"| node_apache
node_security_groups -->|"allows HTTP/HTTPS"| node_web_server
node_security_groups -->|"restricts access"| node_database_server

click node_vpc "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md"
click node_igw "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md"
click node_public_subnet "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md"
click node_private_subnet "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md"
click node_public_routes "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md"
click node_private_routes "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md"
click node_nat "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md"
click node_web_server "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md"
click node_database_server "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md"
click node_apache "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md"
click node_security_groups "https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/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_vpc,node_igw,node_public_subnet,node_private_subnet,node_public_routes,node_private_routes,node_nat toneBlue
class node_web_server,node_database_server,node_apache toneAmber
class node_security_groups toneMint
class node_internet toneIndigo
```

## Components

### Networking

- [Custom VPC](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`
- [Internet Gateway](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`
- [Public Subnet](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`
- [Private Subnet](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`
- [Public Route Table](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`
- [Private Route Table](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`
- [NAT Gateway](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`

### Compute

- [Web Server](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`
- [Database Server](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`
- [Apache HTTP Server](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`

### Security

- [Security Groups](https://github.com/krishz2058/aws-two-tier-architecture-project/blob/main/README.md): `README.md`

### Other components

- **Internet**

## Connections

- Internet → Internet Gateway: enters through (evidence: `README.md`)
- Internet Gateway → Public Subnet: routes to (evidence: `README.md`)
- Public Subnet → Web Server: hosts (evidence: `README.md`)
- Web Server → Private Subnet: communicates with (evidence: `README.md`)
- Private Subnet → Database Server: hosts (evidence: `README.md`)
- Custom VPC → Public Subnet: contains (evidence: `README.md`)
- Custom VPC → Private Subnet: contains (evidence: `README.md`)
- Public Route Table → Internet Gateway: routes through (evidence: `README.md`)
- Private Route Table → NAT Gateway: routes through (evidence: `README.md`)
- Web Server → Apache HTTP Server: runs (evidence: `README.md`)
- Security Groups → Web Server: allows HTTP/HTTPS (evidence: `README.md`)
- Security Groups → Database Server: restricts access (evidence: `README.md`)
