terraform-modules

Create and compose reusable Terraform modules for infrastructure as code.

1|Updated Jun 18, 2025
One-click install
npx skills add https://github.com/knopki/dotfiles --skill terraform-modules-knopki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-modules
Source: https://github.com/knopki/dotfiles/tree/main/home/private_dot_config/opencode/skills/terraform-modules
Command: npx skills add https://github.com/knopki/dotfiles --skill terraform-modules-knopki

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps manage and promote the reuse of Terraform infrastructure code by organizing it into modular, versionable, and shareable units.

Core Features & Use Cases

  • Module Creation: Define reusable infrastructure components (e.g., VPC, compute instances) with clear inputs and outputs.
  • Module Usage: Integrate modules from local paths, Git repositories, or the Terraform Registry into your infrastructure configurations.
  • Module Composition: Build complex infrastructure by composing smaller, independent modules.
  • Use Case: A team can develop a standard VPC module and reuse it across multiple projects, ensuring consistency and reducing duplicated effort.

Quick Start

Use the terraform-modules skill to create a reusable VPC module with the provided structure and code examples.

Frequently Asked Questions about terraform-modules

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

FAQPage Schema
How do I create reusable Terraform modules for infrastructure as code?

Terraform modules are reusable infrastructure components defined with clear inputs and outputs. You create them by organizing configurations into modular, versionable units, enabling consistent composition across multiple projects.

What are the best practices for Terraform module versioning and naming?

Terraform module best practices include applying consistent naming conventions and strict versioning. This ensures modules remain maintainable and shareable, preventing infrastructure drift when integrating modules from local paths, Git, or the Terraform Registry.

Can I use Terraform modules from Git repositories and the Terraform Registry?

Yes, you can integrate Terraform modules from local paths, Git repositories, and the Terraform Registry. This flexibility allows teams to source and compose external infrastructure code directly into their configurations.

How does module composition work for complex cloud infrastructure?

Module composition builds complex cloud infrastructure by combining smaller, independent Terraform modules. This approach allows teams to develop standard components like a VPC and reuse them across projects, reducing duplicated effort.

When should I organize infrastructure code into Terraform modules?

You should organize infrastructure code into Terraform modules when you need to promote reuse across multiple projects. Modules address the need for organized, maintainable, and shareable infrastructure definitions in cloud environments.