-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Labels
instanceInstance issues, bugs and feature requestsInstance issues, bugs and feature requests
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.9.6
on linux_amd64
+ provider registry.terraform.io/hashicorp/archive v2.6.0
+ provider registry.terraform.io/hashicorp/local v2.5.2
+ provider registry.terraform.io/scaleway/scaleway v2.47.0
Affected Resource(s)
- scaleway_instance_server
Terraform Configuration Files
resource "scaleway_instance_server" "worker" {
for_each = var.worker_servers
type = each.value.instance_type
image = each.value.image
ip_id = scaleway_instance_ip.public_ip[each.key].id
name = each.key
tags = each.value.tags
root_volume {
volume_type = each.value.volume_type
size_in_gb = each.value.volume_size
}
private_network {
pn_id = scaleway_vpc_private_network.vpc.id
}
}Expected Behavior
I expect it to replace the volume size with the new one
Actual Behavior
When I do
terraform plan -target=scaleway_instance_server
it show me this:
Terraform will perform the following actions:
# scaleway_instance_server.worker["xxxxxx"] must be replaced
-/+ resource "scaleway_instance_server" "worker" {
- additional_volume_ids = [] -> null
+ bootscript_id = (known after apply)
+ cloud_init = (known after apply)
- enable_ipv6 = false -> null
~ id = "fr-par-1/xxxx" -> (known after apply)
- ip_ids = [] -> null
+ ipv6_address = (known after apply)
+ ipv6_gateway = (known after apply)
~ ipv6_prefix_length = 0 -> (known after apply)
name = "xxxx"
~ organization_id = "xxxxxx" -> (known after apply)
+ placement_group_policy_respected = (known after apply)
+ private_ip = (known after apply)
~ project_id = "xxxx" -> (known after apply)
~ public_ip = "xxxxx" -> (known after apply)
~ routed_ip_enabled = true -> (known after apply)
~ security_group_id = "xxxxx" -> (known after apply)
tags = [
"worker",
"work_hours_only",
]
~ user_data = {
- "ssh-host-fingerprints" = xxxxx
} -> (known after apply)
~ zone = "xxxxx" -> (known after apply)
# (7 unchanged attributes hidden)
~ private_network {
~ mac_address = "xxxxx" -> (known after apply)
~ pnic_id = "xxxx" -> (known after apply)
~ status = "available" -> (known after apply)
~ zone = "xxxx" -> (known after apply)
# (1 unchanged attribute hidden)
}
~ public_ips (known after apply)
- public_ips {
- address = "xxxxxxxxx" -> null
- id = "xxxxx" -> null
}
~ root_volume {
~ name = "Ubuntu 24.04 Noble Numbat" -> (known after apply)
~ sbs_iops = 0 -> (known after apply)
~ size_in_gb = 20 -> 50 # forces replacement
~ volume_id = "xxxxxxxxx" -> (known after apply)
# (3 unchanged attributes hidden)
}
}
Metadata
Metadata
Assignees
Labels
instanceInstance issues, bugs and feature requestsInstance issues, bugs and feature requests