We have different environments within our AWS infrastructure which are stored in a CloudFormation export. I am automating a daily shutdown down of Dev environments and the script checks to see if a certain tag exists on any EC2 in the environment. I would like to write my TF in such a manner that if the “environment” is “dev” we create a tag with a value “whatever” otherwise the value is blank. This is what I have s..

Read more