This file contains 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
# 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