Terraform conditional creation of a resource based on a variable

You can use count block with Conditional Expressions (condition ? true_val : false_val) to create a resource based on variable value.

Leave a Reply

Close Menu