# bhaskar-2001/website-aws-auto-scaling-deployment architecture

> Architecture diagram of the GitHub repository bhaskar-2001/website-aws-auto-scaling-deployment, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bhaskar-2001/website-aws-auto-scaling-deployment
- Repository: https://github.com/bhaskar-2001/website-aws-auto-scaling-deployment

## Overview

This repository combines a static portfolio site with its documented AWS deployment workflow. A push to GitHub triggers the Jenkins pipeline in `Jenkinsfile`; Jenkins syncs the site to S3 and dispatches an SSM command to deploy it across the running EC2 fleet. Users reach the site through the Application Load Balancer and Nginx. The README also describes fleet provisioning and CPU-based scaling. No source excerpts were available, so relationships below are based on README documentation only.

Main entry points: [`Jenkinsfile`](https://github.com/bhaskar-2001/website-aws-auto-scaling-deployment/blob/main/Jenkinsfile) (Deployment Pipeline), [`index.html`](https://github.com/bhaskar-2001/website-aws-auto-scaling-deployment/blob/main/index.html) (Portfolio Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio Site"]
  node_page["Portfolio Page<br/>[index.html]"]
end

subgraph group_delivery["Deployment"]
  node_jenkins["Jenkins"]
  node_pipeline["Deployment Pipeline"]
  node_s3[("S3 Bucket")]
  node_ssm["SSM Run Command"]
end

subgraph group_fleet["Compute and Scaling"]
  node_asg["Auto Scaling Group"]
  node_launch["Launch Template"]
  node_cloudwatch["CloudWatch Alarms"]
  node_ec2["EC2 Fleet"]
  node_nginx["Nginx"]
end

subgraph group_traffic["Public Access"]
  node_alb["Application Load Balancer"]
end

node_github(("GitHub"))
node_users(("End Users"))

node_github -->|"webhook triggers"| node_jenkins
node_jenkins -->|"runs pipeline"| node_pipeline
node_pipeline -->|"syncs site"| node_s3
node_pipeline -->|"dispatches command"| node_ssm
node_ssm -->|"deploys files"| node_ec2
node_ec2 -->|"reads site files"| node_s3
node_asg -->|"launches instances"| node_launch
node_launch -->|"configures instances"| node_ec2
node_cloudwatch -->|"triggers scaling"| node_asg
node_users -->|"HTTP requests"| node_alb
node_alb -->|"routes requests"| node_nginx
node_nginx -->|"serves page"| node_page
node_ec2 -->|"registers targets"| node_alb

click node_pipeline "https://github.com/bhaskar-2001/website-aws-auto-scaling-deployment/blob/main/Jenkinsfile"
click node_page "https://github.com/bhaskar-2001/website-aws-auto-scaling-deployment/blob/main/index.html"

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_page,node_users toneBlue
class node_jenkins,node_pipeline,node_s3,node_ssm toneAmber
class node_asg,node_launch,node_cloudwatch,node_ec2,node_nginx toneMint
class node_alb toneRose
class node_github toneIndigo
```

## Components

### Portfolio Site

- [Portfolio Page](https://github.com/bhaskar-2001/website-aws-auto-scaling-deployment/blob/main/index.html): `index.html`

### Deployment

- **Jenkins**
- [Deployment Pipeline](https://github.com/bhaskar-2001/website-aws-auto-scaling-deployment/blob/main/Jenkinsfile): `Jenkinsfile`
- **S3 Bucket**
- **SSM Run Command**

### Compute and Scaling

- **Auto Scaling Group**
- **Launch Template**
- **CloudWatch Alarms**
- **EC2 Fleet**
- **Nginx**

### Public Access

- **Application Load Balancer**

### Other components

- **GitHub**
- **End Users**

## Connections

- GitHub → Jenkins: webhook triggers (evidence: `README.md`)
- Jenkins → Deployment Pipeline: runs pipeline (evidence: `README.md`)
- Deployment Pipeline → S3 Bucket: syncs site (evidence: `README.md`)
- Deployment Pipeline → SSM Run Command: dispatches command (evidence: `README.md`)
- SSM Run Command → EC2 Fleet: deploys files (evidence: `README.md`)
- EC2 Fleet → S3 Bucket: reads site files (evidence: `README.md`)
- Auto Scaling Group → Launch Template: launches instances (evidence: `README.md`)
- Launch Template → EC2 Fleet: configures instances (evidence: `README.md`)
- CloudWatch Alarms → Auto Scaling Group: triggers scaling (evidence: `README.md`)
- End Users → Application Load Balancer: HTTP requests (evidence: `README.md`)
- Application Load Balancer → Nginx: routes requests (evidence: `README.md`)
- Nginx → Portfolio Page: serves page (evidence: `README.md`)
- EC2 Fleet → Application Load Balancer: registers targets (evidence: `README.md`)
