8
Terraform Functions
In Chapter 6, Terraform Backends and Resource Management, you read about Terraform expressions and their different variations and took a look at some use cases. The Terraform language also supports the use of Terraform functions as part of these expressions.
The main use of Terraform’s built-in functions is in expressions and to transform input values and create new values. For example, the toset() function can be used to convert an input value to a set (the input value type can be a list or map), and this can be used in places where the set type is expected.
In this chapter, you will learn about the different built-in functions and their syntax with examples. Not all functions are regularly used, but knowledge of different ...
Get HashiCorp Terraform Associate (003) Exam Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.