06/16/2021, 12:07 PM
Hi Pulumi guys Does anyone know if it's posible to use the custom "stack tags" directly in my index.ts file? I'm doing an Azure Stack writtin in Typescript and I would like to have three stacks in my project (dev, test, prod) but I need to somehow have the code made generic so I don't hard code my environment name in to the code but it's inserted based on which stack I deploy. I have difficultties finding an good exmaple of doing this, but I found the Stack Tag and made an custom tag called "Pulumi:environment" but I can't find examples of how to use these tags in the code? Any one with good examples?