# fadil1212/aws-ecs-eks-cicd-pipeline architecture

> Architecture diagram of the GitHub repository fadil1212/aws-ecs-eks-cicd-pipeline, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fadil1212/aws-ecs-eks-cicd-pipeline
- Repository: https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline

## Overview

This repository is a hands-on AWS container-delivery lab: a change is checked, built once into an immutable image, deployed to ECS and EKS, and checked for matching release identity. Its other major product capabilities are a comparison/health application and controlled recovery and scaling experiments. The deployment and extension scripts are excerpted; Jenkins, GitHub Actions, and infrastructure are represented from README documentation and tree paths, not inspected source. Cloud resources described in the README were workshop resources and have since been decommissioned.

Main entry points: [`scripts/lab.py`](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/lab.py) (Deployment automation), [`scripts/cloud_extension.py`](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/cloud_extension.py) (Recovery and scaling), [`app/server.py`](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/app/server.py) (HTTP application), [`Jenkinsfile`](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/Jenkinsfile) (Release pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_delivery["CI and delivery"]
  node_actions["PR checks<br/>[ci.yml]"]
  node_jenkins["Release pipeline"]
  node_build["Image build and publish<br/>[lab.py]"]
end

subgraph group_deployment["Cloud deployment"]
  node_infra["Lab infrastructure<br/>[lab.yaml]"]
  node_deploy["Deployment automation<br/>[lab.py]"]
end

subgraph group_application["Demo application"]
  node_app["HTTP application<br/>[server.py]"]
  node_dashboard["Release dashboard<br/>[index.html]"]
  node_release["Release metadata<br/>[release.json]"]
end

subgraph group_resilience["Recovery and evidence"]
  node_extension["Recovery and scaling<br/>[cloud_extension.py]"]
  node_verify["Identity verification<br/>[lab.py]"]
  node_artifacts[("Verification artifacts<br/>[lab.py]")]
end

node_developer(("Developer"))
node_github["GitHub PR"]
node_ecr[("Amazon ECR")]
node_ecs["ECS Fargate"]
node_eks["EKS Kubernetes"]
node_audit[("S3 audit object")]
node_users(("Application user"))

node_developer -->|"opens PR"| node_github
node_github -->|"runs checks"| node_actions
node_actions -->|"follows merge"| node_jenkins
node_jenkins -->|"runs release stages"| node_build
node_build -->|"pushes image"| node_ecr
node_jenkins -->|"runs deployment"| node_deploy
node_deploy -->|"reads image"| node_ecr
node_deploy -->|"deploys digest"| node_ecs
node_deploy -->|"deploys digest"| node_eks
node_infra -.->|"provides lab resources"| node_deploy
node_app -->|"loads metadata"| node_release
node_app -->|"renders dashboard"| node_dashboard
node_users -->|"requests routes"| node_app
node_ecs -->|"serves release"| node_app
node_eks -->|"serves release"| node_app
node_jenkins -->|"checks both releases"| node_verify
node_verify -->|"saves JSON"| node_artifacts
node_extension -->|"uses deployment helpers"| node_deploy
node_extension -->|"tests rollback and scale"| node_ecs
node_extension -->|"tests rollback and scale"| node_eks
node_extension -->|"rechecks identity"| node_verify
node_extension -->|"uploads report"| node_audit

click node_actions "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/.github/workflows/ci.yml"
click node_jenkins "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/Jenkinsfile"
click node_build "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/lab.py"
click node_infra "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/infra/lab.yaml"
click node_deploy "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/lab.py"
click node_app "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/app/server.py"
click node_dashboard "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/app/index.html"
click node_release "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/app/release.json"
click node_extension "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/cloud_extension.py"
click node_verify "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/lab.py"
click node_artifacts "https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/lab.py"

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_actions,node_jenkins,node_build,node_users toneBlue
class node_infra,node_deploy,node_ecr,node_audit toneAmber
class node_app,node_dashboard,node_release toneMint
class node_extension,node_verify,node_artifacts toneRose
class node_developer,node_github,node_ecs,node_eks toneIndigo
```

## Components

### CI and delivery

- [PR checks](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/.github/workflows/ci.yml): `.github/workflows/ci.yml`
- [Release pipeline](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/Jenkinsfile): `Jenkinsfile`
- [Image build and publish](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/lab.py): `scripts/lab.py`

### Cloud deployment

- [Lab infrastructure](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/infra/lab.yaml): `infra/lab.yaml`
- [Deployment automation](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/lab.py): `scripts/lab.py`

### Demo application

- [HTTP application](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/app/server.py): `app/server.py`
- [Release dashboard](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/app/index.html): `app/index.html`
- [Release metadata](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/app/release.json): `app/release.json`

### Recovery and evidence

- [Recovery and scaling](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/cloud_extension.py): `scripts/cloud_extension.py`
- [Identity verification](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/lab.py): `scripts/lab.py`
- [Verification artifacts](https://github.com/fadil1212/aws-ecs-eks-cicd-pipeline/blob/main/scripts/lab.py): `scripts/lab.py`

### Other components

- **Developer**
- **GitHub PR**
- **Amazon ECR**
- **ECS Fargate**
- **EKS Kubernetes**
- **S3 audit object**
- **Application user**

## Connections

- Developer → GitHub PR: opens PR (evidence: `README.md`)
- GitHub PR → PR checks: runs checks (evidence: `README.md`)
- PR checks → Release pipeline: follows merge (evidence: `README.md`)
- Release pipeline → Image build and publish: runs release stages (evidence: `README.md`)
- Image build and publish → Amazon ECR: pushes image (evidence: `scripts/lab.py`)
- Release pipeline → Deployment automation: runs deployment (evidence: `README.md`)
- Deployment automation → Amazon ECR: reads image (evidence: `scripts/lab.py`)
- Deployment automation → ECS Fargate: deploys digest (evidence: `scripts/lab.py`)
- Deployment automation → EKS Kubernetes: deploys digest (evidence: `scripts/lab.py`)
- Lab infrastructure → Deployment automation: provides lab resources
- HTTP application → Release metadata: loads metadata (evidence: `app/server.py`)
- HTTP application → Release dashboard: renders dashboard (evidence: `app/server.py`)
- Application user → HTTP application: requests routes (evidence: `README.md`)
- ECS Fargate → HTTP application: serves release (evidence: `README.md`)
- EKS Kubernetes → HTTP application: serves release (evidence: `README.md`)
- Release pipeline → Identity verification: checks both releases (evidence: `README.md`)
- Identity verification → Verification artifacts: saves JSON (evidence: `scripts/lab.py`)
- Recovery and scaling → Deployment automation: uses deployment helpers (evidence: `scripts/cloud_extension.py`)
- Recovery and scaling → ECS Fargate: tests rollback and scale (evidence: `scripts/cloud_extension.py`)
- Recovery and scaling → EKS Kubernetes: tests rollback and scale (evidence: `scripts/cloud_extension.py`)
- Recovery and scaling → Identity verification: rechecks identity (evidence: `scripts/cloud_extension.py`)
- Recovery and scaling → S3 audit object: uploads report (evidence: `scripts/cloud_extension.py`)
