Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: vercel_project_domain does not expose verification info #199

Open
magzim21 opened this issue Aug 29, 2024 · 2 comments
Open

Feature: vercel_project_domain does not expose verification info #199

magzim21 opened this issue Aug 29, 2024 · 2 comments

Comments

@magzim21
Copy link

It is not possible to validate external domain vercel_project_domain with Terraform.

vercel_project_domain.landing_page
{
  "domain" = "test.mydomain.pro"
  "git_branch" = tostring(null)
  "id" = "test.mydomain.pro"
  "project_id" = "prj_<redacted>"
  "redirect" = tostring(null)
  "redirect_status_code" = tonumber(null)
  "team_id" = "team_<redacted>"
}

If user's domain is hosted in AWS Route53 and a user could have added verification records with Terraform if vercel_project_domain would have verification_record attribute.

@dglsparsons
Copy link
Collaborator

Hi, this is a great idea. Thanks for raising the ticket. I'll look into what complexity is involved in getting it added. 🙏

@nfm
Copy link

nfm commented Sep 25, 2024

I ran into this recently too.

In case it's interesting to anyone else, I tried working around this using the http provider, and making a manual API request to the Vercel REST API (https://api.vercel.com/v9/projects/ID/domains/DOMAIN_NAME?teamId=TEAM_ID). I could retrieve the verification record value and add a DNS record for it using Terraform. There was some complexity I didn't solve though; that REST API endpoint is stateful, so once the domain is verified it returns a different shape response, and getting Terraform to behave declaratively was tricky. I ended up bailing out.

It would be awesome if the provider supported this out of the box!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants