Skip to content

Commit ac27aa6

Browse files
authored
Merge branch 'master' into feat/migrate_webhosting_to_v1
2 parents d3f767a + 5f24df2 commit ac27aa6

26 files changed

+102
-89
lines changed

.github/workflows/acceptance-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Install Go
5353
uses: actions/setup-go@v5
5454
with:
55-
go-version: 1.23.5
55+
go-version: 1.24.0
5656
- name: Run Acceptance Tests
5757
run: go test -v ./internal/services/${{ matrix.products }} -timeout=2h
5858
env:
@@ -76,7 +76,7 @@ jobs:
7676
- name: Install Go
7777
uses: actions/setup-go@v5
7878
with:
79-
go-version: 1.23.5
79+
go-version: 1.24.0
8080
- name: Install Terraform
8181
uses: hashicorp/setup-terraform@v3
8282
- name: Run scwconfig tests

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- docs/**
1313

1414
env:
15-
GO_VERSION: "1.23.5"
15+
GO_VERSION: "1.24.0"
1616
GO111MODULE: on
1717

1818
jobs:

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install Go
5454
uses: actions/setup-go@v5
5555
with:
56-
go-version: 1.23.5
56+
go-version: 1.24.0
5757
- name: Run Acceptance Tests
5858
run: go test -v ./internal/services/${{ matrix.products }} -timeout=4h
5959
env:
@@ -105,7 +105,7 @@ jobs:
105105
- name: Install Go
106106
uses: actions/setup-go@v5
107107
with:
108-
go-version: 1.23.5
108+
go-version: 1.24.0
109109
- name: Install Terraform
110110
uses: hashicorp/setup-terraform@v3
111111
- name: Run sweepers

.github/workflows/purge.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Manual Purge
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
sweeper:
7+
runs-on: ubuntu-latest
8+
steps:
9+
# Checkout should always be before setup-go to ensure caching is working
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Install Go
13+
uses: actions/setup-go@v5
14+
with:
15+
go-version: 1.24.0
16+
- name: Install Terraform
17+
uses: hashicorp/setup-terraform@v3
18+
- name: Run sweepers
19+
run: make sweep
20+
env:
21+
TF_TEST_DOMAIN: scaleway-terraform.com
22+
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
23+
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
24+
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
25+
SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Set up Go
2929
uses: actions/setup-go@v5
3030
with:
31-
go-version: 1.23.5
31+
go-version: 1.24.0
3232

3333
- name: Import GPG key
3434
id: import_gpg

.github/workflows/tfproviderlint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-go@v5
1515
with:
16-
go-version: 1.23.5
16+
go-version: 1.24.0
1717
- name: Install tfproviderlint
1818
run: go install github.com/bflad/tfproviderlint/cmd/tfproviderlint
1919
- name: Run tfproviderlint
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.23.5
28+
go-version: 1.24.0
2929
- uses: hashicorp/setup-terraform@v3
3030
- run: go install github.com/bflad/tfproviderdocs@latest
3131
- run: make tfproviderdocs

.github/workflows/unit-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install Go
1717
uses: actions/setup-go@v5
1818
with:
19-
go-version: 1.23.5
19+
go-version: 1.24.0
2020
- name: Install Terraform
2121
uses: hashicorp/setup-terraform@v3
2222
- name: Build binaries

GNUmakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ website:
5656
.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website
5757

5858
tfproviderlint:
59-
go run github.com/bflad/tfproviderlint/cmd/tfproviderlint -R014=false -AT001.ignored-filename-suffixes=_data_source_test.go ./...
59+
go tool tfproviderlint -R014=false -AT001.ignored-filename-suffixes=_data_source_test.go ./...
6060

6161
tfproviderdocs:
62-
go run github.com/bflad/tfproviderdocs check -provider-name scaleway -enable-contents-check
62+
go tool tfproviderdocs check -provider-name scaleway -enable-contents-check

docs/index.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ resource "scaleway_instance_ip" "public_ip_backup" {
6565
project_id = var.project_id
6666
}
6767
68-
resource "scaleway_instance_volume" "data" {
68+
resource "scaleway_block_volume" "data" {
6969
project_id = var.project_id
7070
size_in_gb = 30
71-
type = "l_ssd"
71+
iops = 5000
7272
}
7373
74-
resource "scaleway_instance_volume" "data_backup" {
74+
resource "scaleway_block_volume" "data_backup" {
7575
project_id = var.project_id
7676
size_in_gb = 10
77-
type = "l_ssd"
77+
iops = 5000
7878
}
7979
8080
resource "scaleway_instance_security_group" "www" {
@@ -108,10 +108,9 @@ resource "scaleway_instance_server" "web" {
108108
109109
ip_id = scaleway_instance_ip.public_ip.id
110110
111-
additional_volume_ids = [scaleway_instance_volume.data.id]
111+
additional_volume_ids = [scaleway_block_volume.data.id]
112112
113113
root_volume {
114-
# The local storage of a DEV1-L instance is 80 GB, subtract 30 GB from the additional l_ssd volume, then the root volume needs to be 50 GB.
115114
size_in_gb = 50
116115
}
117116

docs/resources/instance_server.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ resource "scaleway_instance_server" "web" {
2626
### With additional volumes and tags
2727

2828
```terraform
29-
resource "scaleway_instance_volume" "data" {
29+
resource "scaleway_block_volume" "data" {
3030
size_in_gb = 100
31-
type = "b_ssd"
31+
iops = 5000
3232
}
3333
3434
resource "scaleway_instance_server" "web" {
@@ -41,7 +41,7 @@ resource "scaleway_instance_server" "web" {
4141
delete_on_termination = false
4242
}
4343
44-
additional_volume_ids = [ scaleway_instance_volume.data.id ]
44+
additional_volume_ids = [ scaleway_block_volume.data.id ]
4545
}
4646
```
4747

@@ -137,7 +137,6 @@ resource "scaleway_instance_server" "image" {
137137
type = "PRO2-XXS"
138138
image = "ubuntu_jammy"
139139
root_volume {
140-
volume_type = "b_ssd"
141140
size_in_gb = 100
142141
}
143142
}
@@ -146,19 +145,20 @@ resource "scaleway_instance_server" "image" {
146145
#### From snapshot
147146

148147
```terraform
149-
data "scaleway_instance_snapshot" "snapshot" {
148+
data "scaleway_block_snapshot" "snapshot" {
150149
name = "my_snapshot"
151150
}
152151
153-
resource "scaleway_instance_volume" "from_snapshot" {
154-
from_snapshot_id = data.scaleway_instance_snapshot.snapshot.id
155-
type = "b_ssd"
152+
resource "scaleway_block_volume" "from_snapshot" {
153+
snapshot_id = data.scaleway_block_snapshot.snapshot.id
154+
iops = 5000
156155
}
157156
158157
resource "scaleway_instance_server" "from_snapshot" {
159158
type = "PRO2-XXS"
160159
root_volume {
161-
volume_id = scaleway_instance_volume.from_snapshot.id
160+
volume_id = scaleway_block_volume.from_snapshot.id
161+
volume_type = "sbs_volume"
162162
}
163163
}
164164
```

0 commit comments

Comments
 (0)