Skip to content

Commit

Permalink
tmpl tf: modify tofu code for ip dual stack migration completion
Browse files Browse the repository at this point in the history
  • Loading branch information
johnalotoski committed Jan 16, 2025
1 parent 263fa3d commit cf39652
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/cardano-parts-project/flake/opentofu/cluster.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit cf39652

Please sign in to comment.