You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that #854 is not fixed with the latest provider version. I cannot create new workspaces, but I can import/modify existing workspaces, even though all workspaces operate in the same GitHub repository.
Terraform Cloud/Enterprise version
Terraform Cloud
Terraform version
v1.5.7
Terraform Configuration Files
As background:
I created a new Terraform Cloud organization.
I setup the GitHub app installation.
I created an organization token.
I created a variable set called "Terraform Cloud" which contains the environment variable TFE_TOKEN which contains the organization token.
I created the appropriate Terraform Cloud projects.
I created the following workspace "my-org-terraform-cloud" in the web console using a GitHub repository as a source.
I created other workspaces in the web console, and these work just fine after importing them using import {} blocks. I can modify them using the tfe provider without any issues.
I imported the Terraform Cloud projects.
I used the Terraform Cloud REST API to get the GitHub app installation id from the projects in this organization which work.
I modified my workspaces variable such that new workspaces would be set up.
Creation of new workspaces using tfe_workspace fails.
I expect that the tfe provider will be able to create new Terraform Cloud workspaces using the tfe_workspace resource.
Actual Behavior
It fails with the following message:
Error creating workspace new-workspace-name for organization my-org: invalid attribute Repository doesn't exist or isn't accessible
Once again:
The GitHub app installation ID is the same as is used by the existing workspaces.
The GitHub repository being used for all Terraform Cloud workspaces is exactly the same for all workspaces.
Modifying Terraform Cloud workspaces which already exists works fine ✔️ but creation of new workspaces fails ❌
Additional Context
Other than mentioned above, there is nothing special about my setup. The code that I have above functions when working on Terraform Cloud GitHub workspaces in my personal GitHub namespace (naftulikay) but does not work for workspaces within the org that I am working in.
The text was updated successfully, but these errors were encountered:
It appears that #854 is not fixed with the latest provider version. I cannot create new workspaces, but I can import/modify existing workspaces, even though all workspaces operate in the same GitHub repository.
Terraform Cloud/Enterprise version
Terraform Cloud
Terraform version
Terraform Configuration Files
As background:
TFE_TOKEN
which contains the organization token.import {}
blocks. I can modify them using thetfe
provider without any issues.workspaces
variable such that new workspaces would be set up.tfe_workspace
fails.Expected Behavior
I expect that the
tfe
provider will be able to create new Terraform Cloud workspaces using thetfe_workspace
resource.Actual Behavior
It fails with the following message:
Once again:
Additional Context
Other than mentioned above, there is nothing special about my setup. The code that I have above functions when working on Terraform Cloud GitHub workspaces in my personal GitHub namespace (
naftulikay
) but does not work for workspaces within the org that I am working in.The text was updated successfully, but these errors were encountered: