https://pulumi.com logo
#general
Title
# general
n

nice-cat-91582

11/01/2019, 10:41 AM
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

alert-beard-9601

11/01/2019, 3:58 PM
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

white-balloon-205

11/01/2019, 4:18 PM
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

nice-cat-91582

11/01/2019, 6:34 PM
oh dang, transformations looks perfect
very cool