Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Last active March 18, 2022 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiolucero/18d97b2831ba734b9aa601165baa831c to your computer and use it in GitHub Desktop.
Save sergiolucero/18d97b2831ba734b9aa601165baa831c to your computer and use it in GitHub Desktop.
diagrams in pure Python
from diagrams import Diagram, Cluster
from diagrams.aws.compute import EC2
from diagrams.aws.network import ELB
with Diagram("Simple Website Diagram", direction='TB') as diag:
API = ELB("API")
piton = ELB("Python")
with Cluster("Webserver Cluster"):
svc_group = [EC2("Spotify"),EC2("Shazam!"),EC2("YouTube"),EC2("REWIND!")]
API >> piton >> svc_group
diag
@sergiolucero
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment