Skip to content

Instantly share code, notes, and snippets.

View clarkmains's full-sized avatar

Clark Mains clarkmains

  • Glasgow, Scotland
View GitHub Profile
@clarkmains
clarkmains / diagram.py
Created January 6, 2021 14:42
Example use of the Python module "diagrams"
""" An example use of the diagrams module to create an architecture diagram
similar to 'Reference Architecture: Cross Account AWS CodePipeline':
https://github.com/awslabs/aws-refarch-cross-account-pipeline
"""
from diagrams import Cluster, Diagram, Edge
from diagrams.aws.compute import Lambda
from diagrams.aws.devtools import Codebuild, Codecommit, Codepipeline
from diagrams.aws.general import Users