Skip to content

docs: remove mention of b_ssd and instance_volume when not recommended #2942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ resource "scaleway_instance_ip" "public_ip_backup" {
project_id = var.project_id
}

resource "scaleway_instance_volume" "data" {
resource "scaleway_block_volume" "data" {
project_id = var.project_id
size_in_gb = 30
type = "l_ssd"
iops = 5000
}

resource "scaleway_instance_volume" "data_backup" {
resource "scaleway_block_volume" "data_backup" {
project_id = var.project_id
size_in_gb = 10
type = "l_ssd"
iops = 5000
}

resource "scaleway_instance_security_group" "www" {
Expand Down Expand Up @@ -108,10 +108,9 @@ resource "scaleway_instance_server" "web" {

ip_id = scaleway_instance_ip.public_ip.id

additional_volume_ids = [scaleway_instance_volume.data.id]
additional_volume_ids = [scaleway_block_volume.data.id]

root_volume {
# 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.
size_in_gb = 50
}

Expand Down
18 changes: 9 additions & 9 deletions docs/resources/instance_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ resource "scaleway_instance_server" "web" {
### With additional volumes and tags

```terraform
resource "scaleway_instance_volume" "data" {
resource "scaleway_block_volume" "data" {
size_in_gb = 100
type = "b_ssd"
iops = 5000
}

resource "scaleway_instance_server" "web" {
Expand All @@ -41,7 +41,7 @@ resource "scaleway_instance_server" "web" {
delete_on_termination = false
}

additional_volume_ids = [ scaleway_instance_volume.data.id ]
additional_volume_ids = [ scaleway_block_volume.data.id ]
}
```

Expand Down Expand Up @@ -137,7 +137,6 @@ resource "scaleway_instance_server" "image" {
type = "PRO2-XXS"
image = "ubuntu_jammy"
root_volume {
volume_type = "b_ssd"
size_in_gb = 100
}
}
Expand All @@ -146,19 +145,20 @@ resource "scaleway_instance_server" "image" {
#### From snapshot

```terraform
data "scaleway_instance_snapshot" "snapshot" {
data "scaleway_block_snapshot" "snapshot" {
name = "my_snapshot"
}

resource "scaleway_instance_volume" "from_snapshot" {
from_snapshot_id = data.scaleway_instance_snapshot.snapshot.id
type = "b_ssd"
resource "scaleway_block_volume" "from_snapshot" {
snapshot_id = data.scaleway_block_snapshot.snapshot.id
iops = 5000
}

resource "scaleway_instance_server" "from_snapshot" {
type = "PRO2-XXS"
root_volume {
volume_id = scaleway_instance_volume.from_snapshot.id
volume_id = scaleway_block_volume.from_snapshot.id
volume_type = "sbs_volume"
}
}
```
Expand Down
Loading