Releases: grafana/terraform-provider-grafana
v2.19.3
What's Changed
- (Backport) Fix SLO client by @julienduchesne in #1716
Full Changelog: v2.19.2...v2.19.3
v3.5.0
What's Changed
- Fix inability to update managed ML alerts by @csmarchbanks in #1684
- Bump the terraform group with 2 updates by @dependabot in #1686
- Bump github.com/grafana/synthetic-monitoring-agent from 0.24.3 to 0.25.0 by @dependabot in #1687
- Bump github.com/zclconf/go-cty from 1.14.4 to 1.15.0 by @dependabot in #1689
- Check oncall rolling_users shift does not include empty group by @matiasb in #1685
- Config Generation: Handle read failures by @julienduchesne in #1690
- Config Generation: Add some missing listers by @julienduchesne in #1692
- Config Generation: Simplify listing of org resources by @julienduchesne in #1693
- Fix SLO client by @julienduchesne in #1697
- Config Generation: Add tests for listers by @julienduchesne in #1698
- Add
Grafana-Terraform-Provider-Version
header by @julienduchesne in #1700
Full Changelog: v3.4.0...v3.5.0
v3.4.0
What's Changed
- Standardize setting empty ID by @julienduchesne in #1667
- goreleaser: Set version field by @julienduchesne in #1668
grafana_oncall_user_notification_rule
: Remove hardcoded user in test by @julienduchesne in #1671- Bump google.golang.org/grpc from 1.64.0 to 1.64.1 by @dependabot in #1674
- Config Generation: Redact credentials from generated config by @julienduchesne in #1661
- Config Generation: Configurable Terraform Install by @julienduchesne in #1659
grafana_library_panels
datasource by @julienduchesne in #1651- Config Generation: Extract post-processing code by @julienduchesne in #1675
- SAML: Add Azure AD Graph API integration by @linoman in #1669
- Add resources for creating ML managed alerts by @csmarchbanks in #1670
- Support expired access policy tokens by @malcolmholmes in #1678
- Config Generation: Structured Result by @julienduchesne in #1677
New Contributors
Full Changelog: v3.3.0...v3.4.0
v3.3.0
What's Changed
- feat(slo): Update Terraform provider to include option to set min Failures by @Leo-DiCara in #1660
- add
grafana_oncall_user_notification_rule
resource by @joeyorlando in #1653
Full Changelog: v3.2.1...v3.3.0
v3.2.1
What's Changed
- Bump github.com/grafana/synthetic-monitoring-agent from 0.24.1 to 0.24.2 by @dependabot in #1650
- Bump github.com/grafana/synthetic-monitoring-agent from 0.24.2 to 0.24.3 by @dependabot in #1656
- Bump github.com/hashicorp/hcl/v2 from 2.20.1 to 2.21.0 by @dependabot in #1657
- SSO: Fix SSO settings update with custom fields by @dmihai in #1652
Full Changelog: v3.2.0...v3.2.1
v3.2.0
What's Changed
- fix(SLO provenance) Add request header for SLO app to track which resources are terraform-provisioned by @ellisda in #1617
- Bump the terraform group with 2 updates by @dependabot in #1627
- Bump golang.org/x/text from 0.15.0 to 0.16.0 by @dependabot in #1628
- Bump goreleaser/goreleaser-action from 5 to 6 by @dependabot in #1629
- Common Resource and DataSource framework by @julienduchesne in #1616
- Generate docs categories from Go code by @julienduchesne in #1588
- Config Generation: Crossplane support by @julienduchesne in #1618
- SM: add a scripted check definition by @rdubrock in #1456
- Prevent deletion on nested folders by @malcolmholmes in #1635
- Fix SM scripted check test by @julienduchesne in #1632
- Stack: Document what the usernames are for Influx and OTLP by @julienduchesne in #1636
- Config Generation: Add lister for
grafana_cloud_org_member
by @julienduchesne in #1637 - Folder: Fix flaky test by @julienduchesne in #1641
- Config Generation: Support for OnCall and Synthetic Monitoring by @julienduchesne in #1639
- [Fix] Adds check to ensure that the Grafana-Terraform-Provider header is set by @elainevuong in #1631
- Add message_thread_id for Telegram contact points by @th0th in #1234
- Release workflow: Replace deprecated things by @julienduchesne in #1615
- Alert Rule Group: Fix moving rules between groups by @julienduchesne in #1624
- Alerting Rule Group: Support colon in title by @julienduchesne in #1625
- OnCall: Default webhooks to enabled by @julienduchesne in #1647
- Release: Fix typo in action image by @julienduchesne in #1648
- Config Generation: Add entrypoint for cloud stack resources by @julienduchesne in #1646
- SM: add support for grpc health checks by @w1kman in #1644
- Fix flaky config generation test by @julienduchesne in #1642
New Contributors
- @ellisda made their first contribution in #1617
- @malcolmholmes made their first contribution in #1635
- @th0th made their first contribution in #1234
- @w1kman made their first contribution in #1644
Full Changelog: v3.1.0...v3.2.0
v2.19.2
What's Changed
- Alerting Rule Group: Support colon in title by @julienduchesne in #1643
- Add request header for SLO provenance (#1617) by @julienduchesne in #1626
Full Changelog: v2.19.1...v2.19.2
v3.1.0
What's Changed
grafana_synthetic_monitoring_probe
: Adddisable_scripted_checks
by @julienduchesne in #1570- Code Generation: Basic integration test by @julienduchesne in #1571
- Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.33.0 to 2.34.0 in the terraform group by @dependabot in #1577
- Update OnCall escalation type param to be required by @matiasb in #1575
- Remove hardocded pagerduty APIURL by @gaurav1999 in #1576
- Update SLO client version by @julienduchesne in #1578
- feat(slo): support folder field by @inikotoran in #1553
grafana_cloud_stack
: Addinflux_url
by @julienduchesne in #1580- Code Generation: Sort resources and imports by @julienduchesne in #1582
- Code Generation: Initial tests by @julienduchesne in #1583
- Code Generation: Do not generate
org_id
field when set to default by @julienduchesne in #1584 - Update go.mod to v3 by @julienduchesne in #1586
- Config Generation: No provider alias on single instance by @julienduchesne in #1589
- Config Generation: Add type and name filter by @julienduchesne in #1590
- Config Generation: More resources! by @julienduchesne in #1591
- Config Generation: Go implementation for executing Terraform binary by @Duologic in #1592
- Config Generation: Add test for JSON by @julienduchesne in #1593
- Config Generation: Various small fixes by @julienduchesne in #1596
- Config Generation: Add tests for alerting resources by @julienduchesne in #1598
- Config Generation: Find references between resources by @julienduchesne in #1585
- Config Generation: Do not crash when everything is filtered out by @julienduchesne in #1599
- Config Generation: Even more references by @julienduchesne in #1595
- Bump github.com/hashicorp/go-retryablehttp from 0.7.6 to 0.7.7 by @dependabot in #1605
- Bump github.com/hashicorp/terraform-plugin-docs from 0.19.2 to 0.19.3 in the terraform group by @dependabot in #1602
- SSO: Add the new role_values_viewer field to SSO SAML settings by @dmihai in #1600
- Fix deleting mute timings that are in use by @julienduchesne in #1608
- Contact Points: Add recreation test by @julienduchesne in #1614
- Rule group detect rule name conflicts by @WeberKuo in #1610
New Contributors
- @gaurav1999 made their first contribution in #1576
- @inikotoran made their first contribution in #1553
- @WeberKuo made their first contribution in #1610
Full Changelog: v3.0.0...v3.1.0
v2.19.1
What's Changed
- Contact Points: Avoid 500 errors by listing by @julienduchesne in #1612
- (V2 Backport) Fix deleting mute timings that are in use (#1608) by @julienduchesne in #1613
- Update OnCall escalation type param to be required (#1575)
- Update synthetic monitoring frequency value validation (#1561)
Full Changelog: v2.19.0...v2.19.1
v3.0.0
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
: Usegrafana_service_account
insteadgrafana_cloud_stack_api_key
: Usegrafana_cloud_stack_service_account
insteadgrafana_cloud_api_key
: Usegrafana_cloud_access_policy
insteadgrafana_oncall_action
: Usegrafana_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 singledashboards {}
blockcloud_api_key
provider attribute: Usecloud_access_policy_token
instead
Changelog
- SSO: Improve SSO settings examples by @dmihai in #1549
- Deprecate global
org_id
config by @julienduchesne in #1516 - Deprecate old ID separators by @julienduchesne in #1518
- Deprecate Cloud API keys by @julienduchesne in #1517
- Remove all deprecated attributes and resources by @julienduchesne in #1529
- Fix README links and images by @julienduchesne in #1554
- Add goreleaser config for code generation tool by @julienduchesne in #1555
- Code Generation: Add readme and warnings by @julienduchesne in #1556
- Link changelog in TF provider docs by @julienduchesne in #1559
- Update synthetic monitoring frequency value validation by @tomaszgawliksa in #1561
- Clear out CHANGELOG.md by @julienduchesne in #1560
- Bump github.com/hashicorp/terraform-plugin-mux from 0.15.0 to 0.16.0 in the terraform group by @dependabot in #1562
- Bump github.com/fatih/color from 1.16.0 to 1.17.0 by @dependabot in #1564
- Bump github.com/hashicorp/go-retryablehttp from 0.7.5 to 0.7.6 by @dependabot in #1563
- Run tests on Grafana v11 by @julienduchesne in #1415
- Cloud: Fix SM installation test by @julienduchesne in #1568
- Cloud: More test fixes by @julienduchesne in #1569
New Contributors
- @tomaszgawliksa made their first contribution in #1561
Full Changelog: v2.19.0...v3.0.0