This message was deleted.
# general
s
This message was deleted.
c
Hi JohnB,   I tested this locally and verified that the stack component transformation works. Here is my code: https://gist.github.com/tusharshahrs/1072f4cc5b5db33a47587edfa0203d98 Here is where the tags are set: https://gist.github.com/tusharshahrs/1072f4cc5b5db33a47587edfa0203d98#file-index-ts-L6-L11 The
pulumi preview —diff
will show that the correct tags are applied automatically. If you want to share your code we can take a look at it.
k
Thanks @cool-fireman-90027, I can't see where you're creating a custom component though?
I'll get a complete repro up shortly, thanks 🙂
Doing a minimal repro works fine, not sure why PEBKAC somewhere 🙄 /close 🙂
g
The
awsx.ec2.Vpc
resource is a custom component in Tushar's example, FWIW. If you do find a scenario where it doesn't work, please open an issue at github.com/pulumi/pulumi. One nuance to stack transformations is the call to
pulumi.runtime.registerStackTransformation()
must occur before any resources get defined, otherwise they will be "missed" by the transformation.