Is there any good way to apply a tag to all resour...
# general
n
Is there any good way to apply a tag to all resources created by a project? I'd like to tag all of my AWS stuff with the name of the Pulumi stack that creates it
👍 1
a
Besides creating abstractions for everything or adding tags to all resources which support them (which is not all of them) there probably isn't a simpler way to do it.
That said though, you can use a variable with the stack name and simply apply that tag to every resource you can and if you ever need to change that it'll be easy to do
w
The new
transformations
feature can help here: https://www.pulumi.com/docs/intro/concepts/programming-model/#transformations I’m particular, you may want to use
pulumi.runtime.registerStackTransformation
.
👍 1
n
oh dang, transformations looks perfect
very cool