# nukarapusai/aws-cloudfront-waf-shield-cdn-security architecture

> Architecture diagram of the GitHub repository nukarapusai/aws-cloudfront-waf-shield-cdn-security, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security
- Repository: https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security

## Overview

This repository is a guided AWS edge-security learning project, not a running application. Its learner workflow moves from architecture concepts through a reviewable Terraform example and three progressively advanced labs, then to security and incident-response reasoning. The README also documents the AWS request path. Connections below are based on README statements; source excerpts for the unsampled learning materials and Terraform are unavailable.

Main entry points: [`docs/END_TO_END_GUIDE.md`](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/END_TO_END_GUIDE.md) (End-to-end guide), [`examples/terraform/main.tf`](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/examples/terraform/main.tf) (Terraform example), [`labs/01-cloudfront-cache-hit-miss.md`](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/labs/01-cloudfront-cache-hit-miss.md) (Cache lab), [`labs/02-waf-block-sqli-xss.md`](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/labs/02-waf-block-sqli-xss.md) (WAF lab)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning path"]
  node_guide["End-to-end guide"]
  node_architecture["Architecture guide<br/>[ARCHITECTURE.md]"]
  node_diagram["Architecture diagram"]
  node_interviews["Interview questions"]
end

subgraph group_edge["AWS edge stack"]
  node_route53["Route 53"]
  node_shield["AWS Shield"]
  node_waf["AWS WAF"]
  node_cloudfront["CloudFront"]
  node_origin["Origin services"]
  node_api["API Gateway"]
end

subgraph group_practice["Hands-on practice"]
  node_terraform["Terraform example<br/>[main.tf]"]
  node_cachelab["Cache lab"]
  node_waflab["WAF lab"]
  node_shieldlab["Shield lab"]
end

subgraph group_operations["Operations"]
  node_security["Security checklist<br/>[SECURITY.md]"]
  node_cost["Cost and cleanup"]
  node_troubleshooting["Troubleshooting<br/>[TROUBLESHOOTING.md]"]
end

node_learner(("Learner"))

node_learner -->|"follows"| node_guide
node_guide -->|"guides through"| node_architecture
node_guide -->|"guides through"| node_diagram
node_guide -->|"guides through"| node_terraform
node_guide -->|"guides through"| node_cachelab
node_guide -->|"guides through"| node_waflab
node_guide -->|"guides through"| node_shieldlab
node_guide -->|"guides through"| node_security
node_guide -->|"guides through"| node_troubleshooting
node_learner -->|"answers"| node_interviews
node_learner -->|"checks before labs"| node_cost
node_learner -->|"sends request"| node_route53
node_route53 -->|"routes through"| node_shield
node_shield -->|"filters next"| node_waf
node_waf -->|"passes request"| node_cloudfront
node_cloudfront -.->|"fetches on miss"| node_origin
node_cloudfront -.->|"may use"| node_api
node_cachelab -->|"studies caching"| node_cloudfront
node_waflab -->|"practices rules"| node_waf
node_shieldlab -->|"studies protection"| node_shield
node_terraform -->|"shows configuration"| node_cloudfront
node_terraform -->|"shows configuration"| node_waf
node_terraform -->|"locks S3 origin"| node_origin
node_security -->|"covers protection"| node_origin

click node_guide "https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/END_TO_END_GUIDE.md"
click node_architecture "https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/ARCHITECTURE.md"
click node_interviews "https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/INTERVIEW_QUESTIONS.md"
click node_terraform "https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/examples/terraform/main.tf"
click node_cachelab "https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/labs/01-cloudfront-cache-hit-miss.md"
click node_waflab "https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/labs/02-waf-block-sqli-xss.md"
click node_shieldlab "https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/labs/03-shield-ddos-simulation-safe.md"
click node_security "https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/SECURITY.md"
click node_cost "https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/COST_AND_CLEANUP.md"
click node_troubleshooting "https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/TROUBLESHOOTING.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_guide,node_architecture,node_diagram,node_interviews toneBlue
class node_route53,node_shield,node_waf,node_cloudfront,node_origin,node_api toneAmber
class node_terraform,node_cachelab,node_waflab,node_shieldlab toneMint
class node_security,node_cost,node_troubleshooting toneRose
class node_learner toneIndigo
```

## Components

### Learning path

- [End-to-end guide](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/END_TO_END_GUIDE.md): `docs/END_TO_END_GUIDE.md`
- [Architecture guide](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/ARCHITECTURE.md): `docs/ARCHITECTURE.md`
- **Architecture diagram**
- [Interview questions](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/INTERVIEW_QUESTIONS.md): `docs/INTERVIEW_QUESTIONS.md`

### AWS edge stack

- **Route 53**
- **AWS Shield**
- **AWS WAF**
- **CloudFront**
- **Origin services**
- **API Gateway**

### Hands-on practice

- [Terraform example](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/examples/terraform/main.tf): `examples/terraform/main.tf`
- [Cache lab](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/labs/01-cloudfront-cache-hit-miss.md): `labs/01-cloudfront-cache-hit-miss.md`
- [WAF lab](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/labs/02-waf-block-sqli-xss.md): `labs/02-waf-block-sqli-xss.md`
- [Shield lab](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/labs/03-shield-ddos-simulation-safe.md): `labs/03-shield-ddos-simulation-safe.md`

### Operations

- [Security checklist](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/SECURITY.md): `docs/SECURITY.md`
- [Cost and cleanup](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/COST_AND_CLEANUP.md): `docs/COST_AND_CLEANUP.md`
- [Troubleshooting](https://github.com/nukarapusai/aws-cloudfront-waf-shield-cdn-security/blob/main/docs/TROUBLESHOOTING.md): `docs/TROUBLESHOOTING.md`

### Other components

- **Learner**

## Connections

- Learner → End-to-end guide: follows (evidence: `README.md`)
- End-to-end guide → Architecture guide: guides through (evidence: `README.md`)
- End-to-end guide → Architecture diagram: guides through (evidence: `README.md`)
- End-to-end guide → Terraform example: guides through (evidence: `README.md`)
- End-to-end guide → Cache lab: guides through (evidence: `README.md`)
- End-to-end guide → WAF lab: guides through (evidence: `README.md`)
- End-to-end guide → Shield lab: guides through (evidence: `README.md`)
- End-to-end guide → Security checklist: guides through (evidence: `README.md`)
- End-to-end guide → Troubleshooting: guides through (evidence: `README.md`)
- Learner → Interview questions: answers (evidence: `README.md`)
- Learner → Cost and cleanup: checks before labs (evidence: `README.md`)
- Learner → Route 53: sends request (evidence: `README.md`)
- Route 53 → AWS Shield: routes through (evidence: `README.md`)
- AWS Shield → AWS WAF: filters next (evidence: `README.md`)
- AWS WAF → CloudFront: passes request (evidence: `README.md`)
- CloudFront → Origin services: fetches on miss (evidence: `README.md`)
- CloudFront → API Gateway: may use (evidence: `README.md`)
- Cache lab → CloudFront: studies caching (evidence: `README.md`)
- WAF lab → AWS WAF: practices rules (evidence: `README.md`)
- Shield lab → AWS Shield: studies protection (evidence: `README.md`)
- Terraform example → CloudFront: shows configuration (evidence: `README.md`)
- Terraform example → AWS WAF: shows configuration (evidence: `README.md`)
- Terraform example → Origin services: locks S3 origin (evidence: `README.md`)
- Security checklist → Origin services: covers protection (evidence: `README.md`)
