Is it possible to use the value_from field to assi...
# general
d
Is it possible to use the value_from field to assign tag values by manipulating regex? For example, taking the letters up to the first hyphen in prod3-ec2, and assigning it to a tag value of “env”? So the tag would value of “env” would be “prod3”
d
I don’t believe that is possible. There may have been some changes to enable it, but typically you can’t apply values from the resource in actions. That said, you could use a filter to find all EC2s that start with “prod3” and then update the env tag value to “prod3”. You would need additional policies for “prod1”, “prod2”, “dev1”, “dev2”, etc.
✅ 1
d
Got it! I was hoping to use cloudtrail mode to tag upon creation, while catching the env identifiers and using them as tags.