terraform-patterns

Generate Azure Terraform HCL for hub-spoke networks with private endpoints.

50|32|Updated Dec 8, 2025
One-click install
npx skills add https://github.com/jonathan-vella/azure-agentic-infraops-accelerator --skill terraform-patterns-jonathan-vella
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-patterns
Source: https://github.com/jonathan-vella/azure-agentic-infraops-accelerator/tree/main/.github/skills/terraform-patterns
Command: npx skills add https://github.com/jonathan-vella/azure-agentic-infraops-accelerator --skill terraform-patterns-jonathan-vella

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides reusable Azure Terraform patterns and best practices, helping you design robust, scalable, and maintainable infrastructure as code.

Core Features & Use Cases

  • Reusable Patterns: Offers pre-defined HCL code for common Azure network topologies (hub-spoke), security configurations (private endpoints), and operational requirements (diagnostic settings).
  • Best Practices Enforcement: Guides users on AVM module usage, provider versioning, conditional deployment, and resource lifecycle management.
  • Use Case: When designing a new Azure network, use this Skill to quickly implement a secure hub-spoke topology with private endpoints for all PaaS services, ensuring adherence to best practices.

Quick Start

Use the terraform-patterns skill to generate HCL for a hub-spoke network with private endpoints for a Key Vault.

Frequently Asked Questions about terraform-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a hub-spoke network topology in Terraform?

To build a hub-spoke network topology in Terraform, use pre-defined HCL patterns that configure virtual networks and peering connections. This approach ensures a secure, scalable Azure network foundation while adhering to infrastructure as code best practices.

How do I secure Azure PaaS services with private endpoints in Terraform?

Secure Azure PaaS services with private endpoints in Terraform by leveraging reusable HCL patterns. These patterns configure network interfaces that map directly to your PaaS resources, keeping traffic isolated within your virtual network and enforcing secure connectivity.

When should I use Azure Verified Modules (AVM) for Terraform deployments?

Use Azure Verified Modules (AVM) for Terraform deployments when you need standardized, Microsoft-supported module compositions. AVM ensures best practices for resource lifecycle management and provider versioning, reducing configuration errors and improving maintainability.

How do I apply diagnostic settings to Azure resources using Terraform?

Apply diagnostic settings to Azure resources using Terraform by implementing reusable HCL code blocks. These patterns configure logging and metrics collection for your resources, ensuring operational requirements are met consistently across your infrastructure.

Can I conditionally deploy Azure resources based on variables in Terraform?

Yes, you can conditionally deploy Azure resources in Terraform by using specific patterns for conditional deployment. This technique utilizes variables and count or for_each expressions to dynamically include or exclude resources during the infrastructure provisioning lifecycle.

Why does my Terraform deployment fail due to provider versioning issues?

Terraform deployments often fail due to provider versioning issues when module constraints conflict with your root configuration. Address this by following best practices for provider versioning to ensure compatible lifecycle management and consistent resource creation.