Skip to content

Commit 98ed698

Browse files
authored
Merge branch 'master' into feat/rdb-accept-standalone-ip-in-private-network
2 parents ae36e8a + b6bc8ed commit 98ed698

File tree

258 files changed

+33205
-44132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+33205
-44132
lines changed

.github/workflows/acceptance-tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- block
2222
- cockpit
2323
- container
24+
- datawarehouse
2425
- domain
2526
- file
2627
- flexibleip
@@ -177,6 +178,7 @@ jobs:
177178
- block
178179
- cockpit
179180
- container
181+
- datawarehouse
180182
- domain
181183
- file
182184
- flexibleip

.github/workflows/actionlint.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/golangci-lint.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Lint
2+
3+
permissions:
4+
contents: read
5+
checks: write
6+
pull-requests: read
7+
8+
on:
9+
pull_request:
10+
merge_group:
11+
12+
jobs:
13+
terrafmt:
14+
name: terrafmt
15+
runs-on: ubuntu-latest
16+
steps:
17+
# Checkout should always be before setup-go to ensure caching is working
18+
- uses: actions/checkout@v5
19+
- uses: actions/setup-go@v6
20+
with:
21+
go-version: stable
22+
- name: Run terrafmt on documentation
23+
run: go tool terrafmt fmt --verbose --check ./docs
24+
25+
spelling:
26+
name: Spell Check with Typos
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout Actions Repository
30+
uses: actions/checkout@v4
31+
- name: Spell Check Repo
32+
uses: crate-ci/[email protected]
33+
env:
34+
CLICOLOR: 1
35+
36+
tfproviderlint:
37+
name: tfproviderlint
38+
runs-on: ubuntu-latest
39+
steps:
40+
# Checkout should always be before setup-go to ensure caching is working
41+
- uses: actions/checkout@v5
42+
- uses: actions/setup-go@v6
43+
with:
44+
go-version: stable
45+
- name: Install tfproviderlint
46+
run: go install github.com/bflad/tfproviderlint/cmd/tfproviderlint
47+
- name: Run tfproviderlint
48+
run: make tfproviderlint
49+
- name: Run tfproviderlintx
50+
run: make tfproviderlintx
51+
52+
tfproviderdocs:
53+
name: tfproviderdocs
54+
runs-on: ubuntu-latest
55+
steps:
56+
# Checkout should always be before setup-go to ensure caching is working
57+
- uses: actions/checkout@v5
58+
- uses: actions/setup-go@v6
59+
with:
60+
go-version: stable
61+
- uses: hashicorp/setup-terraform@v3
62+
- run: go install github.com/bflad/tfproviderdocs@latest
63+
- run: make tfproviderdocs
64+
65+
actionlint:
66+
name: actionlint
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: actions/checkout@v5
70+
- name: Check workflow files
71+
uses: docker://rhysd/actionlint:latest
72+
with:
73+
args: -color -ignore SC2086
74+
75+
golangci:
76+
name: golangci-lint
77+
runs-on: ubuntu-latest
78+
steps:
79+
- uses: actions/checkout@v5
80+
- name: golangci-lint
81+
uses: golangci/[email protected]
82+
with:
83+
version: v2.5.0
84+
args: --timeout 5m

.github/workflows/nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- block
2424
- cockpit
2525
- container
26+
- datawarehouse
2627
- domain
2728
- edgeservices
2829
- flexibleip

.github/workflows/spelling.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/terrafmt.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/tfproviderlint.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
subcategory: "Data Warehouse"
3+
page_title: "Scaleway: scaleway_datawarehouse_database"
4+
---
5+
6+
# Resource: scaleway_datawarehouse_database
7+
8+
Creates and manages Scaleway Data Warehouse databases within a deployment.
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+
resource "scaleway_datawarehouse_database" "main" {
27+
deployment_id = scaleway_datawarehouse_deployment.main.id
28+
name = "my_database"
29+
}
30+
```
31+
32+
## Argument Reference
33+
34+
The following arguments are supported:
35+
36+
- `deployment_id` - (Required) ID of the Data Warehouse deployment to which this database belongs.
37+
- `name` - (Required) Name of the database.
38+
- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) in which the database should be created.
39+
40+
## Attributes Reference
41+
42+
In addition to all arguments above, the following attributes are exported:
43+
44+
- `id` - The ID of the database (format: `{region}/{deployment_id}/{name}`).
45+
- `size` - Size of the database in GB.
46+
47+
## Import
48+
49+
Data Warehouse databases can be imported using the `{region}/{deployment_id}/{name}`, e.g.
50+
51+
```bash
52+
terraform import scaleway_datawarehouse_database.main fr-par/11111111-1111-1111-1111-111111111111/my_database
53+
```
54+
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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, Forces new resource) ClickHouse version to use (e.g., "v25"). Changing this forces recreation of the deployment.
48+
- `replica_count` - (Required) Number of replicas.
49+
- `cpu_min` - (Required) Minimum CPU count. Must be less than or equal to `cpu_max`.
50+
- `cpu_max` - (Required) Maximum CPU count. Must be greater than or equal to `cpu_min`.
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. Note: password is only used during deployment creation.
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 automatically.
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+
- `status` - The status of the deployment (e.g., "ready", "provisioning").
67+
- `created_at` - Date and time of deployment creation (RFC 3339 format).
68+
- `updated_at` - Date and time of deployment last update (RFC 3339 format).
69+
- `public_network` - Public endpoint information (always created automatically).
70+
- `id` - The ID of the public endpoint.
71+
- `dns_record` - DNS record for the public endpoint.
72+
- `services` - List of services exposed on the public endpoint.
73+
- `protocol` - Service protocol (e.g., "tcp", "https", "mysql").
74+
- `port` - TCP port number.
75+
76+
## Import
77+
78+
Data Warehouse deployments can be imported using the `{region}/{id}`, e.g.
79+
80+
```bash
81+
terraform import scaleway_datawarehouse_deployment.main fr-par/11111111-1111-1111-1111-111111111111
82+
```
83+

0 commit comments

Comments
 (0)