Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 14 May 18:21
· 18 commits to main since this release
3e2cef5

Recommended upgrade procedure

Bump the Terraform provider to the latest v2 version, apply, then upgrade to v3 and remove/replace all the attributes that have been removed.

Major features

Terraform Config Generation (Alpha version)

See the README here.

This is a new tool that will be developed further in future releases. It can be pointed at a Grafana instance or at a Grafana Cloud account and it will find all Grafana provider resources and generate the Terraform config for them.

Example (with the binary from this release):

./terraform-provider-grafana-generate_3.0.0_darwin_arm64 --output-dir test --grafana-auth=admin:admin --grafana-url=http://localhost:3000/

Grafana 11 Support

Some Terraform features had to be removed to enable full Grafana 11 support. All resources should now work with Grafana 11 (Cloud, on-prem Enterprise and on-prem OSS).

Breaking changes

Removed the global (provider-level) org_id setting

Reasons for its removal:

  • The attribute was already added on each resource, so it doesn't remove any functionality
  • It's irrelevant to all parts of the provider other than Grafana resources, possibly causing confusing since there's also an org concept on cloud resources
  • Even for Grafana, it does not apply to all resources. For example, users are not org-scoped. By setting it on a resource level, this is much better defined
  • When using it globally, it prevents looping on multiple orgs. Ex: Create dashboards for a list of orgs. Providers cannot be created dynamically

Removed support for old ID separators (converge on :)

This makes importing resources consistent across all parts of the provider. For example:

terraform import grafana_folder.test orgID:folderUID
terraform import grafana_dashboard.test orgID:dashboardUID

Removed deprecated resources

  • grafana_api_key: Use grafana_service_account instead
  • grafana_cloud_stack_api_key: Use grafana_cloud_stack_service_account instead
  • grafana_cloud_api_key: Use grafana_cloud_access_policy instead
  • grafana_oncall_action : Use grafana_oncall_outgoing_webhook instead

Removed deprecated attributes

  • Removed numerical IDs (of dashboards, folders, datasources) in favour of UIDs
  • grafana_report dashboard definition converged onto a single dashboards {} block
  • cloud_api_key provider attribute: Use cloud_access_policy_token instead

Changelog

New Contributors

Full Changelog: v2.19.0...v3.0.0