This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programming:terraform [2024/07/01 10:06] – kamaradski | programming:terraform [2024/10/21 14:02] (current) – kamaradski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== terraform ====== | ====== terraform ====== | ||
| - | ===== variable properties | + | |
| + | ===== variables | ||
| ==== variable types ==== | ==== variable types ==== | ||
| Line 17: | Line 18: | ||
| * Number: A numeric value. | * Number: A numeric value. | ||
| * Bool: A boolean value. | * Bool: A boolean value. | ||
| - | * List: A list of values. | + | * [[terraform: |
| * Map: A key-value pair. | * Map: A key-value pair. | ||
| * Object: A collection of named attributes that each have their own type. | * 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. | + | * [[terraform: |
| - | ===== Working with variables | + | ==== Working with variables ==== |
| - | * Variable Type Constraints: | + | * [[terraform: |
| - | * Using Variables in Configuration: | + | * [[terraform: |
| - | * Providing Values for Variables: Values for variables can be provided in several ways | + | * [[terraform: |
| - | * Variable Validation: You can add validation rules to ensure that input values meet certain criteria. | + | * [[terraform: |
| - | * Sensitive Variables: Sensitive variables are used to store sensitive information like passwords. | + | * [[terraform: |
| - | * Default Values: Variables can have default values, which are used if no other value is provided. | + | * [[terraform: |
| - | * Conditional Expressions with Variables: Terraform supports conditional expressions that can be used to assign variable values based on conditions. | + | * [[terraform: |