Components in this architecture diagram
- Engineer edits Terraform
- Open pull request
- terraform fmt & validate
- terraform plan
- Policy as code checks
- Policy violations?
- Fix: tags, encryption, open ports
- Cost estimate comment
- Plan posted to PR
- Reviewed & approved?
- Merge
- terraform apply with state lock
- Remote state backend
- Apply succeeded?
- Alert & manual fix
- Infrastructure updated
- Nightly drift detection
- Drift?
- Open issue
How to use this architecture diagram template
- Click Open in the editor. The architecture diagram opens on a new page in FlowDiagram — nothing is uploaded and there is no sign-up.
- Rename, add or delete shapes and drag them where you want; connectors stay attached as things move.
- Drop in vendor logos from the library — 1,160 of them, including every AWS, Azure and Google Cloud service icon — or restyle it with the colour and theme controls.
- Prefer text? Edit the Mermaid source below and paste it in through ☰ → Import diagram (see the Mermaid editor); it imports as an editable diagram.
- Export to PNG, SVG or PDF, or press Ctrl+L for a link that carries the whole diagram.
Mermaid source
The whole template is the text below. Paste it into FlowDiagram, keep it in Git next to the code it describes, or hand it to an AI assistant to extend.
flowchart TD
A((Engineer edits Terraform)) --> B[Open pull request]
B --> C[terraform fmt & validate]
C --> D[terraform plan]
D --> E[Policy as code checks]
E --> F{Policy violations?}
F -->|Yes| G[Fix: tags, encryption, open ports]
G --> A
F -->|No| H[Cost estimate comment]
H --> I[Plan posted to PR]
I --> J{Reviewed & approved?}
J -->|No| A
J -->|Yes| K[Merge]
K --> L[terraform apply with state lock]
L --> M[(Remote state backend)]
L --> N{Apply succeeded?}
N -->|No| O[Alert & manual fix]
N -->|Yes| P((Infrastructure updated))
M --> Q[Nightly drift detection]
Q --> R{Drift?}
R -->|Yes| S[Open issue]
Related: System architecture diagram tool · Mermaid editor · All cloud & devops infrastructure templates · All 521 templates