diff --git a/templates/cardano-parts-project/flake/opentofu/cluster.nix b/templates/cardano-parts-project/flake/opentofu/cluster.nix index ad3466c1..de356e00 100644 --- a/templates/cardano-parts-project/flake/opentofu/cluster.nix +++ b/templates/cardano-parts-project/flake/opentofu/cluster.nix @@ -590,7 +590,12 @@ in { // mapAttrs' ( nodeName: _: nameValuePair "${nodeName}-AAAA" { - count = "\${length(aws_instance.${nodeName}[0].ipv6_addresses) > 0 ? 1 : 0}"; + # When transitioning into ipv6 dual stack and some instances still have ipv4 only, include the following line. + # count = "\${length(aws_instance.${nodeName}[0].ipv6_addresses) > 0 ? 1 : 0}"; + # + # When migration to ipv4/ipv6 dual stack is complete, comment the above line and uncomment the following line. + count = "1"; + zone_id = "\${data.aws_route53_zone.selected.zone_id}"; name = "${nodeName}.\${data.aws_route53_zone.selected.name}"; type = "AAAA";