Skip to content

Instantly share code, notes, and snippets.

@baiyongzhen
Created August 24, 2020 11:59
Show Gist options
  • Save baiyongzhen/ce9563488329699fc014b15a993534d2 to your computer and use it in GitHub Desktop.
Save baiyongzhen/ce9563488329699fc014b15a993534d2 to your computer and use it in GitHub Desktop.
# diagram.py
from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB
with Diagram("Web Service", show=False):
ELB("lb") >> EC2("web") >> RDS("userdb")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment