Last active
March 18, 2022 20:49
-
-
Save sergiolucero/18d97b2831ba734b9aa601165baa831c to your computer and use it in GitHub Desktop.
diagrams in pure Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Author
sergiolucero
commented
Mar 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment