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
Hi, I'm seeing this issue after upgrading to 1.35.0.
I use the provider to add Library Panels to a Grafana Cloud instance. The library panel provisioning actually completes successfully (I can see the Library Panel inside Grafana!) but Terraform seems to throw this error immediately afterwards (example below).
This is strange because I'm not specifying an org ID anywhere, at least not that I'm aware of.
The error even prevents me from running any further Terraform actions (including terraform destroy), so I have to manually remove items from the Terraform state.
Terraform Version
Terraform: 1.3.7
Terraform Grafana Provider: 1.35.0
Grafana: Cloud (Grafana 9.3.6)
Affected Resource(s)
grafana_library_panel
Terraform Configuration Files
To be provided :)
Debug Output
To be provided :)
Expected Behavior
The provider should create library panels and other resources.
Actual Behavior
When I run terraform apply for the first time, the provider creates the library panels successfully (I can see them inside Grafana), but then subsequent operations seem to fail with this error:
│ Error: cannot use both API key and org ID. API keys are scoped to single org
│
│ with module.artifacts_tst02user02.grafana_library_panel.latency_profile_sockshop,
│ on ../../../field-eng-infra/terraform/modules/workshops/dashboard-makeover-artifacts/librarypanels.tf line 11, in resource "grafana_library_panel" "latency_profile_sockshop":
│ 11: resource "grafana_library_panel" "latency_profile_sockshop" {
│
The error then occurs again when I run terraform apply again, and even terraform destroy, preventing objects from being created or destroyed.
This seems to be happening since we upgraded to 1.35.0 of the provider - I tested it a few times with 1.34.0 and didn't see this error at all.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Create Grafana Cloud stack
Create an API key for the instance (using grafana_api_key)
Use that key to configure a second Provider, with auth set to the API key, and url set to the URL of the Grafana instance
Use grafana_library_panel to add the LIbrary Panel to the instance.
terraform apply
Here's how we're defining a library panel resource - this is located inside a module:
Hi, I'm seeing this issue after upgrading to 1.35.0.
I use the provider to add Library Panels to a Grafana Cloud instance. The library panel provisioning actually completes successfully (I can see the Library Panel inside Grafana!) but Terraform seems to throw this error immediately afterwards (example below).
This is strange because I'm not specifying an org ID anywhere, at least not that I'm aware of.
The error even prevents me from running any further Terraform actions (including
terraform destroy
), so I have to manually remove items from the Terraform state.Terraform Version
Affected Resource(s)
Terraform Configuration Files
To be provided :)
Debug Output
To be provided :)
Expected Behavior
The provider should create library panels and other resources.
Actual Behavior
When I run
terraform apply
for the first time, the provider creates the library panels successfully (I can see them inside Grafana), but then subsequent operations seem to fail with this error:The error then occurs again when I run
terraform apply
again, and eventerraform destroy
, preventing objects from being created or destroyed.This seems to be happening since we upgraded to 1.35.0 of the provider - I tested it a few times with 1.34.0 and didn't see this error at all.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
grafana_api_key
)auth
set to the API key, andurl
set to the URL of the Grafana instancegrafana_library_panel
to add the LIbrary Panel to the instance.terraform apply
Here's how we're defining a library panel resource - this is located inside a module:
And here's an example of configuring the provider that is then passed to our module:
Important Factoids
We're using Grafana Cloud.
The text was updated successfully, but these errors were encountered: