# oliversims/aws-eks-petclinic-platform architecture

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

- Interactive diagram: https://gitdiagram.com/oliversims/aws-eks-petclinic-platform
- Repository: https://github.com/oliversims/aws-eks-petclinic-platform
- Video tour (about a minute): https://gitdiagram.com/oliversims/aws-eks-petclinic-platform/video

## Overview

This repository is a public portfolio write-up, not the platform implementation: its README says Terraform, application source, Helm charts, Kubernetes manifests, and scripts are in private repositories. The principal documented workflow runs from an application change through image build and registry publication, then GitOps reconciliation. The graph preserves the described infrastructure, security, observability, and operations capabilities; component paths are null where the public tree provides no implementation source.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_delivery["Application delivery"]
  node_ci["GitHub Actions CI"]
  node_ecr[("Private ECR")]
  node_dispatch["Repository dispatch"]
  node_values["Helm values in Git"]
  node_argocd["Argo CD"]
end

subgraph group_platform["AWS platform"]
  node_terraform["Terraform infrastructure"]
  node_network["VPC and networking"]
  node_eks["Amazon EKS"]
  node_secrets[("Secrets Manager")]
end

subgraph group_runtime["Cluster runtime"]
  node_external_secrets["External Secrets Operator"]
  node_services["Petclinic services"]
  node_rds[("RDS MySQL")]
  node_edge["ALB and DNS"]
  node_autoscaling["Karpenter"]
end

subgraph group_operations["Operations"]
  node_observability["Monitoring and logging"]
  node_day2["Operational tooling"]
end

node_developer(("Application change"))

node_developer -->|"pushes code"| node_ci
node_ci -->|"builds and pushes"| node_ecr
node_ci -->|"notifies platform"| node_dispatch
node_dispatch -->|"updates image tag"| node_values
node_values -->|"provides desired state"| node_argocd
node_argocd -->|"reconciles cluster"| node_eks
node_terraform -->|"provisions"| node_network
node_terraform -->|"provisions"| node_eks
node_terraform -->|"provisions"| node_ecr
node_terraform -->|"provisions"| node_rds
node_terraform -->|"provisions"| node_secrets
node_external_secrets -->|"reads secrets"| node_secrets
node_services -->|"uses database"| node_rds
node_edge -->|"routes traffic"| node_services
node_autoscaling -->|"scales nodes"| node_eks
node_observability -->|"observes workloads"| node_eks
node_day2 -->|"supports operations"| node_eks

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_ci,node_ecr,node_dispatch,node_values,node_argocd toneBlue
class node_terraform,node_network,node_eks,node_secrets toneAmber
class node_external_secrets,node_services,node_rds,node_edge,node_autoscaling toneMint
class node_observability,node_day2 toneRose
class node_developer toneIndigo
```

## Components

### Application delivery

- **GitHub Actions CI**
- **Private ECR**
- **Repository dispatch**
- **Helm values in Git**
- **Argo CD**

### AWS platform

- **Terraform infrastructure**
- **VPC and networking**
- **Amazon EKS**
- **Secrets Manager**

### Cluster runtime

- **External Secrets Operator**
- **Petclinic services**
- **RDS MySQL**
- **ALB and DNS**
- **Karpenter**

### Operations

- **Monitoring and logging**
- **Operational tooling**

### Other components

- **Application change**

## Connections

- Application change → GitHub Actions CI: pushes code (evidence: `README.md`)
- GitHub Actions CI → Private ECR: builds and pushes (evidence: `README.md`)
- GitHub Actions CI → Repository dispatch: notifies platform (evidence: `README.md`)
- Repository dispatch → Helm values in Git: updates image tag (evidence: `README.md`)
- Helm values in Git → Argo CD: provides desired state (evidence: `README.md`)
- Argo CD → Amazon EKS: reconciles cluster (evidence: `README.md`)
- Terraform infrastructure → VPC and networking: provisions (evidence: `README.md`)
- Terraform infrastructure → Amazon EKS: provisions (evidence: `README.md`)
- Terraform infrastructure → Private ECR: provisions (evidence: `README.md`)
- Terraform infrastructure → RDS MySQL: provisions (evidence: `README.md`)
- Terraform infrastructure → Secrets Manager: provisions (evidence: `README.md`)
- External Secrets Operator → Secrets Manager: reads secrets (evidence: `README.md`)
- Petclinic services → RDS MySQL: uses database (evidence: `README.md`)
- ALB and DNS → Petclinic services: routes traffic (evidence: `README.md`)
- Karpenter → Amazon EKS: scales nodes (evidence: `README.md`)
- Monitoring and logging → Amazon EKS: observes workloads (evidence: `README.md`)
- Operational tooling → Amazon EKS: supports operations (evidence: `README.md`)
