https://pulumi.com logo
#general
Title
# general
n

nutritious-battery-42762

08/26/2022, 1:32 PM
How do you go about referencing stacks when using the s3 backend?
b

billowy-army-68599

08/26/2022, 1:33 PM
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

nutritious-battery-42762

08/26/2022, 1:37 PM
I separated my stacks into different different sub directories so i guess that approach won't work
b

billowy-army-68599

08/26/2022, 1:42 PM
you can’t do stack references if you’re using different directories
s

steep-toddler-94095

08/26/2022, 4:11 PM
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

billowy-army-68599

08/26/2022, 4:31 PM
just preference, dash separating is fine 🙂
👍 1
90 Views