-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Hi!
(I’m unsure if raising an issue here is the correct approach; if it isn’t, could someone advise on the appropriate course of action?)
I am able to import existing Vercel projects that are linked to GitHub repositories using terraform import
without issues.
Trying to create a new vercel_project
resource for a GitHub repository that has not been linked to Vercel however failed with this error:
Could not create project, unexpected error: bad_request - Failed to link
<owner>/<repo>
. You need to add a Login Connection to your GitHub account first.
I think I understand this was because the Vercel user account that was used to generate the Vercel API token used by Terraform was not linked to GitHub. Since linking this user account things work, but…
The GitHub organization where this was happening already had the Vercel GitHub application installed with Repository Access to All repositories. I kind of expected this to suffice.
Another issue might be that the Vercel API token is currently tied to a specific user account, which becomes problematic when that user leaves the organization. Is it possible to eliminate the reliance on a single user for token generation? Alternatively, could the process be entirely managed through the Vercel GitHub application already installed for the organization?
Thanks!