@@ -14,13 +14,13 @@ viewing and sharing metrics dashboards.
1414
1515The provider configuration block accepts the following arguments:
1616
17- * `` url `` - (Required) The root URL of a Grafana server. May alternatively be
18- set via the `` GRAFANA_URL ` ` environment variable.
17+ * ` url ` - (Required) The root URL of a Grafana server. May alternatively be set
18+ via the ` GRAFANA_URL ` environment variable.
1919
20- * `` auth `` - (Required) The API token or username/password to use to
21- authenticate to the Grafana server. If username/password is used, they
22- are provided in a single string and separated by a colon. May alternatively
23- be set via the `` GRAFANA_AUTH `` environment variable.
20+ * ` auth ` - (Required) The API token or username/password to use to authenticate
21+ to the Grafana server. If username/password is used, they are provided in a
22+ single string and separated by a colon. May alternatively be set via the
23+ `` GRAFANA_AUTH `` environment variable.
2424
2525Use the navigation to the left to read about the available resources.
2626
@@ -33,7 +33,7 @@ provider "grafana" {
3333}
3434
3535resource "grafana_dashboard" "metrics" {
36- config_json = "${ file("grafana-dashboard.json")}"
36+ config_json = file("grafana-dashboard.json")
3737}
3838
3939resource "grafana_data_source" "influxdb" {
@@ -49,35 +49,35 @@ resource "grafana_alert_notification" "slack" {
4949 name = "My Slack"
5050 type = "slack"
5151
52- settings {
53- " url" = "https://hooks.slack.com/hoook"
54- " recipient" = "@someguy"
55- " uploadImage" = "false"
52+ settings = {
53+ url = "https://hooks.slack.com/hoook"
54+ recipient = "@someguy"
55+ uploadImage = "false"
5656 }
5757}
5858
5959resource "grafana_organization" "org" {
60- name = "Grafana Organization"
61- admin_user = "admin"
62- create_users = true
63- admins = [
64- 65- ]
66- editors = [
67- 68- 69- ]
70- viewers = [
71- 72- 73- ]
60+ name = "Grafana Organization"
61+ admin_user = "admin"
62+ create_users = true
63+ admins = [
64+ 65+ ]
66+ editors = [
67+ 68+ 69+ ]
70+ viewers = [
71+ 72+ 73+ ]
7474}
7575
7676resource "grafana_team" "team1" {
77- name = "Grafana Team 1"
78- 77+ name = "Grafana Team 1"
78+ 7979 members = [
80- 80+ 8181 ]
8282}
8383```
0 commit comments