We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4950ed7 commit b96bf5eCopy full SHA for b96bf5e
main.tf
@@ -23,10 +23,10 @@ resource "scaleway_instance_server" "this" {
23
enable_ipv6 = var.routed_ip_enabled ? null : var.enable_ipv6
24
routed_ip_enabled = var.routed_ip_enabled
25
26
- ip_ids = tolist([
+ ip_ids = compact(tolist([
27
var.enable_public_ipv4 ? scaleway_instance_ip.public_ipv4[0].id : null,
28
var.enable_ipv6 && var.routed_ip_enabled ? scaleway_instance_ip.ipv6[0].id : null,
29
- ])
+ ]))
30
31
dynamic "private_network" {
32
for_each = toset(var.private_networks)
0 commit comments