Created
December 3, 2023 08:14
-
-
Save MeiyappanKannappa/bc184713d24f92622f7047b6c815a288 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 Cluster, Diagram, Edge | |
| from diagrams.gcp.network import CDN, DNS, LoadBalancing | |
| from diagrams.gcp.compute import Run | |
| from diagrams.gcp.database import SQL | |
| with (Diagram("GCP Cloud Architecture", show=True)): | |
| dns = DNS("DNS") | |
| # Create first logical grouping | |
| with Cluster("Product X") : | |
| # Create second inner logical grouping | |
| with Cluster("Services"): | |
| flow = [Run("APIs"), | |
| Run("Capability")] | |
| with Cluster("Database"): | |
| flow >> Edge(color="black") >> SQL("PostgresQL") | |
| dns >> CDN("CDN") >> LoadBalancing("Load Balancer") >> Edge(color="black") >> flow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment