terraform-module

Extract module definitions, inputs, and outputs from cached Terraform modules.

5|Updated Apr 29, 2023
One-click install
npx skills add https://github.com/n4vysh/dotfiles --skill terraform-module-n4vysh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-module
Source: https://github.com/n4vysh/dotfiles/tree/main/home/dot_config/opencode/skills/terraform-module
Command: npx skills add https://github.com/n4vysh/dotfiles --skill terraform-module-n4vysh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inspect Terraform module specs from cache when seeing module sources.

Core Features & Use Cases

  • Locate and identify module definitions inside .terraform/modules
  • Read key module files such as README.md, variables.tf, versions.tf, and outputs.tf to extract metadata
  • Use for auditing module versions, provider constraints, and outputs in local or CI environments

Quick Start

Run the workflow from the repository root to locate and inspect cached Terraform modules.

Frequently Asked Questions about terraform-module

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

FAQPage Schema
How do I inspect Terraform module specs from a local cache?

You can inspect Terraform module specs from cache by running the workflow from your repository root to locate definitions inside the .terraform/modules directory. It extracts metadata by reading README.md, variables.tf, versions.tf, and outputs.tf for quick auditing.

What files are parsed to extract variables and outputs from cached Terraform modules?

Extracting variables and outputs from cached Terraform modules reads README.md, variables.tf, versions.tf, and outputs.tf files. This identifies module definitions, inputs, outputs, and provider constraints for infrastructure-as-code auditing.

Can I audit Terraform module versions in a CI pipeline using a local cache?

Yes, you can audit Terraform module versions in CI pipelines using local module caches. The workflow locates vendorized modules inside .terraform/modules and reads versions.tf to check provider constraints and compatibility.

Does inspecting cached Terraform modules work with monorepos?

Inspecting cached Terraform modules works with monorepos by locating module definitions inside the local .terraform/modules cache. It quickly audits versions, provider constraints, and outputs across vendorized infrastructure-as-code projects.

Do I need Git and Terraform installed to read module specs from cache?

Yes, you need Terraform and Git installed to read module specs from cache. The workflow requires access to the local .terraform/modules directory to locate definitions and parse variables, outputs, and versions.