Terraform Logical AND Operator, Logical OR Operator
Logical AND Operator Sometimes you might need a logical ‘AND’ operator in Terraform. I recently had a module where I had a variable for create_dns, which was either true or false, and I had another variable for create_tableau, which was also either true or false. I only want to create some resources if BOTH of those variables are true, which is a logical ‘AND’ operator. count = "${max(var.create_dns + var.create_tableau - 1, 0)}" ...