Question 350
A cost-report module must convert a list of project objects into a map keyed by project code. Which action most directly satisfies the requirement in this situation?
Explanation
Correct Answer
Terraform for expressions transform collection values into new collections. The evaluated local expression exposes code-to-project entries.
Incorrect Answers
Cross-resource references remain dynamic as managed resource values evolve. Terraform for expressions transform collection values into new collections.
Object values support a fixed, heterogeneously typed record shape. The evaluated local expression exposes code-to-project entries.
Terraform supports explicit variable files for environment parameterization. Use a for expression to transform the input collection into the required keyed map.