Skip to content

Commit 9cb8815

Browse files
authored
Merge pull request #372 from grafana/run-terraform-fmt-in-examples
Format Terraform files in examples/
2 parents 0a08c26 + 74bae8b commit 9cb8815

File tree

22 files changed

+94
-94
lines changed

22 files changed

+94
-94
lines changed

docs/data-sources/cloud_stack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Data source for Grafana Stack
1414

1515
```terraform
1616
resource "grafana_cloud_stack" "test" {
17-
name = "gcloudstacktest"
18-
slug = "gcloudstacktest"
17+
name = "gcloudstacktest"
18+
slug = "gcloudstacktest"
1919
region_slug = "eu"
2020
description = "Test Grafana Cloud Stack"
2121
}

docs/data-sources/dashboard.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ description: |-
1616

1717
```terraform
1818
resource "grafana_dashboard" "test" {
19-
config_json = jsonencode({
20-
id = 12345,
21-
title = "Production Overview",
22-
tags = [ "templated" ],
23-
timezone = "browser",
24-
schemaVersion = 16,
25-
version = 0,
26-
refresh = "25s"
19+
config_json = jsonencode({
20+
id = 12345,
21+
title = "Production Overview",
22+
tags = ["templated"],
23+
timezone = "browser",
24+
schemaVersion = 16,
25+
version = 0,
26+
refresh = "25s"
2727
})
2828
}
2929

docs/resources/api_key.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ resource "grafana_api_key" "foo" {
2222
}
2323
2424
resource "grafana_api_key" "bar" {
25-
name = "key_bar"
26-
role = "Admin"
25+
name = "key_bar"
26+
role = "Admin"
2727
seconds_to_live = 30
2828
}
2929
3030
3131
output "api_key_foo_key_only" {
32-
value = grafana_api_key.foo.key
32+
value = grafana_api_key.foo.key
3333
sensitive = true
3434
}
3535

docs/resources/builtin_role_assignment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ description: |-
2020
resource "grafana_builtin_role_assignment" "viewer" {
2121
builtin_role = "Viewer"
2222
roles {
23-
uid = "firstuid"
23+
uid = "firstuid"
2424
global = false
2525
}
2626
roles {
27-
uid = "seconduid"
27+
uid = "seconduid"
2828
global = true
2929
}
3030
}

docs/resources/cloud_stack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ description: |-
1414

1515
```terraform
1616
resource "grafana_cloud_stack" "test" {
17-
name = "gcloudstacktest"
18-
slug = "gcloudstacktest"
17+
name = "gcloudstacktest"
18+
slug = "gcloudstacktest"
1919
region_slug = "eu"
2020
description = "Test Grafana Cloud Stack"
2121
}

docs/resources/library_panel.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Manages Grafana library panels.
1818

1919
```terraform
2020
resource "grafana_library_panel" "test" {
21-
name = "updated name"
22-
model_json = jsonencode({
23-
title = "updated name",
24-
id = 12,
25-
version = 35
21+
name = "updated name"
22+
model_json = jsonencode({
23+
title = "updated name",
24+
id = 12,
25+
version = 35
2626
})
2727
}
2828
```

docs/resources/role.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ description: |-
1818

1919
```terraform
2020
resource "grafana_role" "super_user" {
21-
name = "Super User"
21+
name = "Super User"
2222
description = "My Super User description"
23-
uid = "superuseruid"
24-
version = 1
25-
global = true
23+
uid = "superuseruid"
24+
version = 1
25+
global = true
2626
2727
permissions {
2828
action = "users:create"
2929
}
3030
permissions {
3131
action = "users:read"
32-
scope = "global:users:*"
32+
scope = "global:users:*"
3333
}
3434
}
3535
```

docs/resources/team_external_group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description: |-
1515

1616
```terraform
1717
resource "grafana_team_external_group" "test-team-group" {
18-
team_id = 1
18+
team_id = 1
1919
groups = [
2020
"test-group-1",
2121
"test-group-2"

examples/data-sources/grafana_cloud_stack/data-source.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "grafana_cloud_stack" "test" {
2-
name = "gcloudstacktest"
3-
slug = "gcloudstacktest"
2+
name = "gcloudstacktest"
3+
slug = "gcloudstacktest"
44
region_slug = "eu"
55
description = "Test Grafana Cloud Stack"
66
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
resource "grafana_dashboard" "test_bad_inputs" {
2-
config_json = jsonencode({
3-
id = 12345,
4-
title = "Production Overview",
5-
tags = [ "templated" ],
6-
timezone = "browser",
7-
schemaVersion = 16,
8-
version = 0,
9-
refresh = "25s"
2+
config_json = jsonencode({
3+
id = 12345,
4+
title = "Production Overview",
5+
tags = ["templated"],
6+
timezone = "browser",
7+
schemaVersion = 16,
8+
version = 0,
9+
refresh = "25s"
1010
})
1111
}
1212

1313
data "grafana_dashboard" "bad_from_uid_id" {
14-
uid = grafana_dashboard.test_bad_inputs.id
15-
dashboard_id = grafana_dashboard.test_bad_inputs.dashboard_id
14+
uid = grafana_dashboard.test_bad_inputs.id
15+
dashboard_id = grafana_dashboard.test_bad_inputs.dashboard_id
1616
}

0 commit comments

Comments
 (0)