# a-patel/aws-cdk-three-tier-web-app-workshop architecture

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

- Interactive diagram: https://gitdiagram.com/a-patel/aws-cdk-three-tier-web-app-workshop
- Repository: https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop

## Overview

This repository is an AWS CDK TypeScript blueprint for a three-tier web application. The visible workflow starts with CDK app construction, which instantiates a VPC stack defining network tiers, subnet selections, security groups, and outputs. A helper supplies naming functions used by that stack. Although an application stack declares load-balancer, compute, and database types, its constructor currently only applies tags; its instantiation in the entry point is commented out. The README describes deployment, but the excerpts show no deployed application-tier resources.

Main entry points: [`AwsCdkThreeTierAppWorkshop/lib/vpc-stack.ts`](https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/lib/vpc-stack.ts) (VPC stack), [`AwsCdkThreeTierAppWorkshop/bin/aws_cdk_three_tier_app_workshop.ts`](https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/bin/aws_cdk_three_tier_app_workshop.ts) (CDK app), [`AwsCdkThreeTierAppWorkshop/lib/helper.ts`](https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/lib/helper.ts) (Naming helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["CDK Entry"]
  node_app_entry["CDK app"]
end

subgraph group_network["Network Infrastructure"]
  node_vpc_stack["VPC stack<br/>[vpc-stack.ts]"]
  node_network_resources["VPC and tiers<br/>[vpc-stack.ts]"]
  node_app_stack["App stack stub<br/>[app-stack.ts]"]
end

subgraph group_support["Naming Support"]
  node_helper["Naming helper<br/>[helper.ts]"]
end

node_operator(("CDK deployer"))

node_operator -->|"deploys"| node_app_entry
node_app_entry -->|"instantiates"| node_vpc_stack
node_vpc_stack -->|"defines"| node_network_resources
node_vpc_stack -->|"calls"| node_helper

click node_app_entry "https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/bin/aws_cdk_three_tier_app_workshop.ts"
click node_vpc_stack "https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/lib/vpc-stack.ts"
click node_network_resources "https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/lib/vpc-stack.ts"
click node_app_stack "https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/lib/app-stack.ts"
click node_helper "https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/lib/helper.ts"

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_app_entry toneBlue
class node_vpc_stack,node_network_resources,node_app_stack toneAmber
class node_helper toneMint
class node_operator toneIndigo
```

## Components

### CDK Entry

- [CDK app](https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/bin/aws_cdk_three_tier_app_workshop.ts): `AwsCdkThreeTierAppWorkshop/bin/aws_cdk_three_tier_app_workshop.ts`

### Network Infrastructure

- [VPC stack](https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/lib/vpc-stack.ts): `AwsCdkThreeTierAppWorkshop/lib/vpc-stack.ts`
- [VPC and tiers](https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/lib/vpc-stack.ts): `AwsCdkThreeTierAppWorkshop/lib/vpc-stack.ts`
- [App stack stub](https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/lib/app-stack.ts): `AwsCdkThreeTierAppWorkshop/lib/app-stack.ts`

### Naming Support

- [Naming helper](https://github.com/a-patel/aws-cdk-three-tier-web-app-workshop/blob/main/AwsCdkThreeTierAppWorkshop/lib/helper.ts): `AwsCdkThreeTierAppWorkshop/lib/helper.ts`

### Other components

- **CDK deployer**

## Connections

- CDK deployer → CDK app: deploys
- CDK app → VPC stack: instantiates (evidence: `AwsCdkThreeTierAppWorkshop/bin/aws_cdk_three_tier_app_workshop.ts`)
- VPC stack → VPC and tiers: defines (evidence: `AwsCdkThreeTierAppWorkshop/lib/vpc-stack.ts`)
- VPC stack → Naming helper: calls (evidence: `AwsCdkThreeTierAppWorkshop/lib/vpc-stack.ts`)
