# antonbabenko/terraform-best-practices architecture

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

- Interactive diagram: https://gitdiagram.com/antonbabenko/terraform-best-practices
- Repository: https://github.com/antonbabenko/terraform-best-practices

## Overview

This repository is a free, opinionated guide to Terraform best practices, not an executable Terraform product. The principal workflow is for a Terraform user to consult the guide for recommendations; its contents cover foundational concepts, configuration practices, module/composition design, and worked examples. The file tree supports these content areas, but no source excerpts were supplied, so relationships among chapters and any detailed runtime behavior cannot be verified.

Main entry points: [`README.md`](https://github.com/antonbabenko/terraform-best-practices/blob/master/README.md) (Best-practice guide)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guide["Guide content"]
  node_guide["Best-practice guide<br/>[README.md]"]
  node_concepts["Core concepts<br/>[key-concepts.md]"]
  node_writing["Configuration writing"]
  node_naming["Naming guidance<br/>[naming.md]"]
  node_references["Reference guidance<br/>[references.md]"]
  node_modules["Module design"]
  node_resources["Resource modules"]
  node_compositions["Compositions<br/>[compositions.md]"]
end

subgraph group_examples["Terraform examples"]
  node_exampleguide["Example walkthroughs<br/>[examples.md]"]
  node_small["Small configuration<br/>[README.md]"]
  node_medium["Medium configuration<br/>[README.md]"]
  node_large["Large configuration<br/>[README.md]"]
end

node_user(("Terraform user"))

node_user -->|"consults"| node_guide

click node_guide "https://github.com/antonbabenko/terraform-best-practices/blob/master/README.md"
click node_concepts "https://github.com/antonbabenko/terraform-best-practices/blob/master/key-concepts.md"
click node_writing "https://github.com/antonbabenko/terraform-best-practices/blob/master/writing-terraform-configurations.md"
click node_naming "https://github.com/antonbabenko/terraform-best-practices/blob/master/naming.md"
click node_references "https://github.com/antonbabenko/terraform-best-practices/blob/master/references.md"
click node_modules "https://github.com/antonbabenko/terraform-best-practices/blob/master/key-concepts/infrastructure-modules.md"
click node_resources "https://github.com/antonbabenko/terraform-best-practices/blob/master/key-concepts/resource-modules.md"
click node_compositions "https://github.com/antonbabenko/terraform-best-practices/blob/master/key-concepts/compositions.md"
click node_exampleguide "https://github.com/antonbabenko/terraform-best-practices/blob/master/examples.md"
click node_small "https://github.com/antonbabenko/terraform-best-practices/blob/master/examples/small-terraform/README.md"
click node_medium "https://github.com/antonbabenko/terraform-best-practices/blob/master/examples/medium-terraform/README.md"
click node_large "https://github.com/antonbabenko/terraform-best-practices/blob/master/examples/large-terraform/README.md"

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_guide,node_concepts,node_writing,node_naming,node_references,node_modules,node_resources,node_compositions,node_user toneBlue
class node_exampleguide,node_small,node_medium,node_large toneAmber
```

## Components

### Guide content

- [Best-practice guide](https://github.com/antonbabenko/terraform-best-practices/blob/master/README.md): `README.md`
- [Core concepts](https://github.com/antonbabenko/terraform-best-practices/blob/master/key-concepts.md): `key-concepts.md`
- [Configuration writing](https://github.com/antonbabenko/terraform-best-practices/blob/master/writing-terraform-configurations.md): `writing-terraform-configurations.md`
- [Naming guidance](https://github.com/antonbabenko/terraform-best-practices/blob/master/naming.md): `naming.md`
- [Reference guidance](https://github.com/antonbabenko/terraform-best-practices/blob/master/references.md): `references.md`
- [Module design](https://github.com/antonbabenko/terraform-best-practices/blob/master/key-concepts/infrastructure-modules.md): `key-concepts/infrastructure-modules.md`
- [Resource modules](https://github.com/antonbabenko/terraform-best-practices/blob/master/key-concepts/resource-modules.md): `key-concepts/resource-modules.md`
- [Compositions](https://github.com/antonbabenko/terraform-best-practices/blob/master/key-concepts/compositions.md): `key-concepts/compositions.md`

### Terraform examples

- [Example walkthroughs](https://github.com/antonbabenko/terraform-best-practices/blob/master/examples.md): `examples.md`
- [Small configuration](https://github.com/antonbabenko/terraform-best-practices/blob/master/examples/small-terraform/README.md): `examples/small-terraform/README.md`
- [Medium configuration](https://github.com/antonbabenko/terraform-best-practices/blob/master/examples/medium-terraform/README.md): `examples/medium-terraform/README.md`
- [Large configuration](https://github.com/antonbabenko/terraform-best-practices/blob/master/examples/large-terraform/README.md): `examples/large-terraform/README.md`

### Other components

- **Terraform user**

## Connections

- Terraform user → Best-practice guide: consults (evidence: `README.md`)
