# krishnad-dev/terraform-aws-modules architecture

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

- Interactive diagram: https://gitdiagram.com/krishnad-dev/terraform-aws-modules
- Repository: https://github.com/krishnad-dev/terraform-aws-modules

## Overview

This repository provides reusable Terraform modules for an AWS platform. The documented user workflow is to enter `deployments/platform` and run `terraform init` followed by `terraform apply`; the README describes four platform capabilities: multi-AZ networking, a hardened EKS cluster, private encrypted S3 storage, and private PostgreSQL. The tree identifies each module’s implementation file, but no source excerpts or deployment-module references were provided, so composition links are shown as unverified rather than asserted.

Main entry points: [`deployments/platform/main.tf`](https://github.com/krishnad-dev/terraform-aws-modules/blob/main/deployments/platform/main.tf) (Platform deployment), [`modules/vpc/main.tf`](https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/vpc/main.tf) (VPC networking), [`modules/eks/main.tf`](https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/eks/main.tf) (EKS cluster), [`modules/s3-bucket/main.tf`](https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/s3-bucket/main.tf) (Private S3 bucket)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Platform deployment"]
  node_platform["Platform deployment<br/>[main.tf]"]
end

subgraph group_network["Networking"]
  node_vpc["VPC networking<br/>[main.tf]"]
end

subgraph group_compute["Kubernetes"]
  node_eks["EKS cluster<br/>[main.tf]"]
end

subgraph group_storage["Storage"]
  node_s3[("Private S3 bucket<br/>[main.tf]")]
  node_postgres[("PostgreSQL database<br/>[main.tf]")]
end

node_operator(("Platform operator"))

node_operator -->|"applies configuration"| node_platform
node_platform -.->|"may configure"| node_vpc
node_platform -.->|"may configure"| node_eks
node_platform -.->|"may configure"| node_s3
node_platform -.->|"may configure"| node_postgres

click node_platform "https://github.com/krishnad-dev/terraform-aws-modules/blob/main/deployments/platform/main.tf"
click node_vpc "https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/vpc/main.tf"
click node_eks "https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/eks/main.tf"
click node_s3 "https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/s3-bucket/main.tf"
click node_postgres "https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/rds-postgres/main.tf"

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_platform toneBlue
class node_vpc toneAmber
class node_eks toneMint
class node_s3,node_postgres toneRose
class node_operator toneIndigo
```

## Components

### Platform deployment

- [Platform deployment](https://github.com/krishnad-dev/terraform-aws-modules/blob/main/deployments/platform/main.tf): `deployments/platform/main.tf`

### Networking

- [VPC networking](https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/vpc/main.tf): `modules/vpc/main.tf`

### Kubernetes

- [EKS cluster](https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/eks/main.tf): `modules/eks/main.tf`

### Storage

- [Private S3 bucket](https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/s3-bucket/main.tf): `modules/s3-bucket/main.tf`
- [PostgreSQL database](https://github.com/krishnad-dev/terraform-aws-modules/blob/main/modules/rds-postgres/main.tf): `modules/rds-postgres/main.tf`

### Other components

- **Platform operator**

## Connections

- Platform operator → Platform deployment: applies configuration (evidence: `README.md`)
- Platform deployment → VPC networking: may configure
- Platform deployment → EKS cluster: may configure
- Platform deployment → Private S3 bucket: may configure
- Platform deployment → PostgreSQL database: may configure
