I did this as well. I have terraform interconnected so that I make TF entries in my Unifi repo which become DHCP reservations, and the AWS terraform makes DNS records for them.