https://pulumi.com logo
#getting-started
Title
# getting-started
s

swift-pharmacist-99893

12/21/2021, 10:27 AM
Currently I have a
s3
bucket with multiple folders where I hold my stacks/states. Is it possible to use
StackReference
to have interdependency between them? How should I login with pulumi in this case?
b

billowy-army-68599

12/21/2021, 10:33 AM
is everything in the same s3 backend?
s

swift-pharmacist-99893

12/21/2021, 11:49 AM
Yes, but different folders. Example, • project1 I need to login as:
<s3://mybucket/project1>
• project2 I need to login as:
<s3://mybucket/project2>
b

billowy-army-68599

12/21/2021, 9:34 PM
no that's not possible, the login needs to be the same
s

swift-pharmacist-99893

12/29/2021, 2:08 PM
Thanks for the previous comment, I tried to do myself as follow:
Copy code
pulumi login <s3://mybucket>
pulumi new aws-python -n project1 # creating stack prod
pulumi new aws-python -n project2 # creating stack prod
But this gives me an error. How should I proceed with local backends and multiple projects and stacks and have the stack reference work?
b

billowy-army-68599

12/29/2021, 8:36 PM
you need to prefix your project and stack, like so: pulumi stack init project1.prod pulumi stack init project2.prod
s

swift-pharmacist-99893

12/30/2021, 2:17 PM
Ok, thank you very much!
3 Views