patrickchugh/terravision / skills/terravision-cloud-diagrams
terravision-cloud-diagrams
VerifiedDraw cloud architecture diagrams for AWS, Azure or GCP with the official provider icon sets, using TerraVision. Use whenever the user asks to draw, diagram, sketch or visualize a system on AWS, Azure or Google Cloud, or one built from their services (Lambda, DynamoDB, S3, EC2, EKS, RDS, API Gateway, Azure Functions, App Service, AKS, Cosmos DB, Cloud Run, GKE, BigQuery and the like), even if they never say 'cloud', 'diagram' or a tool name; also for a diagram of Terraform code. Prefer it over Mermaid, PlantUML, hand-written SVG or ASCII, which cannot use the official icons or VPC/subnet grouping. Not for diagrams that are not cloud infrastructure: sequence diagrams, flowcharts, class or ER diagrams, code or module structure, org charts, on-premises-only networks; use Mermaid or similar for those. Works with or without Terraform: with Terraform code the diagram comes from terraform plan; without it, write a small JSON graph and render it.
examples/gallery/gcp-shared-vpc-landing-zone.annotations.yml
View on GitHub# Title, CIDR ranges, arrow labels and flow steps for the gallery diagram. Use with:
# terravision draw --source gcp-shared-vpc-landing-zone.tvg.json --annotate gcp-shared-vpc-landing-zone.annotations.yml
format: '0.3'
title: Google Cloud landing zone with a Shared VPC host project, service projects and HA VPN
update:
google_compute_subnetwork.prod_apps:
ip_cidr_range: 10.10.0.0/20
google_compute_subnetwork.prod_data:
ip_cidr_range: 10.10.16.0/24
google_compute_subnetwork.nonprod_apps:
ip_cidr_range: 10.20.0.0/20
google_project.network_host:
label: Host Project (Shared VPC)
google_project.prod_orders:
label: Service Project Prod Orders
google_project.nonprod_sandbox:
label: Service Project Nonprod
google_project.security:
label: Security and Logging Project
tv_gcp_onprem.datacenter:
label: Corporate Datacenter
google_access_context_manager_service_perimeter.prod:
label: VPC-SC Perimeter Prod
google_compute_external_vpn_gateway.datacenter:
label: Peer VPN Gateway Datacenter
google_compute_forwarding_rule.orders_internal_lb:
label: Forwarding Rule Orders Internal Lb
google_compute_forwarding_rule.psc_cloud_sql:
label: Forwarding Rule Psc Cloud Sql
google_compute_global_forwarding_rule.psc_google_apis:
label: Forwarding Rule Psc Google Apis
google_compute_ha_vpn_gateway.hybrid:
label: HA VPN Hybrid
google_compute_region_backend_service.orders:
label: Backend Service Orders
google_compute_router.hybrid:
label: Cloud Router Hybrid
google_kms_key_ring.landing_zone:
label: Cloud KMS Landing Zone
google_logging_organization_sink.audit:
label: Org Log Sink Audit
google_logging_project_bucket_config.audit_logs:
label: Log Bucket Audit Logs
google_pubsub_topic.security_findings:
label: Pub/Sub Security Findings
google_scc_notification_config.findings:
label: SCC Notifications Findings
google_secret_manager_secret.vpn_shared_secret:
label: Secret Manager Vpn Shared Secret
google_sql_database_instance.dev_orders:
label: Cloud SQL Dev Orders
google_sql_database_instance.orders:
label: Cloud SQL Orders
google_storage_bucket.order_documents:
label: Cloud Storage Order Documents
google_workstations_workstation_cluster.developers:
label: Workstations Developers
connect:
google_compute_external_vpn_gateway.datacenter:
- google_compute_ha_vpn_gateway.hybrid: HA VPN, 4 tunnels
google_compute_router.hybrid:
- google_compute_ha_vpn_gateway.hybrid: BGP
google_logging_organization_sink.audit:
- google_logging_project_bucket_config.audit_logs: All projects
flows:
Employee request:
description: An employee in the data centre uses the orders app
color: '#D93025'
steps:
- resource: tv_gcp_client.employees -> google_compute_external_vpn_gateway.datacenter
xlabel: Route
detail: An employee's request goes to the data centre's VPN gateway
- resource: google_compute_external_vpn_gateway.datacenter -> google_compute_ha_vpn_gateway.hybrid
xlabel: VPN
detail: across HA VPN to the Shared VPC in the host project; Cloud Router exchanges routes over BGP
- resource: google_compute_ha_vpn_gateway.hybrid -> google_compute_forwarding_rule.orders_internal_lb
xlabel: Balance
detail: to the orders internal load balancer in the prod subnet
- resource: google_compute_region_backend_service.orders -> google_compute_instance.orders~1
xlabel: Serve
detail: which spreads requests over VMs in two zones
- resource: google_compute_instance.orders~1 -> google_compute_forwarding_rule.psc_cloud_sql
xlabel: Query
detail: The VMs query Cloud SQL in the prod service project through a Private Service Connect endpoint
- resource: google_compute_instance.orders~1 -> google_compute_global_forwarding_rule.psc_google_apis
xlabel: Store
detail: and store documents in Cloud Storage through the Google APIs endpoint, inside the VPC Service Controls perimeter
Governance:
description: Every project reports to the security project
color: '#188038'
steps:
- resource: google_logging_organization_sink.audit -> google_logging_project_bucket_config.audit_logs
xlabel: Audit
detail: An organisation log sink sends every project's audit logs to a locked log bucket
- resource: google_scc_notification_config.findings -> google_pubsub_topic.security_findings
xlabel: Findings
detail: Security Command Center publishes new findings to Pub/Sub for the security team
- resource: google_compute_ha_vpn_gateway.hybrid -> google_workstations_workstation_cluster.developers
xlabel: Develop
detail: Developers work in Cloud Workstations in the nonprod subnet in another region
- resource: google_workstations_workstation_cluster.developers -> google_sql_database_instance.dev_orders
xlabel: Test
detail: against the nonprod project's database, with no route to prod
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |