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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access