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

Error on upgrade from 2.11.0 to 2.12.0 #1375

Closed
jessemyers-lettuce opened this issue Feb 23, 2024 · 1 comment
Closed

Error on upgrade from 2.11.0 to 2.12.0 #1375

jessemyers-lettuce opened this issue Feb 23, 2024 · 1 comment
Assignees
Labels

Comments

@jessemyers-lettuce
Copy link

Terraform Version

  • Terraform: 1.7.4
  • Terraform Grafana Provider: 2.11.0
  • Grafana: n/a

Affected Resource(s)

  • provider

Terraform Configuration Files

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

provider "grafana" {
  auth = var.grafana_cloud_api_key
  url  = var.grafana_cloud_api_url
}

Debug Output

https://gist.github.com/jessemyers-lettuce/55acb4f1285a2673f7b841a945c36987

Panic Output

n/a/

Expected Behavior

A plan should be produced.

Actual Behavior

Terraform errors out with:

Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: Value Conversion Error
│
│   with provider["registry.terraform.io/grafana/grafana"],
│   on providers.tf line 38, in provider "grafana":
│   38: provider "grafana" {
│
│ An unexpected error was encountered trying to convert tftypes.Value into
│ provider.frameworkProviderConfig. This is always an error in the provider.
│ Please report the following to the provider developer:
│
│ mismatch between struct and object: Object defines fields not found in
│ struct: cloud_api_key.
╵
Operation failed: failed running terraform plan (exit 1)

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform plan

Important Factoids

We are running through Terraform Cloud.

References

None that I could find.

@julienduchesne
Copy link
Member

Fixed in v2.12.1

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

2 participants