# dodamdodam-team/2025_dodamdodam_infra architecture

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

- Interactive diagram: https://gitdiagram.com/dodamdodam-team/2025_dodamdodam_infra
- Repository: https://github.com/dodamdodam-team/2025_dodamdodam_infra

## Overview

This repository provisions AWS infrastructure with Terraform: an operator creates the remote-state bucket, initializes Terraform, then applies the configuration. The tree identifies network, compute, load-balancing, data, and security modules, plus EC2 user-data scripts. The README does not describe module wiring or resource-level behavior, and no source excerpts were provided, so those relationships are intentionally not inferred.

Main entry points: [`Infra/main.tf`](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/main.tf) (Terraform Root)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_root["Terraform Entry"]
  node_terraform["Terraform Root<br/>[main.tf]"]
end

subgraph group_network["Network and Compute"]
  node_vpc["VPC<br/>[main.tf]"]
  node_alb["Load Balancer<br/>[main.tf]"]
  node_asg["Auto Scaling<br/>[main.tf]"]
  node_launch["Launch Template<br/>[main.tf]"]
  node_ec2["EC2 Instances<br/>[main.tf]"]
end

subgraph group_data["Data and Security"]
  node_ecr["Container Registry<br/>[main.tf]"]
  node_rds[("RDS Database<br/>[main.tf]")]
  node_cache[("ElastiCache<br/>[main.tf]")]
  node_secrets["Secrets Manager<br/>[main.tf]"]
  node_iam["IAM<br/>[main.tf]"]
end

subgraph group_instances["Instance Setup"]
  node_asgdata["ASG User Data<br/>[userdata.sh]"]
  node_bastiondata["Bastion User Data<br/>[userdata.sh]"]
  node_jenkinsdata["Jenkins User Data<br/>[userdata.sh]"]
  node_monitoringdata["Monitoring User Data<br/>[userdata.sh]"]
end

node_operator(("Operator"))
node_bucket[("Terraform State Bucket")]

node_operator -->|"creates"| node_bucket
node_operator -->|"applies"| node_terraform

click node_terraform "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/main.tf"
click node_vpc "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/vpc/main.tf"
click node_alb "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/alb/main.tf"
click node_asg "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/auto_scaling_group/main.tf"
click node_launch "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/launch_template/main.tf"
click node_ec2 "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/ec2/main.tf"
click node_ecr "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/ecr/main.tf"
click node_rds "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/rds/main.tf"
click node_cache "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/elaticache/main.tf"
click node_secrets "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/secrets-manager/main.tf"
click node_iam "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/iam/main.tf"
click node_asgdata "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/src/ec2/asg/userdata.sh"
click node_bastiondata "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/src/ec2/bastion/userdata.sh"
click node_jenkinsdata "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/src/ec2/jenkins/userdata.sh"
click node_monitoringdata "https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/src/ec2/monitoring/userdata.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_terraform toneBlue
class node_vpc,node_alb,node_asg,node_launch,node_ec2,node_bucket toneAmber
class node_ecr,node_rds,node_cache,node_secrets,node_iam toneMint
class node_asgdata,node_bastiondata,node_jenkinsdata,node_monitoringdata toneRose
class node_operator toneIndigo
```

## Components

### Terraform Entry

- [Terraform Root](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/main.tf): `Infra/main.tf`

### Network and Compute

- [VPC](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/vpc/main.tf): `Infra/modules/vpc/main.tf`
- [Load Balancer](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/alb/main.tf): `Infra/modules/alb/main.tf`
- [Auto Scaling](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/auto_scaling_group/main.tf): `Infra/modules/auto_scaling_group/main.tf`
- [Launch Template](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/launch_template/main.tf): `Infra/modules/launch_template/main.tf`
- [EC2 Instances](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/ec2/main.tf): `Infra/modules/ec2/main.tf`

### Data and Security

- [Container Registry](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/ecr/main.tf): `Infra/modules/ecr/main.tf`
- [RDS Database](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/rds/main.tf): `Infra/modules/rds/main.tf`
- [ElastiCache](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/elaticache/main.tf): `Infra/modules/elaticache/main.tf`
- [Secrets Manager](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/secrets-manager/main.tf): `Infra/modules/secrets-manager/main.tf`
- [IAM](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/modules/iam/main.tf): `Infra/modules/iam/main.tf`

### Instance Setup

- [ASG User Data](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/src/ec2/asg/userdata.sh): `Infra/src/ec2/asg/userdata.sh`
- [Bastion User Data](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/src/ec2/bastion/userdata.sh): `Infra/src/ec2/bastion/userdata.sh`
- [Jenkins User Data](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/src/ec2/jenkins/userdata.sh): `Infra/src/ec2/jenkins/userdata.sh`
- [Monitoring User Data](https://github.com/dodamdodam-team/2025_dodamdodam_infra/blob/main/Infra/src/ec2/monitoring/userdata.sh): `Infra/src/ec2/monitoring/userdata.sh`

### Other components

- **Operator**
- **Terraform State Bucket**

## Connections

- Operator → Terraform State Bucket: creates (evidence: `README.md`)
- Operator → Terraform Root: applies (evidence: `README.md`)
