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

[Bug]: data "grafana_cloud_organization" fails, typo in expected JSON key name? #1404

Closed
0x006EA1E5 opened this issue Mar 6, 2024 · 0 comments · Fixed by #1406
Closed

[Bug]: data "grafana_cloud_organization" fails, typo in expected JSON key name? #1404

0x006EA1E5 opened this issue Mar 6, 2024 · 0 comments · Fixed by #1406

Comments

@0x006EA1E5
Copy link

0x006EA1E5 commented Mar 6, 2024

Terraform Version

1.6.6

Terraform Grafana Provider Version

2.12.2

Grafana Version

Grafana v11.0.0-67746 (5f6bf93dd5) (cloud)

Affected Resource(s)

  • grafana_cloud_organization

Terraform Configuration Files

data "grafana_cloud_organization" "ocado" {
  slug = "<our oug slug>"
}

Expected Behavior

Should get the org data back

Actual Behavior

Planning failed. Terraform encountered an error while generating this plan.

│ Error: no value given for required property feO11yIncludedUsage
│
│   with module.grafana.data.grafana_cloud_organization.ocado,
│   on grafana/grafana.tf line 9, in data "grafana_cloud_organization" "ocado":
│    9: data "grafana_cloud_organization" "ocado" {
│
│ no value given for required property feO11yIncludedUsage

...followed by a long JSON string, with key feO11YIncludedUsage.

Note, this key has an upper case Y in O11Y, whereas the error has a lower case y in O11y

Steps to Reproduce

terraform plan with the above grafana_cloud_organization data resource

Important Factoids

We are on Grafana Cloud.
As noted, looks like a typo in the provider, expecting a lowercase y where the returned data has an upper case Y

References

No response

@0x006EA1E5 0x006EA1E5 changed the title [Bug]: [Bug]: data "grafana_cloud_organization" fails, typo in JSON key name? Mar 6, 2024
@0x006EA1E5 0x006EA1E5 changed the title [Bug]: data "grafana_cloud_organization" fails, typo in JSON key name? [Bug]: data "grafana_cloud_organization" fails, typo in expected JSON key name? Mar 6, 2024
julienduchesne added a commit that referenced this issue Mar 6, 2024
Closes #1404
The current version has too much validation on returned models which can cause issues when Grafana Cloud is updated
julienduchesne added a commit that referenced this issue Mar 6, 2024
Closes #1404
The current version has too much validation on returned models which can cause issues when Grafana Cloud is updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant