https://pulumi.com logo
#general
Title
# general
g

gray-carpet-67751

05/22/2020, 8:12 AM
Hey guys 👋 I am getting issues trying to select my stack
Copy code
2020-05-22T08:04:50.9212982Z error: no stack named 'dfds-frontend/production' found
2020-05-22T08:04:50.9944971Z error: --yes must be passed in to proceed when running in non-interactive mode
2020-05-22T08:04:51.0637194Z error: --yes must be passed in to proceed when running in non-interactive mode
2020-05-22T08:04:51.5013922Z error: no stack selected; please use `pulumi stack select` to choose one
This stack actually exists and it worked like a week ago but for some reaso it's been failing for a few days. Any pointers you could give me?
g

green-salesclerk-34937

05/22/2020, 8:14 AM
probably you have to type only stack name like 
pulumi stack select production
g

gray-carpet-67751

05/22/2020, 8:15 AM
Copy code
/home/ubuntu/.pulumi/bin/pulumi stack select dfds-frontend/$RELEASE_ENVIRONMENTNAME
/home/ubuntu/.pulumi/bin/pulumi refresh
/home/ubuntu/.pulumi/bin/pulumi up
/home/ubuntu/.pulumi/bin/pulumi stack output --json > pulumi.json
I do do that ad seems to be propagating correctly as in the error is trying to access
Copy code
dfds-frontend/production
g

green-salesclerk-34937

05/22/2020, 8:21 AM
what’s the output of
pulumi stack ls
?
g

gray-carpet-67751

05/22/2020, 8:21 AM
is it because of
Copy code
<https://app.pulumi.com/dfds-frontend/dotcom-gatsby/production>
should i do?
Copy code
/home/ubuntu/.pulumi/bin/pulumi stack select dfds-frontend/dotcom-gatsby/$RELEASE_ENVIRONMENTNAME
sec ill check
output is just
Copy code
2020-05-22T08:25:30.1958466Z NAME  LAST UPDATE  RESOURCE COUNT  URL
🤷‍♂️
g

green-salesclerk-34937

05/22/2020, 8:29 AM
created stack yaml file manually, not by pulumi cli?
may need to init stack with
pulumi stack init stack_name
g

gray-carpet-67751

05/22/2020, 8:31 AM
okay interesting everything used to work last week, but our acc got cancelled and I just have added payment for that
maybe that was the issue?
locally I do get the proper stack ls
Copy code
NAME                       LAST UPDATE  RESOURCE COUNT  URL
dfds-frontend/dev          1 month ago  28              <https://app.pulumi.com/dfds-frontend/dotcom-gatsby/dev>
dfds-frontend/production*  1 month ago  28              <https://app.pulumi.com/dfds-frontend/dotcom-gatsby/production>
dfds-frontend/staging      1 month ago  28              <https://app.pulumi.com/dfds-frontend/dotcom-gatsby/staging>
if anybody finds this and have the same issue, please check the logged in user of your CI/CD. Issue with us was that we had removed the account that has created the API key. I just logged out and logged in with the correct user and passed the new api key