I’m trying to output values based on variables.
in my use case i was trying to output values if a input has certain values , here is example :
if test.string_value=="TNTN": TerraformOutput(self, "alb_dns", value=web_server_alb.dns_name ) TerraformOutput(self, "instance_id", value=instance_type ).
I am expecting that if test variable is equal to “TNTN” alb_dns and instance_type are outputted .Instead of that , always condition return false then the block is skipped .
Note that the test variable is passed through env variables (TF_VAR_test=TNTN).