While it is common to create a resource based on a boolean variable conditionally, I'm looking for a way to conditionally generate the resource base on the string in the variable.
For example, I am creating the variable day = Sunday; now, if the variable is not Sunday, Terraform will create the resource; else - nothing will get created.
Is there a way in TF to achieve that?