Is it possible to get the pulumi stack tags and ot...
# typescript
b
Is it possible to get the pulumi stack tags and other "pulumi up" metadata in index.ts? I would like to add some of this info as tags on the provisioned cloud resources.
l
You can get at some of it via automation-api, and.some you'd probably need to exec the CLI for the rest. Given the extra complexities around what happens for a new stack, I recommend not doing this. It would be better to set the values you want as normal Stack config values. You'd go better getting stack config out of the yaml file for use with
pulumi stack tag set
than the other way around.
b
Ok thanks. I figured if the data was available, I'd test to see how it interacts with new stacks and figure out when in the process the data is populated. It doesn't seem like the data is meant to be consumed though, which is too bad, so I'll take your recommendation and not dig further on this for now 🙂