https://pulumi.com logo
b

big-potato-91793

02/10/2020, 9:56 PM
Is there a way to have global value with stacks? I don’t want to copy the same value in my multiple stack?
r

rhythmic-finland-36256

02/10/2020, 9:59 PM
Are you talking about a configuration value or just something you want to have present no matter which config is used? If it’s not a secret, why not putting it into the program that is used in several stacks?
Another way (if used over several projects) could be to extract that information into a (private) node module.
h

handsome-actor-1155

02/10/2020, 10:00 PM
That was my thought @rhythmic-finland-36256. If it’s not something that changes, just have a constants file that you can reference in your project (and across all stacks)
b

big-potato-91793

02/10/2020, 10:01 PM
Yeah that what i was thinking about. Thx. 🙂
r

rhythmic-finland-36256

02/10/2020, 10:02 PM
If it’s about some secrets that should be used in several stacks, there is always the option of creating a simple stack that just exports those values and using a static
StackReference
to import data from there (even if this is not really the main use case for stack references)
b

big-potato-91793

02/10/2020, 10:33 PM
nice thx 🙂