User Tools

Site Tools


programming:terraform

This is an old revision of the document!


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.1719828833.txt.gz · Last modified: 2024/07/01 10:13 by kamaradski