You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/workspace_group.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,15 @@ provider "singlestoredb" {
19
19
// You can generate this key from the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys.
20
20
}
21
21
22
-
data "singlestoredb_regions" "all" {}
22
+
data "singlestoredb_regions_v2" "all" {}
23
23
24
24
resource "singlestoredb_workspace_group" "this" {
25
25
name = "group"
26
26
firewall_ranges = ["0.0.0.0/0"] // Ensure restrictive ranges for production environments.
27
27
expires_at = "2222-01-01T00:00:00Z"
28
-
region_id = data.singlestoredb_regions.all.regions.0.id // Prefer specifying the explicit region ID in production environments as the list of regions may vary.
Copy file name to clipboardExpand all lines: examples/resources/singlestoredb_workspace_group/resource.tf
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,13 @@ provider "singlestoredb" {
4
4
// You can generate this key from the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys.
5
5
}
6
6
7
-
data"singlestoredb_regions""all" {}
7
+
data"singlestoredb_regions_v2""all" {}
8
8
9
9
resource"singlestoredb_workspace_group""this" {
10
10
name="group"
11
11
firewall_ranges=["0.0.0.0/0"] // Ensure restrictive ranges for production environments.
12
12
expires_at="2222-01-01T00:00:00Z"
13
-
region_id=data.singlestoredb_regions.all.regions.0.id// Prefer specifying the explicit region ID in production environments as the list of regions may vary.
Summary: "Cannot change cloud_provider and region_name to the deprecated region_id.",
448
+
Detail: "Changing cloud_provider and region_name to the deprecated region_id is not permitted. Use the cloud_provider and region_name parameters instead.",
Summary: "Cannot update workspace group region_id",
425
-
Detail: "To prevent accidental deletion of the workspace group and loss of data, updating the region_id is not permitted. Please explicitly delete the workspace group before changing its region_id.",
471
+
Detail: "Updating the region_id is not permitted. Warning: this field is deprecated. Use cloud_provider and region_name instead.",
Summary: "Cannot update workspace group region_name",
432
-
Detail: "To prevent accidental deletion of the workspace group and loss of data, updating the region_name is not permitted. Please explicitly delete the workspace group before changing its region_name.",
482
+
Detail: fmt.Sprintf("Updating the region_name is not permitted. Expected value is '%s', but now is '%s'.", state.RegionName.ValueString(), plan.RegionName.ValueString()),
Summary: "Cannot update workspace group cloud_provider",
439
-
Detail: "To prevent accidental deletion of the workspace group and loss of data, updating the cloud_provider is not permitted. Please explicitly delete the workspace group before changing its cloud_provider.",
488
+
Detail: fmt.Sprintf("Updating the cloud_provider is not permitted. Expected value is '%s'.", state.CloudProvider.ValueString()),
0 commit comments