Commit ccbac38
Add organization id to the provider.
Use the change in nytm/go-grafana-api#62 to
apply an organization id to the provider.
Usage might look like this:
```hcl
provider "grafana" {
url = "someurl"
auth = "adminuser:somepass"
}
resource "grafana_organization" "neworg" {
name = "neworg"
admin = "neworgadmin"
}
provider "grafana" {
alias = "neworg"
url = "someurl"
auth = "neworgadmin:somepass"
org_id = grafana_organization.neworg.org_id
}
resource "grafana_data_source" "neworg_graphite" {
provider = grafana.neworg
type = "graphite"
name = "neworg-graphite"
}
```
Co-authored-by: hansnqyr <luke@nqyr.io>1 parent 356e6ae commit ccbac38
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
0 commit comments