TA-002-P · Question #63
A Terraform local value can reference other Terraform local values.
The correct answer is A. True. Terraform local values can reference other local values, allowing for complex calculations and data transformations within the configuration.
Question
A Terraform local value can reference other Terraform local values.
Options
- ATrue
- BFalse
How the community answered
(19 responses)- A89% (17)
- B11% (2)
Why each option
Terraform local values can reference other local values, allowing for complex calculations and data transformations within the configuration.
Local values, defined using the 'locals' block, support referencing other local values within the same block or different blocks. Terraform automatically resolves the dependencies between these local values, ensuring that they are evaluated in the correct order.
Concept tested: Terraform local value referencing
Source: https://developer.hashicorp.com/terraform/language/values/locals
Topics
Community Discussion
No community discussion yet for this question.