Terraform Functions Cheat Sheet

Make your code more dynamic with Terraform Functions.

In this cheat sheet, you will find the most used Terraform functions that help with:

- Converting Variables Types

- Calculating String, List, and Map Lengths

- Validating Variables

- Adding fallbacks for missing values

- Merging lists/maps

- Generating ranges of numbers

- Retrieving values if they exist

- Reading files

- Templating files

- And much more.

Achieve a Secure end-to-end GitOps Workflow

Achieving true GitOps, detecting and solving drifts, managing Terraform at Scale in a secure manner, are just a few things that Spacelift can do for you. Get started now or book a demo with one of our engineers to learn more.

"Spacelift has enabled Checkout to scale from a handful of deployments per day to averaging over 500 per day"

“With Spacelift, we can have an overarching collection of policies that govern when and how everything runs. This stuff is radically further ahead than the way 99% of companies use Terraform.”

“Spacelift has helped us set up a flexible and productive Infrastructure as Code environment. It makes the basics like setting up and interesting on plans simpler and quicker, which has allowed us to focus on larger engineering concerns.”