Created
June 1, 2025 19:02
-
-
Save RajChowdhury240/777c063180937b421a57bd80035dca70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from diagrams import Diagram, Cluster | |
from diagrams.aws.network import VPC, ELB, APIGateway | |
from diagrams.aws.compute import EC2, Lambda | |
from diagrams.aws.database import RDS, Dynamodb | |
from diagrams.aws.storage import S3 | |
from diagrams.aws.analytics import Glue | |
with Diagram("Serverless Architecture", show=True): | |
s3 = S3("S3 Bucket") | |
api = APIGateway("API Gateway") | |
with Cluster("VPC"): | |
with Cluster("Public Subnet"): | |
lb = ELB("Load Balancer") | |
web_ec2 = EC2("EC2 Instance") | |
with Cluster("Private Subnet"): | |
lam = Lambda("Lambda Function") | |
rds_db = RDS("RDS") | |
dynamo = Dynamodb("DynamoDB") | |
glue = Glue("Glue") | |
lb >> web_ec2 >> rds_db | |
api >> lam | |
lam >> dynamo | |
lam >> rds_db | |
s3 >> lam | |
s3 >> glue | |
glue >> rds_db |
Author
RajChowdhury240
commented
Jun 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment