I'm running into problems with DNS and ipv6 addresses with Terraform. I'll get an address like 2345:0425:2CA1::0567:5673:23b5 from Digital Ocean, Vultr, etc. That gets sent that to Constellix for the initial DNS record creation. However, on ongoing runs, Constellix returns it without leading zeros like this: 2345:425:2CA1::567:5673:23b5. That triggers Terraform to think it needs to be changed on every sync.
I can hardcode the ipv6 addresses in the Terraform file after initial creation but that isn't an ideal solution.
Any suggested fixes are appreciated.
Try formatting to Hexadecimal
https://www.terraform.io/language/functions/format#verbs