# leelanaveen123-git/task-1 architecture

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

- Interactive diagram: https://gitdiagram.com/leelanaveen123-git/task-1
- Repository: https://github.com/leelanaveen123-git/task-1

## Overview

This repository defines Terraform infrastructure for AWS environments, with reusable networking, compute, identity, storage, and EKS add-on modules. The tree also shows a separate state-bootstrap configuration and dev and staging environments. The README gives no architectural details, and no Terraform source excerpts were provided, so relationships between these components cannot be verified; the graph therefore shows the components without inferred call or deployment edges.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_state["State bootstrap"]
  node_bootstrap["State bootstrap<br/>[main.tf]"]
end

subgraph group_env["Environments"]
  node_dev["Dev environment<br/>[main.tf]"]
  node_staging["Staging environment<br/>[main.tf]"]
end

subgraph group_modules["Infrastructure modules"]
  node_vpc["VPC networking<br/>[main.tf]"]
  node_security["Security groups<br/>[main.tf]"]
  node_iam["IAM<br/>[main.tf]"]
  node_s3[("S3 storage<br/>[main.tf]")]
  node_ec2["EC2 compute<br/>[main.tf]"]
  node_eks["EKS cluster<br/>[main.tf]"]
  node_addons["EKS add-ons<br/>[karpenter.tf]"]
  node_karpenter_helm["Karpenter Helm<br/>[karpenter-helm.tf]"]
  node_karpenter_iam["Karpenter IAM<br/>[karpenter-iam.tf]"]
  node_karpenter_provisioning["Karpenter provisioning"]
  node_metrics["Metrics server<br/>[metrics-server.tf]"]
end

click node_bootstrap "https://github.com/leelanaveen123-git/task-1/blob/main/bootstrap/state/main.tf"
click node_dev "https://github.com/leelanaveen123-git/task-1/blob/main/environments/dev/main.tf"
click node_staging "https://github.com/leelanaveen123-git/task-1/blob/main/environments/staging/main.tf"
click node_vpc "https://github.com/leelanaveen123-git/task-1/blob/main/modules/vpc/main.tf"
click node_security "https://github.com/leelanaveen123-git/task-1/blob/main/modules/security-group/main.tf"
click node_iam "https://github.com/leelanaveen123-git/task-1/blob/main/modules/iam/main.tf"
click node_s3 "https://github.com/leelanaveen123-git/task-1/blob/main/modules/s3/main.tf"
click node_ec2 "https://github.com/leelanaveen123-git/task-1/blob/main/modules/ec2/main.tf"
click node_eks "https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks/main.tf"
click node_addons "https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks-addons/karpenter.tf"
click node_karpenter_helm "https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks-addons/karpenter-helm.tf"
click node_karpenter_iam "https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks-addons/karpenter-iam.tf"
click node_karpenter_provisioning "https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks-addons/karpenter-provisioning.tf"
click node_metrics "https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks-addons/metrics-server.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_bootstrap toneBlue
class node_dev,node_staging toneAmber
class node_vpc,node_security,node_iam,node_s3,node_ec2,node_eks,node_addons,node_karpenter_helm,node_karpenter_iam,node_karpenter_provisioning,node_metrics toneMint
```

## Components

### State bootstrap

- [State bootstrap](https://github.com/leelanaveen123-git/task-1/blob/main/bootstrap/state/main.tf): `bootstrap/state/main.tf`

### Environments

- [Dev environment](https://github.com/leelanaveen123-git/task-1/blob/main/environments/dev/main.tf): `environments/dev/main.tf`
- [Staging environment](https://github.com/leelanaveen123-git/task-1/blob/main/environments/staging/main.tf): `environments/staging/main.tf`

### Infrastructure modules

- [VPC networking](https://github.com/leelanaveen123-git/task-1/blob/main/modules/vpc/main.tf): `modules/vpc/main.tf`
- [Security groups](https://github.com/leelanaveen123-git/task-1/blob/main/modules/security-group/main.tf): `modules/security-group/main.tf`
- [IAM](https://github.com/leelanaveen123-git/task-1/blob/main/modules/iam/main.tf): `modules/iam/main.tf`
- [S3 storage](https://github.com/leelanaveen123-git/task-1/blob/main/modules/s3/main.tf): `modules/s3/main.tf`
- [EC2 compute](https://github.com/leelanaveen123-git/task-1/blob/main/modules/ec2/main.tf): `modules/ec2/main.tf`
- [EKS cluster](https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks/main.tf): `modules/eks/main.tf`
- [EKS add-ons](https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks-addons/karpenter.tf): `modules/eks-addons/karpenter.tf`
- [Karpenter Helm](https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks-addons/karpenter-helm.tf): `modules/eks-addons/karpenter-helm.tf`
- [Karpenter IAM](https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks-addons/karpenter-iam.tf): `modules/eks-addons/karpenter-iam.tf`
- [Karpenter provisioning](https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks-addons/karpenter-provisioning.tf): `modules/eks-addons/karpenter-provisioning.tf`
- [Metrics server](https://github.com/leelanaveen123-git/task-1/blob/main/modules/eks-addons/metrics-server.tf): `modules/eks-addons/metrics-server.tf`
