# cloudwithdavid/resilient-app-infrastructure architecture

> Architecture diagram of the GitHub repository cloudwithdavid/resilient-app-infrastructure, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cloudwithdavid/resilient-app-infrastructure
- Repository: https://github.com/cloudwithdavid/resilient-app-infrastructure

## Overview

This repository describes resilient AWS application infrastructure, with a workflow of controlled delivery, Terraform provisioning, operation and observation, and failure recovery or cost-controlled rebuild. The README documents the target architecture and major capabilities, but the tree contains no implementation source beyond placeholders; the relationships below therefore reflect documented design, not inspected runtime calls.

Main entry points: [`.github/workflows`](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/.github/workflows) (GitHub Actions), [`infra`](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra) (Multi-AZ network)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_delivery["Controlled delivery"]
  node_github["GitHub Actions<br/>[workflows]"]
  node_approval["Deployment approval<br/>[workflows]"]
  node_oidc["AWS OIDC<br/>[workflows]"]
end

subgraph group_provisioning["Infrastructure provisioning"]
  node_terraform["Terraform provisioning"]
  node_state[("Remote state")]
end

subgraph group_runtime["AWS runtime"]
  node_network["Multi-AZ network"]
  node_loadbalancer["Application load balancer"]
  node_compute["EC2 Auto Scaling"]
  node_database[("Private RDS")]
  node_iam["IAM and tier isolation"]
end

subgraph group_operations["Operations and recovery"]
  node_ssm["Session Manager"]
  node_cloudwatch["CloudWatch telemetry"]
  node_health["Health checks and alarms"]
  node_recovery["Recovery validation"]
end

node_operator(("Operator"))
node_aws{{"Amazon Web Services"}}

node_operator -->|"initiates delivery"| node_github
node_github -->|"requires approval"| node_approval
node_github -->|"authenticates with"| node_oidc
node_github -->|"validates and plans"| node_terraform
node_operator -->|"destroys or rebuilds"| node_terraform
node_terraform -->|"provisions"| node_aws
node_terraform -->|"stores state in"| node_state
node_aws -->|"hosts"| node_network
node_network -->|"contains public tier"| node_loadbalancer
node_network -->|"contains private app tier"| node_compute
node_network -->|"contains private DB tier"| node_database
node_compute -->|"isolated from"| node_database
node_iam -->|"isolates access"| node_compute
node_iam -->|"isolates access"| node_database
node_operator -->|"administers through"| node_ssm
node_compute -->|"reports telemetry"| node_cloudwatch
node_cloudwatch -->|"drives monitoring"| node_health
node_health -->|"supports validation"| node_recovery
node_operator -->|"tests failures"| node_recovery

click node_github "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/.github/workflows"
click node_approval "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/.github/workflows"
click node_oidc "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/.github/workflows"
click node_terraform "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"
click node_state "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"
click node_network "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"
click node_loadbalancer "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"
click node_compute "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"
click node_database "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"
click node_iam "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"
click node_ssm "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"
click node_cloudwatch "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"
click node_health "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"
click node_recovery "https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra"

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_github,node_approval,node_oidc toneBlue
class node_terraform,node_state toneAmber
class node_network,node_loadbalancer,node_compute,node_database,node_iam toneMint
class node_ssm,node_cloudwatch,node_health,node_recovery toneRose
class node_operator,node_aws toneIndigo
```

## Components

### Controlled delivery

- [GitHub Actions](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/.github/workflows): `.github/workflows`
- [Deployment approval](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/.github/workflows): `.github/workflows`
- [AWS OIDC](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/.github/workflows): `.github/workflows`

### Infrastructure provisioning

- [Terraform provisioning](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`
- [Remote state](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`

### AWS runtime

- [Multi-AZ network](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`
- [Application load balancer](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`
- [EC2 Auto Scaling](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`
- [Private RDS](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`
- [IAM and tier isolation](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`

### Operations and recovery

- [Session Manager](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`
- [CloudWatch telemetry](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`
- [Health checks and alarms](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`
- [Recovery validation](https://github.com/cloudwithdavid/resilient-app-infrastructure/tree/main/infra): `infra`

### Other components

- **Operator**
- **Amazon Web Services**

## Connections

- Operator → GitHub Actions: initiates delivery (evidence: `README.md`)
- GitHub Actions → Deployment approval: requires approval (evidence: `README.md`)
- GitHub Actions → AWS OIDC: authenticates with (evidence: `README.md`)
- GitHub Actions → Terraform provisioning: validates and plans (evidence: `README.md`)
- Operator → Terraform provisioning: destroys or rebuilds (evidence: `README.md`)
- Terraform provisioning → Amazon Web Services: provisions (evidence: `README.md`)
- Terraform provisioning → Remote state: stores state in (evidence: `README.md`)
- Amazon Web Services → Multi-AZ network: hosts (evidence: `README.md`)
- Multi-AZ network → Application load balancer: contains public tier (evidence: `README.md`)
- Multi-AZ network → EC2 Auto Scaling: contains private app tier (evidence: `README.md`)
- Multi-AZ network → Private RDS: contains private DB tier (evidence: `README.md`)
- EC2 Auto Scaling → Private RDS: isolated from (evidence: `README.md`)
- IAM and tier isolation → EC2 Auto Scaling: isolates access (evidence: `README.md`)
- IAM and tier isolation → Private RDS: isolates access (evidence: `README.md`)
- Operator → Session Manager: administers through (evidence: `README.md`)
- EC2 Auto Scaling → CloudWatch telemetry: reports telemetry (evidence: `README.md`)
- CloudWatch telemetry → Health checks and alarms: drives monitoring (evidence: `README.md`)
- Health checks and alarms → Recovery validation: supports validation (evidence: `README.md`)
- Operator → Recovery validation: tests failures (evidence: `README.md`)
