Hello! :man-cartwheeling: I have an infrastructure...
# getting-started
b
Hello! πŸ€Έβ€β™‚οΈ I have an infrastructure folder in my organization github repo (containing main.py, requirements and yaml files). I cloned the repo and now I'd like to run pulumi up, from the infrastructure folder, but I get:
Copy code
❯ pulumi up
Please choose a stack, or create a new one:  [Use arrows to move, enter to select, type to filter]
> <create a new stack>
Do you know how to do to perform pulumi up using the existing stack? Thanks!!
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