|
| 1 | +--- |
| 2 | +subcategory: "Data Warehouse" |
| 3 | +page_title: "Scaleway: scaleway_datawarehouse_deployment" |
| 4 | +--- |
| 5 | + |
| 6 | +# Resource: scaleway_datawarehouse_deployment |
| 7 | + |
| 8 | +Creates and manages Scaleway Data Warehouse deployments. |
| 9 | +For more information refer to the [product documentation](https://www.scaleway.com/en/docs/data-warehouse/). |
| 10 | + |
| 11 | +## Example Usage |
| 12 | + |
| 13 | +### Basic |
| 14 | + |
| 15 | +```terraform |
| 16 | +resource "scaleway_datawarehouse_deployment" "main" { |
| 17 | + name = "my-datawarehouse" |
| 18 | + version = "v25" |
| 19 | + replica_count = 1 |
| 20 | + cpu_min = 2 |
| 21 | + cpu_max = 4 |
| 22 | + ram_per_cpu = 4 |
| 23 | + password = "thiZ_is_v&ry_s3cret" |
| 24 | +} |
| 25 | +``` |
| 26 | + |
| 27 | +### With Tags |
| 28 | + |
| 29 | +```terraform |
| 30 | +resource "scaleway_datawarehouse_deployment" "main" { |
| 31 | + name = "my-datawarehouse" |
| 32 | + version = "v25" |
| 33 | + replica_count = 1 |
| 34 | + cpu_min = 2 |
| 35 | + cpu_max = 4 |
| 36 | + ram_per_cpu = 4 |
| 37 | + password = "thiZ_is_v&ry_s3cret" |
| 38 | + tags = ["production", "analytics"] |
| 39 | +} |
| 40 | +``` |
| 41 | + |
| 42 | +## Argument Reference |
| 43 | + |
| 44 | +The following arguments are supported: |
| 45 | + |
| 46 | +- `name` - (Required) Name of the Data Warehouse deployment. |
| 47 | +- `version` - (Required) ClickHouse version to use (e.g., "v25"). |
| 48 | +- `replica_count` - (Required) Number of replicas. |
| 49 | +- `cpu_min` - (Required) Minimum CPU count. |
| 50 | +- `cpu_max` - (Required) Maximum CPU count. |
| 51 | +- `ram_per_cpu` - (Required) RAM per CPU in GB. |
| 52 | +- `password` - (Optional) Password for the first user of the deployment. If not specified, a random password will be generated. |
| 53 | +- `tags` - (Optional) List of tags to apply to the deployment. |
| 54 | +- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the deployment should be created. |
| 55 | +- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the deployment is associated with. |
| 56 | + |
| 57 | +~> **Important:** Private endpoints are not yet supported by the API. A public endpoint is always created. |
| 58 | + |
| 59 | +~> **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. |
| 60 | + |
| 61 | +## Attributes Reference |
| 62 | + |
| 63 | +In addition to all arguments above, the following attributes are exported: |
| 64 | + |
| 65 | +- `id` - The ID of the deployment. |
| 66 | +- `public_network` - Public endpoint information. |
| 67 | + - `id` - The ID of the public endpoint. |
| 68 | + - `dns_record` - DNS record for the public endpoint. |
| 69 | + - `protocol` - Service protocol (e.g., "tcp", "https", "mysql"). |
| 70 | + - `port` - TCP port number for the public endpoint. |
| 71 | + |
| 72 | +## Import |
| 73 | + |
| 74 | +Data Warehouse deployments can be imported using the `{region}/{id}`, e.g. |
| 75 | + |
| 76 | +```bash |
| 77 | +terraform import scaleway_datawarehouse_deployment.main fr-par/11111111-1111-1111-1111-111111111111 |
| 78 | +``` |
| 79 | + |
0 commit comments