Skip to content

Commit 3db0477

Browse files
SM Installation: Validate that cloud client is configured (#1230)
We use `GrafanaCloudAPI` in that resource. If it's not configured, it panics
1 parent cdac2ab commit 3db0477

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/provider/legacy_provider.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func Provider(version string) *schema.Provider {
9191
"grafana_cloud_stack_api_key": cloud.ResourceStackAPIKey(),
9292
"grafana_cloud_stack_service_account": cloud.ResourceStackServiceAccount(),
9393
"grafana_cloud_stack_service_account_token": cloud.ResourceStackServiceAccountToken(),
94+
"grafana_synthetic_monitoring_installation": cloud.ResourceInstallation(),
9495
})
9596

9697
// Resources that require the OnCall client to exist.
@@ -260,10 +261,6 @@ func Provider(version string) *schema.Provider {
260261
},
261262

262263
ResourcesMap: mergeResourceMaps(
263-
map[string]*schema.Resource{
264-
// This one installs SM on a cloud instance, everything it needs is in its attributes
265-
"grafana_synthetic_monitoring_installation": cloud.ResourceInstallation(),
266-
},
267264
grafanaClientResources,
268265
smClientResources,
269266
onCallClientResources,

0 commit comments

Comments
 (0)