Description
Community Note
- Please vote on this issue by adding a π reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
Terraform v1.11.2
on linux_amd64
- provider registry.terraform.io/scaleway/scaleway v2.52.0
Affected Resource(s)
scaleway_instance_server
Terraform Configuration Files
data "scaleway_marketplace_image" "dev1_debian_fr-par" {
label = "debian_bookworm"
instance_type = "DEV1-M"
zone = "fr-par-1"
}
resource "scaleway_instance_server" "test" {
lifecycle {
# Don't reinstall on image upgrades
ignore_changes = [
image,
]
}
# Inventory
name = "test"
zone = local.zone
# Hardware
type = "DEV1-M"
# Storage
root_volume {
delete_on_termination = true
size_in_gb = 20 # Max allowed
volume_type = "sbs_volume"
}
additional_volume_ids = [
scaleway_block_volume.test-data.id
]
image = data.scaleway_marketplace_image.dev1_debian_fr-par.id
# Networking
enable_dynamic_ip = false
ip_ids = [
scaleway_instance_ip.test-v4.id,
scaleway_instance_ip.test-v6.id,
]
security_group_id = scaleway_instance_security_group.test.id
}
Debug Output
The relevant bit of log is:
{
"name":"test",
"dynamic_ip_required":false,
"commercial_type":"DEV1-M",
"image":"291b1402-9650-45a9-8928-295634438dff",
"volumes": {
"0":{"boot":false,"size":20000000000,"volume_type":"sbs_volume"},
"1":{"id":"c73da032-cbe8-4345-a83d-4392d2928ea1","volume_type":"sbs_volume"}
},
"public_ips":["XXXXXX-1325-XXXX-8b3f-XXXXXX","XXXXXX-7cb1-XXXX-bb12-XXXXXXXX"],
"boot_type":"local",
"project":"XXXXXX-46e1-XXXX-8dc1-XXXXXX"
}
{"message": "Cannot create a volume of type sbs_volume from a base of type unified", "type": "precondition_failed"}
Expected Behavior
It is possible to create an instance with a disk backed by an SBS volume.
This is perfectly fine when using the web console.
Actual Behavior
The "apply" step fails as described above.
Steps to Reproduce
terraform apply
Important Factoids
The documentation for scaleway_instance_server
states that root_volume.type
can be sbs_volume
, l_ssd
or b_ssd
.
However, b_ssd
is not accepted, and sbs_volume
does not work.