Currently I have a `s3` bucket with multiple fold...
# getting-started
s
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
is everything in the same s3 backend?
s
Yes, but different folders. Example, • project1 I need to login as:
<s3://mybucket/project1>
• project2 I need to login as:
<s3://mybucket/project2>
b
no that's not possible, the login needs to be the same
s
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
you need to prefix your project and stack, like so: pulumi stack init project1.prod pulumi stack init project2.prod
s
Ok, thank you very much!