How do you go about referencing stacks when using ...
# general
n
How do you go about referencing stacks when using the s3 backend?
b
you’ll need to dot separate the stacks when you create them
pulumi stack init <http://vpc.dev|vpc.dev>
And then just reference it normally
stack = new pulumi.StackReference('<http://vpc.dev|vpc.dev>')
n
I separated my stacks into different different sub directories so i guess that approach won't work
b
you can’t do stack references if you’re using different directories
s
What benefits does dot-separating the stacks give? or can you link to documentation on it? I’ve been dash separating because i thought the s3 backend didn’t recognize any partitioning characters
b
just preference, dash separating is fine 🙂
👍 1
129 Views