User Tools

Site Tools


programming:terraform

terraform

variables

variable types

  • Input Variables: These are used to pass dynamic values to Terraform configurations.
  • Environment Variables: These are used to set values for Terraform commands or to provide sensitive data.
  • Output Variables: These are used to expose values from a Terraform configuration to be used by other configurations or by external systems.

Types of Variables

Terraform supports several types of variables:

  • String: A single string value.
  • Number: A numeric value.
  • Bool: A boolean value.
  • List: A list of values.
  • Map: A key-value pair.
  • Object: A collection of named attributes that each have their own type.
  • Tuple: A sequence of elements identified by their order and each have their own type.

Working with variables

programming/terraform.txt · Last modified: 2024/10/21 14:02 by kamaradski