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