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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when trying to deploy to non-existing TFC workspace #2120

Closed
ansgarm opened this issue Sep 16, 2022 · 4 comments
Closed
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 terraform cloud ux/cli

Comments

@ansgarm
Copy link
Member

ansgarm commented Sep 16, 2022

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

cdktf & Language Versions

  • 0.12.2
  • any language

Affected Resource(s)

  • CloudBackend
  • RemoteBackend

Debug Output

image

Expected Behavior

Should print a good error message or even ask whether the cdktf-cli should create that workspace and try again.

Actual Behavior

Error does not help at all

Steps to Reproduce

Try to deploy to a non-existing workspace in Terraform Cloud using the CloudBackend or RemoteBackend construct.

Important Factoids

References

  • #0000
@ansgarm ansgarm added bug Something isn't working terraform cloud cdktf-cli needs-priority Issue has not yet been prioritized; this will prompt team review ux/cli labels Sep 16, 2022
@DanielMSchmidt DanielMSchmidt added 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 needs-priority Issue has not yet been prioritized; this will prompt team review labels Sep 22, 2022
@mutahhir
Copy link
Contributor

@ansgarm What was the code that caused this error?

@ansgarm
Copy link
Member Author

ansgarm commented Sep 26, 2022

I haven't checked but I suspect an API call to Terraform Cloud to check whether the workspace is using remote execution or not.

To reproduce this issue, try to deploy to a non-existing workspace in Terraform Cloud using the CloudBackend or RemoteBackend construct.

@xiehan
Copy link
Member

xiehan commented Jan 10, 2023

This has been made irrelevant by #1955 and #670 which we get for free as part of that work.

@xiehan xiehan closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2023
@github-actions
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 Feb 10, 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 terraform cloud ux/cli
Projects
None yet
Development

No branches or pull requests

4 participants