DEV Community

Cover image for Terraform for Loop

Terraform for Loop

easyawslearn profile image Vijay Patel Updated on ・1 min read

Terraform 0.12 introduces a new construct called a for expression, which allows the construction of a list or map by transforming and filtering elements in another list or map. The example below shows this in use:

Terraform Doc:


Editor guide