Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from diagrams import Diagram, Cluster
from import S3
from import Lambda
from import SNS, Eventbridge
from import Cloudwatch
from diagrams.onprem.queue import ActiveMQ
with Diagram("Alerting Workflow", show=True):
with Cluster('main account'):
topic = SNS('SNS Topic')
with Cluster('Lambda'):
l = Lambda('processor')
topic >> l
S3('lambda source') - l
cl = Cloudwatch('Cloudwatch')
l >> cl
event = Eventbridge('Cloudwatch\nevent rule')
cl >> event
with Cluster('Event Bus'):
event_bus = ActiveMQ('bus')
event >> event_bus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment