Hello community!
I created a custom domain (staging) in a vercel project and gave it a custom domain name (abc.staging.mydomain.com). I’ve done this via terraform using the vercel provider. I am hosting DNS on another provider; not Vercel.
When I created the hostname (using the vercel_project_domain resource), there was a CNAME record value which I was only able to find on the dashboard (I am looking for it now, but cannot seem to find it again - perhaps it’s no longer available once everything gets configured properly?). Anyway, I was trying to find the value of that CNAME as an attribute of the vercel_project or vercel_project_domain resource in terraform so I could create the CNAME record in DNS with my other provider in the same terraform module. Unfortunately, I was forced to fetch the CNAME value from the dashboard and and use it as an input variable for terraform which means there’s manual intervention involved, several terraform applies and most important, I now store the value but it really isn’t the source of truth.
Is there any way to fetch that value from a terraform resource? This is the DNS data used in the CNAME record for which abc.staging.mydomain.com would point to.
Thank you
JJ