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

Can't find workspace that does exist #12

Open
Rosalind-Fletcher opened this issue Dec 20, 2021 · 1 comment
Open

Can't find workspace that does exist #12

Rosalind-Fletcher opened this issue Dec 20, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Rosalind-Fletcher
Copy link

Rosalind-Fletcher commented Dec 20, 2021

When running:

 tecli workspace find-by-name --name=${TFC_WORKSPACE_NAME} > workspace.json 2>error.txt || true

We sometimes encounter 'not found|no workspace was found' when the workspace does exist.

We think this happens because we have over 40 workspaces and when you run the terraform.io api call it paginates the results with 20 workspaces per list. This means that if you haven't deployed to the workspace for a while it will move down the list and not be found. We workaround this by changing the terraform version in the UI then change it back to the original version so that its at the top of the recently updated terraform list.

It would be good if the find-by-name returns all the results instead of just the first 20 paginated results.

@valter-silva-au
Copy link
Contributor

Hi @Rosalind-Fletcher, apologies for the very late reply. Thank you for request, something definitely worth to include as a feature.

@valter-silva-au valter-silva-au added the enhancement New feature or request label Mar 3, 2023
@valter-silva-au valter-silva-au self-assigned this Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants