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
Description
In Resource: scaleway_instance_server, as far as I can see, it is not possible to specify the name of the root_volume
. This one will always be autogenerated based on the OS name (i.e. "Ubuntu 24.04 Noble Numbat_sbs_volume_0") which makes it impossible to enforce a strict naming convention for all volumes.
When creating an instance using the Scaleway web console, it is possible to change the name of the root_volume, so it should be possible to do it too using Terraform.
At the moment, when the "name" attribute is passed in Terraform, it fails at the terraform plan
stage with the error:
Error: Value for unconfigurable attribute Can't configure a value for "root_volume.0.name": its value will be decided automatically based on the result of applying this configuration.
New or Affected Resource(s)
- scaleway_instance_server
Potential Terraform Configuration
resource "scaleway_instance_server" "main_instance" {
type = var.instance_type
image = var.instance_image_name
name = var.instance_name
ip_id = scaleway_instance_ip.instance_public_ip.id
root_volume {
name = "vol-XXXXX-system"
volume_type = "sbs_volume"
size_in_gb = 10
sbs_iops = 5000
}
}