Diagrams
from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB
from IPython.display import Image
print(1)
with Diagram("GroupedWorkers", show=False, direction="TB"):
ELB("lb") >> [EC2("worker1"),
EC2("worker2"),
EC2("worker3"),
EC2("worker4"),
EC2("worker41"),
EC2("worker5")] >> RDS("events")
Image(filename='groupedworkers.png')