This message was deleted.
# general
s
This message was deleted.
s
There's a
backend.url
value you can add to your project configuration that might help. More details here: https://www.pulumi.com/docs/concepts/state/
🙏 2
l
Is the backend what's presenting the problem here, or are you trying to get the aws.Provider instance in each project to be completely unrelated? If it's the latter, then I recommend disabling default providers and creating the provider explicitly in each project. It means you'll need to pass it into every resource constructor, but it allows you to guarantee that the projects never intrude into each other's accounts.
a
@little-cartoon-10569 I'm not 100% sure that I understand your question, but I get it right, that I'm referring to the Pulumi account, not the (AWS) provider. The provider is solvable, as I can write in the project file (the
Pulumi.yaml
file) the name of the AWS provider e.g.:
Copy code
config:
  aws:profile: specific_profile_name
@salmon-account-74572 thanks! exactly what I was looking for! 😊 I ended up using this for local dev stages:
Copy code
backend:
  url: file://.
and I believe that
url: s3://...
will fit when we advance
1
s
Perfect, glad I was able to help!
🙏 1
l
If configuring the aws:profile setting is fixing the problem, then the backend fix is solving the problem as a side effect. It's a good fix to prevent repeated calls to
pulumi login
. Which AWS account (and indeed, region) you are using is defined by instances of aws.Provider: account is Provider. You should probably read up on that class and what it can do. It will help you avoid similar problems in the future. https://www.pulumi.com/registry/packages/aws/api-docs/provider/