{question}
This article describes the solution to the following two questions:
- How do we configure the workspace to never expire using the Terraform provider?
- How do we specify
region_id
in the provider configuration?
{question}
{answer}
1. How do we configure the workspace to never expire using the Terraform provider?
- The configuration to specify when the workspace expires is done using the
expires_at
parameter in the terraform configuration as follows:
resource "singlestoredb_workspace_group" "example" { name = "group" firewall_ranges = ["0.0.0.0/0"] // Ensure restrictive ranges for production environments. expires_at = "2222-01-01T00:00:00Z" 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. }
- If the requirement is never to expire the workspace, then there is no need to specify this parameter in the first place. If this parameter is not specified, the workspace group never expires. Click here to learn more.
2. How do we specify the region_id
in the provider configuration?
resource "singlestoredb_workspace_group" "example" {
name = "group"
firewall_ranges = ["0.0.0.0/0"] // Ensure restrictive ranges for production environments.
region_id = "9966fccf-5116-437e-a34f-008ee32e8d94"
}
Reference
Manage SingleStore CloudDB Using Terraform
SingleStore Terraform Provider
{answer}