terraform-values

Structure Terraform variables, locals, and outputs for module interfaces.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/Luscii/terraform-fluentbit-luscii-presets --skill terraform-values
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-values
Source: https://github.com/Luscii/terraform-fluentbit-luscii-presets/tree/main/.github/skills/terraform-values
Command: npx skills add https://github.com/Luscii/terraform-fluentbit-luscii-presets --skill terraform-values

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terraform modules often struggle to define clear interfaces and predictable data flows between inputs, transformations, and outputs. This Skill provides a structured approach to declare and use variables, locals, and outputs consistently, reducing misconfigurations and duplication.

Core Features & Use Cases

  • Define input variables with types, defaults, and validation to enforce correct usage.
  • Create reusable locals for derived values and common transformations to avoid repetition.
  • Expose well-described outputs to consuming modules and tooling, including sensitive handling where appropriate.
  • Apply best practices for variable precedence, object types, and module interfaces in real-world Terraform projects.

Quick Start

Declare a variable, compute a local value, and expose an output to see the end-to-end data flow.

Frequently Asked Questions about terraform-values

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

FAQPage Schema
How do I organize Terraform variables, locals, and outputs to create clear module interfaces?

Organize Terraform values by defining input variables with strict types and validation, computing locals for derived transformations, and exposing well-described outputs to establish predictable data flow and clear module interfaces.

What is the best way to structure Terraform variables with defaults and validation in real projects?

Structure Terraform variables by declaring explicit types, setting sensible defaults, and applying validation blocks to enforce correct usage, which reduces misconfigurations and ensures predictable module inputs across real projects.

How do I use Terraform locals to avoid repeating derived values across modules?

Use Terraform locals to compute and centralize derived values and common transformations, avoiding repetition and ensuring consistent data flow when designing complex module interfaces and data processing pipelines.

When should I mark Terraform outputs as sensitive for consuming modules and tooling?

Mark Terraform outputs as sensitive when exposing secret data to consuming modules or external tooling, applying appropriate handling rules to prevent accidental leakage while maintaining necessary inter-module communication.

Does this approach to Terraform module interfaces work for complex object types and variable precedence?

Yes, this approach applies best practices for variable precedence and complex object types, suiting Terraform module authors and operators who design robust interfaces and data flows in real-world projects.

Why does my Terraform module struggle with predictable data flows between inputs and outputs?

Terraform modules struggle with predictable data flows when they lack a structured approach to declare and use variables, locals, and outputs consistently, leading to misconfigurations and duplicated transformation logic.