Skip to content

Unable to remove grafana_organization #2242

@cshruti00

Description

@cshruti00

Terraform Version

1.12.1

Terraform Grafana Provider Version

3.25.6

Grafana Version

12.0.1

Affected Resource(s)

Unable to destroy/delete grafana_organization via terraform/API respectively.

Terraform Configuration Files

terraform {
  required_providers {
    grafana = {
      source = "grafana/grafana"
      version = "3.25.6"
    }
  }
}

provider "grafana" {
  url  = "<grafana_url>"
  auth = var.auth_key
}

resource "grafana_organization" "my_org" {
  name = "my_org"
}

Expected Behavior

Should destroy/delete the org through terraform/API respectively.

Actual Behavior

In the below image, both the orgs are present and I am trying to delete 'my_org'

Image

Tried destroying grafana_organization created via terraform results in the following error :

Image

Then tried deleting the same organization via API results in the following error:

Image

Note: I am using admin creds to run these commands

Steps to Reproduce

  1. Executeterraform apply to create the resources
  2. Then terraform destroy should show the same error.
  3. Try the same via API should also result in 500 status code.

Note: I am using admin creds to run these commands

Important Factoids

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions