module-creation

Create Azure CAF Terraform modules with schema validation and dependency mapping.

7|5|Updated Jan 22, 2025
One-click install
npx skills add https://github.com/aztfmodnew/terraform-azurerm-caf --skill module-creation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: module-creation
Source: https://github.com/aztfmodnew/terraform-azurerm-caf/tree/main/.github/skills/module-creation
Command: npx skills add https://github.com/aztfmodnew/terraform-azurerm-caf --skill module-creation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the complex and error-prone process of creating new Terraform modules for Azure Cloud Adoption Framework (CAF) resources, ensuring consistency and adherence to best practices.

Core Features & Use Cases

  • End-to-End Workflow: Guides users through every step, from initial resource validation to final testing and integration.
  • Dependency Management: Automates the identification and documentation of resource dependencies.
  • Best Practice Enforcement: Enforces naming conventions, variable usage, and local resolution patterns.
  • Use Case: A new Azure service is released, and you need to create a robust, reusable Terraform module for it within the CAF structure. This Skill provides a step-by-step, validated process to ensure the module is correct and maintainable.

Quick Start

Use the module-creation skill to start building a new Terraform module for the 'azurerm_container_app' resource type.

Frequently Asked Questions about module-creation

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

FAQPage Schema
How do I create a Terraform module for Azure CAF resources?

Creating Terraform modules for Azure CAF involves a structured workflow: validating resource schemas with MCP tools, generating directory structures, creating required Terraform files, mapping dependencies, and running mock tests to ensure standards compliance.

What files are needed when building an Azure CAF Terraform module?

An Azure CAF Terraform module requires providers.tf, variables.tf, locals.tf, a main resource file, and outputs.tf. These files establish the directory structure, define variables, manage local resolution, and output necessary resource attributes.

How does dependency mapping work for new Azure Terraform modules?

Dependency mapping in Azure Terraform modules automates identifying and documenting resource dependencies. This ensures correct relationships between Azure resources are defined and maintained within the CAF module structure.

What is the best way to validate an Azure resource schema before writing Terraform code?

Validating an Azure resource schema before writing Terraform code is best done using MCP tools. This ensures resource definitions are accurate and conform to Azure CAF standards before generating directory structures and Terraform files.

How do I test a newly created Azure CAF Terraform module?

Testing a newly created Azure CAF Terraform module involves generating example configurations and performing mock testing. After successful tests, integrate the module into the root module to complete the validation workflow.