https://pulumi.com logo
#getting-started
Title
# getting-started
b

brave-processor-54742

05/10/2022, 7:12 AM
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

quaint-eye-38036

05/10/2022, 7:22 AM
Are you using the pulumi backend or some other option? And was this project executed under a stack before?
b

brave-processor-54742

05/10/2022, 7:23 AM
I am using an s3 backend
q

quaint-eye-38036

05/10/2022, 7:24 AM
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

brave-processor-54742

05/10/2022, 7:26 AM
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

quaint-eye-38036

05/10/2022, 7:27 AM
Were the AWS credentials exported? The AWS_REGION is missing
b

brave-processor-54742

05/10/2022, 7:28 AM
Yes I exported the AWS credentials, but I should export the region also ?
q

quaint-eye-38036

05/10/2022, 7:28 AM
The error suggests it
b

brave-processor-54742

05/10/2022, 7:28 AM
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

quaint-eye-38036

05/10/2022, 7:48 AM
Does your credentials have the necessary permission to read/list the bucket in S3?
b

brave-processor-54742

05/10/2022, 9:25 AM
I think now it is okay I did the exports again and it finds the stack. Thanks a lot πŸ™‚
πŸ‘ 1
11 Views