This message was deleted.
s
This message was deleted.
b
@billowy-army-68599 you definitely have advice here as I know you’ve done a lot of this
l
I used to do this. You can change the path of the S3 backend, within the bucket. Keep multiple projects in one bucket that way.
So don't specify only the bucket in your Pulumi.yaml, add a path within the bucket too, and have a different path for every project..
For naming, the standard recommendation is to copy the name of the project into the stack name when using any backend apart from app.pulumi.com (since that's the only one that supports orgs).
So call you stack things like firewall-dev, mainwebapp-preprod, etc.
b
Thanks for the tips, @little-cartoon-10569. Couple of questions: 1. Even if I used different paths within a bucket, I'd still need to log-in to them separately for working with different projects, right? 2. When using this scheme, were you able to work with stack references?
l
1. Nope, the log-in thing is simpler than it looks for non-app.pulumi.com backends. "Log in" to any of them, and they all work. You're essentially logging in to "not the SaaS". 2. Yes, but there's only one "/". I was looking for the docs the explain it, but I couldn't find them. I know it's been described a few times here on Slack, you could search. Onesec I'll look back through my git commits, it's only a couple of months since I switched...
🙏 1
Ok found it. The Pulumi.yaml has this sort of backend:
Copy code
backend:
  url: <s3://yourbucket/pulumi/yourproject>
And the stack reference has no `/`s in it, it's just the stack name. Hence the suggestion that you put the project into the stack name, so you don't end up with two "dev" stacks, or similar.
b
Great - let me try this. Thanks for your help, @little-cartoon-10569!
b
@big-state-95297 sorry for the delay, I actually just put together a short 5 min video for this because it comes up a lot

https://youtu.be/yZPPgqTUtiM

👍 1
🙌 1
b
thanks, @billowy-army-68599. you're awesome!
b
happy to help! still working on my video game so quality will improve!