# logssey/infrastructure architecture

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

- Interactive diagram: https://gitdiagram.com/logssey/infrastructure
- Repository: https://github.com/logssey/infrastructure

## Overview

Logssey Infrastructure defines and deploys AWS infrastructure for the Re:Used marketplace, with Terraform in the prod environment as the principal workflow: an operator plans and applies configuration, then accesses nodes and the Kubernetes cluster through SSM. The repository also includes Kubernetes platform configuration and an IaC-security collector added to a dashboard host. Relationships for the collector are limited to those visible in the bootstrap excerpt; some Terraform-to-resource detail is documented only at the README level.

Main entry points: [`terraform/environments/prod`](https://github.com/logssey/infrastructure/tree/main/terraform/environments/prod) (Prod configuration), [`deploy/logssey-dashboard/bootstrap-iac-host.py`](https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/bootstrap-iac-host.py) (Host bootstrap), [`kubespray`](https://github.com/logssey/infrastructure/tree/main/kubespray) (Kubespray cluster setup), [`k8s/platform`](https://github.com/logssey/infrastructure/tree/main/k8s/platform) (Platform add-ons)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_terraform["Terraform infrastructure"]
  node_prod_config["Prod configuration"]
  node_network["Network"]
  node_security["Security and IAM"]
  node_compute["Compute"]
  node_data["Data services"]
  node_load_balancing["Load balancing"]
  node_edge["Edge and DNS"]
  node_aws["AWS resources"]
end

subgraph group_cluster["Kubernetes platform"]
  node_kubespray["Kubespray cluster setup"]
  node_platform_addons["Platform add-ons"]
end

subgraph group_iac_security["IaC security collection"]
  node_bootstrap["Host bootstrap"]
  node_iac_worker["IaC worker"]
  node_collector["Cartography collector"]
  node_asset_graph[("Neo4j asset graph")]
  node_daily_runner["Daily collector runner"]
end

node_operator(("Operator"))

node_operator -->|"plans and applies"| node_prod_config
node_prod_config -->|"provisions"| node_aws
node_prod_config -.-> node_network
node_prod_config -.-> node_security
node_prod_config -.-> node_compute
node_prod_config -.-> node_data
node_prod_config -.-> node_load_balancing
node_prod_config -.-> node_edge
node_operator -->|"runs on cluster node"| node_kubespray
node_bootstrap -->|"adds service"| node_iac_worker
node_bootstrap -->|"adds service"| node_collector
node_bootstrap -->|"adds service"| node_asset_graph
node_daily_runner -->|"runs daily"| node_collector
node_collector -->|"collects into"| node_asset_graph
node_platform_addons -.-> node_kubespray

click node_prod_config "https://github.com/logssey/infrastructure/tree/main/terraform/environments/prod"
click node_network "https://github.com/logssey/infrastructure/tree/main/terraform/modules/network"
click node_security "https://github.com/logssey/infrastructure/tree/main/terraform/modules/security"
click node_compute "https://github.com/logssey/infrastructure/tree/main/terraform/modules/compute"
click node_data "https://github.com/logssey/infrastructure/tree/main/terraform/modules/rds"
click node_load_balancing "https://github.com/logssey/infrastructure/tree/main/terraform/modules/lb"
click node_edge "https://github.com/logssey/infrastructure/tree/main/terraform/modules/edge"
click node_kubespray "https://github.com/logssey/infrastructure/tree/main/kubespray"
click node_platform_addons "https://github.com/logssey/infrastructure/tree/main/k8s/platform"
click node_bootstrap "https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/bootstrap-iac-host.py"
click node_iac_worker "https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/bootstrap-iac-host.py"
click node_collector "https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/bootstrap-iac-host.py"
click node_asset_graph "https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/bootstrap-iac-host.py"
click node_daily_runner "https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/run-iac-collector.sh"

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_prod_config,node_network,node_security,node_compute,node_data,node_load_balancing,node_edge,node_aws toneBlue
class node_kubespray,node_platform_addons toneAmber
class node_bootstrap,node_iac_worker,node_collector,node_asset_graph,node_daily_runner toneMint
class node_operator toneIndigo
```

## Components

### Terraform infrastructure

- [Prod configuration](https://github.com/logssey/infrastructure/tree/main/terraform/environments/prod): `terraform/environments/prod`
- [Network](https://github.com/logssey/infrastructure/tree/main/terraform/modules/network): `terraform/modules/network`
- [Security and IAM](https://github.com/logssey/infrastructure/tree/main/terraform/modules/security): `terraform/modules/security`
- [Compute](https://github.com/logssey/infrastructure/tree/main/terraform/modules/compute): `terraform/modules/compute`
- [Data services](https://github.com/logssey/infrastructure/tree/main/terraform/modules/rds): `terraform/modules/rds`
- [Load balancing](https://github.com/logssey/infrastructure/tree/main/terraform/modules/lb): `terraform/modules/lb`
- [Edge and DNS](https://github.com/logssey/infrastructure/tree/main/terraform/modules/edge): `terraform/modules/edge`
- **AWS resources**

### Kubernetes platform

- [Kubespray cluster setup](https://github.com/logssey/infrastructure/tree/main/kubespray): `kubespray`
- [Platform add-ons](https://github.com/logssey/infrastructure/tree/main/k8s/platform): `k8s/platform`

### IaC security collection

- [Host bootstrap](https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/bootstrap-iac-host.py): `deploy/logssey-dashboard/bootstrap-iac-host.py`
- [IaC worker](https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/bootstrap-iac-host.py): `deploy/logssey-dashboard/bootstrap-iac-host.py`
- [Cartography collector](https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/bootstrap-iac-host.py): `deploy/logssey-dashboard/bootstrap-iac-host.py`
- [Neo4j asset graph](https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/bootstrap-iac-host.py): `deploy/logssey-dashboard/bootstrap-iac-host.py`
- [Daily collector runner](https://github.com/logssey/infrastructure/blob/main/deploy/logssey-dashboard/run-iac-collector.sh): `deploy/logssey-dashboard/run-iac-collector.sh`

### Other components

- **Operator**

## Connections

- Operator → Prod configuration: plans and applies (evidence: `README.md`)
- Prod configuration → AWS resources: provisions (evidence: `README.md`)
- Prod configuration → Network
- Prod configuration → Security and IAM
- Prod configuration → Compute
- Prod configuration → Data services
- Prod configuration → Load balancing
- Prod configuration → Edge and DNS
- Operator → Kubespray cluster setup: runs on cluster node (evidence: `README.md`)
- Host bootstrap → IaC worker: adds service (evidence: `deploy/logssey-dashboard/bootstrap-iac-host.py`)
- Host bootstrap → Cartography collector: adds service (evidence: `deploy/logssey-dashboard/bootstrap-iac-host.py`)
- Host bootstrap → Neo4j asset graph: adds service (evidence: `deploy/logssey-dashboard/bootstrap-iac-host.py`)
- Daily collector runner → Cartography collector: runs daily (evidence: `deploy/logssey-dashboard/bootstrap-iac-host.py`)
- Cartography collector → Neo4j asset graph: collects into (evidence: `deploy/logssey-dashboard/bootstrap-iac-host.py`)
- Platform add-ons → Kubespray cluster setup
