Skip to content

Instantly share code, notes, and snippets.

@PaulDuvall
Created June 15, 2020 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save PaulDuvall/d1de3c53638b27022ed6cf5fcb3caff3 to your computer and use it in GitHub Desktop.
Save PaulDuvall/d1de3c53638b27022ed6cf5fcb3caff3 to your computer and use it in GitHub Desktop.
# https://diagrams.mingrammer.com/docs/nodes/aws
from diagrams import Cluster, Diagram
from diagrams.aws.compute import Lambda
from diagrams.aws.storage import S3
from diagrams.aws.network import APIGateway
from diagrams.aws.database import DynamodbTable
from diagrams.aws.security import IdentityAndAccessManagementIam
from diagrams.aws.devtools import Codebuild
from diagrams.aws.devtools import Codecommit
from diagrams.aws.devtools import Codedeploy
from diagrams.aws.devtools import Codepipeline
from diagrams.aws.management import Cloudformation
from diagrams.aws.devtools 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