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

tfe_workspace Repository doesn't exist or isn't accessible for github_app_installation_id #1342

Open
dkirrane opened this issue Apr 30, 2024 · 0 comments
Labels

Comments

@dkirrane
Copy link

dkirrane commented Apr 30, 2024

Terraform Enterprise version

Terraform Cloud with

    tfe = {
      source  = "hashicorp/tfe"
      version = "0.54.0"
    }

Terraform version

Terraform v1.6.6
on linux_amd64

Terraform Configuration Files

resource "tfe_workspace" "this" {
  name           = "my-ws"
  organization   = "MyOrg"
  queue_all_runs = false
  vcs_repo {
    branch         = "main"
    identifier     = "my-github-org-name/my-repo-name"
    github_app_installation_id = "ghain-XXXXXXXXXXXXX"
  }
}

Debug Output

tfe_workspace.this: Creating...

Error: Error creating workspace my-ws for organization MyOrg: invalid attribute

Repository doesn't exist or isn't accessible

  with tfe_workspace.this,
  on main.tf line 76, in resource "tfe_workspace" "this":
  76: resource "tfe_workspace" "this" {

Expected Behavior

Create workspace with VCS settings

Actual Behavior

Error Repository doesn't exist or isn't accessible

Additional Context

  • I can create the workspace from the Terraform Cloud UI using the same GitHub App
  • In my GitHub org the Terraform Cloud GitHub App has access to all repos
    image

image

@dkirrane dkirrane added the bug label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant