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/azure-multi-region-dr.annotations.yml
View on GitHub# Title, CIDR ranges, arrow labels and flow steps for the gallery diagram. Use with:
# terravision draw --source azure-multi-region-dr.tvg.json --annotate azure-multi-region-dr.annotations.yml
format: '0.3'
title: Azure active-passive multi-region with Front Door, SQL failover group and geo-redundant storage
update:
azurerm_virtual_network.primary:
address_space:
- 10.70.0.0/16
azurerm_subnet.primary_app:
address_prefixes:
- 10.70.1.0/24
azurerm_subnet.primary_endpoints:
address_prefixes:
- 10.70.10.0/24
azurerm_linux_web_app.primary:
label: Web App
azurerm_linux_function_app.primary_worker:
label: Worker Function
azurerm_mssql_database.orders_primary:
label: Azure SQL (primary)
azurerm_storage_container.documents_primary:
label: Documents
azurerm_key_vault.primary:
label: Key Vault
azurerm_virtual_network.secondary:
address_space:
- 10.71.0.0/16
azurerm_subnet.secondary_app:
address_prefixes:
- 10.71.1.0/24
azurerm_subnet.secondary_endpoints:
address_prefixes:
- 10.71.10.0/24
azurerm_linux_web_app.secondary:
label: Web App
azurerm_linux_function_app.secondary_worker:
label: Worker Function
azurerm_mssql_database.orders_secondary:
label: Azure SQL (secondary)
azurerm_storage_container.documents_secondary:
label: Documents
azurerm_key_vault.secondary:
label: Key Vault
tv_azurerm_region.east_us_2:
label: East US 2 (primary)
tv_azurerm_region.central_us:
label: Central US (standby)
azurerm_cosmosdb_account.sessions:
label: Cosmos DB (2 regions)
azurerm_traffic_manager_profile.api:
label: Traffic Manager
tv_azurerm_internet.partners:
label: Partner Webhooks
azurerm_resource_group.global:
label: Resource Group Global
azurerm_container_registry.images:
label: Container Registry (geo-replicated)
azurerm_application_insights.global:
label: Application Insights
azurerm_cdn_frontdoor_firewall_policy.waf:
label: Front Door WAF Policy
azurerm_cdn_frontdoor_profile.global:
label: Azure Front Door
azurerm_dns_zone.public:
label: Azure DNS
azurerm_log_analytics_workspace.global:
label: Log Analytics
connect:
azurerm_cdn_frontdoor_profile.global:
- azurerm_linux_web_app.primary: Priority 1
- azurerm_linux_web_app.secondary: Priority 2
azurerm_mssql_database.orders_primary:
- azurerm_mssql_database.orders_secondary: Failover group
azurerm_storage_container.documents_primary:
- azurerm_storage_container.documents_secondary: RA-GZRS
flows:
Normal operation:
description: Requests are served from East US 2
steps:
- resource: tv_azurerm_users.customers -> azurerm_dns_zone.public
xlabel: Resolve
detail: The site's name resolves in Azure DNS to Front Door
- resource: azurerm_cdn_frontdoor_profile.global -> azurerm_linux_web_app.primary
xlabel: Primary
detail: Front Door sends traffic to the primary origin, East US 2, while its health probes pass
- resource: azurerm_linux_web_app.primary -> azurerm_private_endpoint.primary_sql
xlabel: Write
detail: The web app writes orders to the failover group's read-write listener
- resource: azurerm_mssql_database.orders_primary -> azurerm_mssql_database.orders_secondary
xlabel: Replicate
detail: Azure SQL geo-replicates every change to Central US
- resource: azurerm_storage_container.documents_primary -> azurerm_storage_container.documents_secondary
xlabel: Copy
detail: and the storage account copies documents to the paired region
- resource: azurerm_linux_web_app.primary -> azurerm_private_endpoint.primary_cosmos
xlabel: Session
detail: Sessions live in Cosmos DB, replicated to both regions
Regional failover:
description: East US 2 is lost
steps:
- resource: azurerm_cdn_frontdoor_profile.global -> azurerm_linux_web_app.secondary
xlabel: Fail over
detail: Health probes fail, and Front Door sends traffic to the standby web app in Central US
- resource: azurerm_linux_web_app.secondary -> azurerm_private_endpoint.secondary_sql
xlabel: Promote
detail: The failover group promotes the Central US database, and the listener follows it
- resource: azurerm_linux_web_app.secondary -> azurerm_private_endpoint.secondary_cosmos
xlabel: Sessions
detail: Customers keep their sessions from the Cosmos DB replica
- resource: azurerm_traffic_manager_profile.api -> azurerm_linux_function_app.secondary_worker
xlabel: Webhooks
detail: Traffic Manager moves partner webhooks to the Central US worker
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 |