Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from diagrams import Cluster, Diagram
from import Lambda
from import S3
from import APIGateway
from import DynamodbTable
from import IdentityAndAccessManagementIam
from import Codebuild
from import Codecommit
from import Codedeploy
from import Codepipeline
from import Cloudformation
from import CommandLineInterface
with Diagram("Serverless Web Apps", show=False, direction="TB"):
with Cluster("CloudFormation"):
cloudformation = Cloudformation("Stack")
cloudformation >> IdentityAndAccessManagementIam("IAM") >> Codecommit("CodeCommit") >> Codebuild("CodeBuild") >> S3("S3") >> Codepipeline("CodePipeline")
with Cluster("CodePipeline"):
codepipeline = Codepipeline("Pipeline")
codepipeline >> Codecommit("CodeCommit") >> Codebuild("CodeBuild") >> Cloudformation("CloudFormation")
with Cluster("Serverless Application Model"):
sam = Cloudformation("SAM Template")
sam >> APIGateway("API Gateway") >> Lambda("Lambda") >> DynamodbTable("DynamoDB")
cloudformation >> codepipeline >> sam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment