Skip to content

Commit 96b51b1

Browse files
authored
Merge branch 'master' into feat/migrate_webhosting_to_v1
2 parents 54fac7c + 22e5662 commit 96b51b1

File tree

4 files changed

+40
-16
lines changed

4 files changed

+40
-16
lines changed

.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.23.5
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 }}

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
```

internal/services/applesilicon/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ func ResourceAppleSiliconServerDelete(ctx context.Context, d *schema.ResourceDat
317317
ServerID: ID,
318318
}, scw.WithContext(ctx))
319319

320-
if err != nil && !httperrors.Is404(err) {
320+
if err != nil && !httperrors.Is403(err) {
321321
return diag.FromErr(err)
322322
}
323323

0 commit comments

Comments
 (0)