Skip to content

Commit 3b4aa8e

Browse files
committed
feat(datawarehouse): remove ForceNew from password field
1 parent 6820278 commit 3b4aa8e

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

internal/services/datawarehouse/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ func ResourceDeployment() *schema.Resource {
8686
Type: schema.TypeString,
8787
Sensitive: true,
8888
Optional: true,
89-
ForceNew: true,
9089
Description: "Password for the first user of the deployment",
9190
},
9291
"public_network": {

templates/resources/datawarehouse_deployment.md.tmpl

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ resource "scaleway_datawarehouse_deployment" "main" {
4545
The following arguments are supported:
4646

4747
- `name` - (Required) Name of the Data Warehouse deployment.
48-
- `version` - (Required) ClickHouse version to use (e.g., "v25").
48+
- `version` - (Required, Forces new resource) ClickHouse version to use (e.g., "v25"). Changing this forces recreation of the deployment.
4949
- `replica_count` - (Required) Number of replicas.
50-
- `cpu_min` - (Required) Minimum CPU count.
51-
- `cpu_max` - (Required) Maximum CPU count.
50+
- `cpu_min` - (Required) Minimum CPU count. Must be less than or equal to `cpu_max`.
51+
- `cpu_max` - (Required) Maximum CPU count. Must be greater than or equal to `cpu_min`.
5252
- `ram_per_cpu` - (Required) RAM per CPU in GB.
53-
- `password` - (Optional) Password for the first user of the deployment. If not specified, a random password will be generated.
53+
- `password` - (Optional) Password for the first user of the deployment. If not specified, a random password will be generated. Note: password is only used during deployment creation.
5454
- `tags` - (Optional) List of tags to apply to the deployment.
5555
- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the deployment should be created.
5656
- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the deployment is associated with.
5757

58-
~> **Important:** Private endpoints are not yet supported by the API. A public endpoint is always created.
58+
~> **Important:** Private endpoints are not yet supported by the API. A public endpoint is always created automatically.
5959

6060
~> **Note:** During the private beta phase, modifying `cpu_min`, `cpu_max`, and `replica_count` has no effect until the feature is launched in general availability.
6161

@@ -64,11 +64,15 @@ The following arguments are supported:
6464
In addition to all arguments above, the following attributes are exported:
6565

6666
- `id` - The ID of the deployment.
67-
- `public_network` - Public endpoint information.
67+
- `status` - The status of the deployment (e.g., "ready", "provisioning").
68+
- `created_at` - Date and time of deployment creation (RFC 3339 format).
69+
- `updated_at` - Date and time of deployment last update (RFC 3339 format).
70+
- `public_network` - Public endpoint information (always created automatically).
6871
- `id` - The ID of the public endpoint.
6972
- `dns_record` - DNS record for the public endpoint.
70-
- `protocol` - Service protocol (e.g., "tcp", "https", "mysql").
71-
- `port` - TCP port number for the public endpoint.
73+
- `services` - List of services exposed on the public endpoint.
74+
- `protocol` - Service protocol (e.g., "tcp", "https", "mysql").
75+
- `port` - TCP port number.
7276

7377
## Import
7478

0 commit comments

Comments
 (0)