built-in function

One of Terraform's fixed set of functions, such as lower(), join() or jsonencode(), that transform values inside expressions.

In more detail

You cannot write your own functions; you combine the built-in ones. They are deterministic and only transform values in memory, so they never change infrastructure. Read nested calls from the inside out, asking what type each one returns.

Examples

lower(trimspace(" Ada "))   # "ada"
length(var.names)

Related terms

Taught in

References

Certification courses