Introduction
Sometimes you want to change a list or map into a new list or map with different values. For expressions in Terraform help you do this easily by looping over each item and making a new one.
When you have a list of server names and want to add a prefix to each name.
When you want to convert a list of numbers into strings for display.
When you need to create a map from a list by using each item as a key.
When you want to filter and change values in a list before using them.
When you want to build a new list of resources based on existing data.