Is there a way to have global value with stacks? I...
# general
b
Is there a way to have global value with stacks? I don’t want to copy the same value in my multiple stack?
r
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
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
Yeah that what i was thinking about. Thx. 🙂
r
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
nice thx 🙂