Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: [select prompt] No selectable choices. All choices are disabled. #2982

Closed
1 task
nosayana opened this issue Jul 5, 2023 · 7 comments · Fixed by #3308
Closed
1 task

Error: [select prompt] No selectable choices. All choices are disabled. #2982

nosayana opened this issue Jul 5, 2023 · 7 comments · Fixed by #3308
Assignees
Labels
bug Something isn't working cdktf-cli priority/important-soon High priority, to be worked on as part of our current release or the following one. size/small estimated < 1 day
Milestone

Comments

@nosayana
Copy link

nosayana commented Jul 5, 2023

Expected Behavior

While running cdktf init --template="typescript" a terraform cloud project directory should have been initialized.

Actual Behavior

Error: [select prompt] No selectable choices. All choices are disabled.
at C:\Users\redacted\AppData\Roaming\npm\node_modules\cdktf-cli\bundle\bin\cmds\handlers.js:460:259
at Ki (C:\Users\redacted\AppData\Roaming\npm\node_modules\cdktf-cli\bundle\bin\cmds\handlers.js:454:522)
at C:\Users\redacted\AppData\Roaming\npm\node_modules\cdktf-cli\bundle\bin\cmds\handlers.js:460:216
at C (C:\Users\redacted\AppData\Roaming\npm\node_modules\cdktf-cli\bundle\bin\cmds\handlers.js:454:1793)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Steps to Reproduce

  1. npm install -g typescript
  2. npm install -g cdktf-cli
  3. cdktf init --template="typescript"

Versions

language: null
cdktf-cli: 0.17.0
node: v18.16.1
terraform: 1.5.1
arch: x64
os: win32 10.0.22621

Providers

No response

Gist

No response

Possible Solutions

No

Workarounds

No

Anything Else?

No

References

None

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@nosayana nosayana added bug Something isn't working new Un-triaged issue labels Jul 5, 2023
@DanielMSchmidt
Copy link
Contributor

@mutahhir Is this fixed by the changes you did for the Terraform Cloud yes/no question?

@DanielMSchmidt DanielMSchmidt added cdktf-cli priority/important-soon High priority, to be worked on as part of our current release or the following one. size/small estimated < 1 day and removed new Un-triaged issue labels Jul 7, 2023
@aroundaesthetics
Copy link

Same deal here:

$ cdktf --version
0.18.0
$ cdktf init
? What template do you want to use? typescript

Initializing a project using the typescript template.
? Project Name cloudflare
? Project Description Deploy websites to CloudFlare via terraform CDK
? Would you like to use Terraform Cloud? yes

Detected Terraform Cloud token.

We will now set up Terraform Cloud for your project.


[select prompt] No selectable choices. All choices are disabled.

@howdoicomputer
Copy link
Contributor

I got this exact error running through the AWS tutorial. I ended up configuring it manually.

@DanielMSchmidt
Copy link
Contributor

Do you have organisations in Terraform Cloud that you are part of?

@howdoicomputer
Copy link
Contributor

howdoicomputer commented Oct 14, 2023

@DanielMSchmidt I actually did not. I had created a Terraform Cloud account (to try it out) but had not created an organization. Maybe the CLI can return a message when there are no valid organizations associated with the account? Would a PR be acceptable?

@DanielMSchmidt
Copy link
Contributor

Yeah that would be great. A pr would be appreciated, thanks for your help!

Copy link
Contributor

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working cdktf-cli priority/important-soon High priority, to be worked on as part of our current release or the following one. size/small estimated < 1 day
Projects
None yet
5 participants