If Statements Inside Terraform Dynamic Blocks

Posted by Miguel Lopez on Tue 24 January 2023 in terraform

A guide to help you build if-statements inside Terraform dynamic blocks. By the end of this guide, you will understand how to create two default_action blocks for the aws_lb_listener resource (and only use one of them).


Continue reading

Terraform for_each Loops w/ If Statements

Posted by Miguel Lopez on Wed 01 December 2021 in terraform

A guide to help you build if statements inside Terraform for_each loops. This guide includes a few examples of how to use conditional logic inside Terraform for_each loops to control which resources are built.


Continue reading