PlantUML Deployment Diagram: Cloud Infrastructure
Map cloud infrastructure with PlantUML deployment diagrams. Model AWS, GCP, or Azure topologies with nodes, databases, load balancers, and network zones.
Detailed Explanation
Cloud Infrastructure Deployment Diagrams
Deployment diagrams show the physical (or virtual) infrastructure where your software runs. For cloud-native systems, they map services to cloud resources.
AWS-Style Deployment
@startuml
title Production Infrastructure (AWS)
cloud "AWS" {
node "VPC" {
node "Public Subnet" {
[ALB] as LB
[NAT Gateway] as NAT
}
node "Private Subnet - App" {
node "ECS Cluster" {
[Web Service\n(3 tasks)] as WEB
[API Service\n(5 tasks)] as API
[Worker Service\n(2 tasks)] as WRK
}
}
node "Private Subnet - Data" {
database "RDS PostgreSQL\n(Multi-AZ)" as RDS
database "ElastiCache Redis\n(Cluster)" as REDIS
}
}
[S3 Bucket\n(Static Assets)] as S3
[CloudFront CDN] as CF
queue "SQS Queue" as SQS
[Lambda\n(Image Resize)] as LAMBDA
}
actor User
User --> CF
CF --> S3
CF --> LB
LB --> WEB
LB --> API
API --> RDS
API --> REDIS
API --> SQS
SQS --> WRK
WEB --> API
S3 --> LAMBDA
@enduml
Node Types
| Keyword | Use For |
|---|---|
node |
Servers, VMs, containers, logical groups |
database |
Databases, caches, object stores |
cloud |
Cloud provider boundary |
queue |
Message queues |
[component] |
Software components running on a node |
Network Zones
Nest nodes inside other nodes to show network topology. Public subnets contain internet-facing resources. Private subnets contain application and data resources. This hierarchy documents your security boundaries.
Scaling Annotations
Add replica counts in the component label (e.g., [API Service\n(5 tasks)]) to document the expected scale. This helps ops teams understand the baseline resource allocation.
Multi-Region Setup
node "US-East-1" {
[Primary API] as P1
database "Primary DB" as PDB
}
node "EU-West-1" {
[Replica API] as P2
database "Read Replica" as RDB
}
P1 --> PDB
P2 --> RDB
PDB --> RDB : async replication
Deployment diagrams make multi-region architectures and replication strategies visible at a glance.
Use Case
Documenting infrastructure for cloud architecture reviews, creating operational runbooks with topology maps, planning disaster recovery setups, and communicating infrastructure costs to management through visual resource mapping.
Try It — PlantUML Editor
Related Topics
PlantUML Component Diagram: Microservices Architecture
Component Diagrams
PlantUML Component Diagram: Layered Architecture
Component Diagrams
PlantUML Activity Diagram: CI/CD Pipeline Visualization
Activity Diagrams
PlantUML Sequence Diagram: Async Message Queues
Sequence Diagrams
PlantUML State Diagram: Order Lifecycle
State Diagrams