Skip to content

Instantly share code, notes, and snippets.

@SanthoshNC
Created August 7, 2021 14:57
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 SanthoshNC/7931c781460b34800982b878077c982e to your computer and use it in GitHub Desktop.
Save SanthoshNC/7931c781460b34800982b878077c982e to your computer and use it in GitHub Desktop.
from diagrams import Diagram # importing diagram package
from diagrams.aws.compute import EC2 # importing AWS EC2 resource
with Diagram("Simple Diagram"): # "Simple Diagram" is the name of the diagram. The image will be stored as "simple_diagram.png"
EC2("web") # An icon of EC2 will be generated with the name "web"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment