Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Last active Mar 18, 2022
Embed
What would you like to do?
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

sergiolucero commented Mar 18, 2022

image

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