This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programming:terraform [2024/07/01 09:49] – kamaradski | programming:terraform [2024/10/21 14:02] (current) – kamaradski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== terraform ====== | ====== terraform ====== | ||
| - | ===== variable types ===== | ||
| - | [[terraform: | + | ===== variables ===== |
| - | These are used to pass dynamic values to Terraform configurations. | + | ==== variable types ==== |
| + | * [[terraform: | ||
| + | * [[terraform: | ||
| + | * [[terraform: | ||
| - | [[terraform: | ||
| - | These are used to set values for Terraform commands or to provide sensitive data. | + | ==== Types of Variables ==== |
| + | Terraform supports several types of variables: | ||
| - | [[terraform: | + | * String: A single string value. |
| + | * Number: A numeric value. | ||
| + | * Bool: A boolean value. | ||
| + | * [[terraform: | ||
| + | * Map: A key-value pair. | ||
| + | * Object: A collection of named attributes that each have their own type. | ||
| + | * [[terraform: | ||
| - | These are used to expose values from a Terraform configuration to be used by other configurations or by external systems. | ||
| + | ==== Working with variables ==== | ||
| + | |||
| + | * [[terraform: | ||
| + | * [[terraform: | ||
| + | * [[terraform: | ||
| + | * [[terraform: | ||
| + | * [[terraform: | ||
| + | * [[terraform: | ||
| + | * [[terraform: | ||