Diagrams python library allows you to draw architectural diagrams for AWS, and other clouds using Python code.

from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB

with Diagram("Grouped Workers", show=False, direction="TB"):
    ELB("lb") >> [EC2("worker1"),
                  EC2("worker2"),
                  EC2("worker3"),
                  EC2("worker4"),
                  EC2("worker5")] >> RDS("events")

Output:


My own wrapper for https://www.websequencediagrams.com/ is pywsd.

There is a Pure python implementation for WSD here