Skip to content

[BUG]: github_app_installation_repository terraform resource doesn't work #2683

Open
@mariac9

Description

@mariac9

Expected Behavior

Hi, I'm trying to create a terraform github_app_installation_repository resource with github provider version ~>6.0 and when I run terraform apply I get the following error:
Error: Provider produced inconsistent result after apply │ │ When applying changes to │ module.test.github_app_installation_repository.app_installation, │ provider "provider[\"registry.terraform.io/integrations/github\"]" produced │ an unexpected new value: Root object was present, but now absent. │ │ This is a bug in the provider, which should be reported in the provider's │ own issue tracker. ╵ Error: Terraform exited with code 1. Error: Process completed with exit code 1.

I notice that this problem always happen when the repo name contains capital letter

Actual Behavior

terraform apply command fails with bug error in the provider

Terraform Version

terraform_version: 1.11.4

Affected Resource(s)

github_app_installation_repository

Terraform Configuration Files

#module
resource "github_app_installation_repository" "app_installation" {
  installation_id = var.installation_id
  repository      = lower(var.project_name) ## Fix bug on upper-case repo name
}

Steps to Reproduce

terraform apply

Debug Output

╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to
│ module.verifica_polizza_fideiussoria.github_app_installation_repository.app_installation,
│ provider "provider[\"registry.terraform.io/integrations/github\"]" produced
│ an unexpected new value: Root object was present, but now absent.
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

Error: Terraform exited with code 1.
Error: Process completed with exit code 1.

Panic Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions