intermediate~3.5h
Terraform Variables and Outputs
Input variables with validation, outputs for exposing values, locals for keeping configuration DRY, and a worked example parameterizing a reusable piece of infrastructure.
Learning objectives
- Intermediate: Define input variables with type constraints, defaults, and validation rules.
- Intermediate: Expose computed or resource-derived values with outputs, and reference another configuration's outputs.
- Intermediate: Use locals to avoid repeating derived expressions, and parameterize a configuration so it's reusable across environments.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.
Terraform Variables and Outputs