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 4d41b66 commit d9289e1Copy full SHA for d9289e1
ipv4.tf
@@ -48,7 +48,7 @@ data "scaleway_ipam_ip" "private_ipv4" {
48
}
49
50
resource "scaleway_domain_record" "ipv4" {
51
- count = var.enable_public_ipv4 && (var.domainname != null) ? 1 : length(var.private_networks)
+ count = var.enable_public_ipv4 ? (var.domainname != null ? 1 : length(var.private_networks)) : 0
52
53
data = var.enable_public_ipv4 ? scaleway_instance_ip.public_ipv4[count.index].address : data.scaleway_ipam_ip.private_ipv4[count.index].address
54
dns_zone = var.domainname
0 commit comments