# geigerjr/iac-on-aws architecture

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

- Interactive diagram: https://gitdiagram.com/geigerjr/iac-on-aws
- Repository: https://github.com/geigerjr/iac-on-aws

## Overview

This is a small Terraform example for provisioning an AWS EC2 instance and connecting to it over SSH. The documented workflow is: provide a key pair, apply the Terraform configuration, then use the instance’s public IP to connect. The tree contains only main.tf; the README also describes example outputs, but no outputs file is present. Relationships below are based on README documentation, not inspected Terraform source.

Main entry points: [`main.tf`](https://github.com/geigerjr/iac-on-aws/blob/main/main.tf) (EC2 configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_operator(("Operator"))
node_terraform["Terraform CLI"]
node_config["EC2 configuration<br/>[main.tf]"]
node_keypair["AWS key pair"]
node_ec2["EC2 instance"]
node_ssh["SSH client"]

node_operator -->|"applies configuration"| node_terraform
node_terraform -->|"reads configuration"| node_config
node_terraform -->|"provisions"| node_ec2
node_operator -->|"creates key pair"| node_keypair
node_config -->|"names key pair"| node_keypair
node_operator -->|"connects using"| node_ssh
node_ssh -->|"connects via public IP"| node_ec2

click node_config "https://github.com/geigerjr/iac-on-aws/blob/main/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_operator,node_terraform,node_keypair,node_ec2 toneIndigo
class node_config toneTeal
class node_ssh toneBlue
```

## Components

### Other components

- **Operator**
- **Terraform CLI**
- [EC2 configuration](https://github.com/geigerjr/iac-on-aws/blob/main/main.tf): `main.tf`
- **AWS key pair**
- **EC2 instance**
- **SSH client**

## Connections

- Operator → Terraform CLI: applies configuration (evidence: `README.md`)
- Terraform CLI → EC2 configuration: reads configuration (evidence: `README.md`)
- Terraform CLI → EC2 instance: provisions (evidence: `README.md`)
- Operator → AWS key pair: creates key pair (evidence: `README.md`)
- EC2 configuration → AWS key pair: names key pair (evidence: `README.md`)
- Operator → SSH client: connects using (evidence: `README.md`)
- SSH client → EC2 instance: connects via public IP (evidence: `README.md`)
