This message was deleted.
# getting-started
s
This message was deleted.
q
Are you using the pulumi backend or some other option? And was this project executed under a stack before?
b
I am using an s3 backend
q
Then you will first have to login to that backend created in S3
pulumi login ${URL to S3}
And if the backend already have a stack then run
pulumi stack select <stack_name>
b
Ok I did it and I get:
Copy code
❯ pulumi login <s3://xxx-xxx-xxx>
Logged in to MacBook-Air.local as line (<s3://xxx-xxx-xxx>)
❯ pulumi up
error: could not query backend for stacks: error listing stacks: could not list bucket: blob (code=Unknown): MissingRegion: could not find region configuration
😕
q
Were the AWS credentials exported? The AWS_REGION is missing
b
Yes I exported the AWS credentials, but I should export the region also ?
q
The error suggests it
b
Ok 😕 I'll try it
I get:
Copy code
❯ export AWS_REGION=eu-central-1
❯ pulumi up
error: could not query backend for stacks: error listing stacks: could not list bucket: blob (code=Unknown): NoCredentialProviders: no valid providers in chain. Deprecated.
	For verbose messaging see aws.Config.CredentialsChainVerboseErrors
whereas I set my credentials 🥸
q
Does your credentials have the necessary permission to read/list the bucket in S3?
b
I think now it is okay I did the exports again and it finds the stack. Thanks a lot 🙂
👍 1