This is a Terraform provider which is used to configure Vercel.
Enter the provider directory and run the following command:
make install
The provider requires the following environment variables:
Variable | Required | Description |
---|---|---|
VERCEL_TOKEN | ✅ | A valid Vercel API token |
VERCEL_TEAM_ID | - | A Vercel Team ID for working with a team rather than the token's user |
See the example directory for an example usage.
Any IDs of existing resources required for importing with the following commands can be found using the Vercel API
Use the following format to import a Vercel project:
terraform import vercel_project.test_project <vercel-project-name>
Use the following format to import a domain:
terraform import vercel_project_domain.test_domain <vercel-project-name>:<domain-name>
Use the following format to import an env:
terraform import vercel_project_env.test_env <vercel-project-name>:<env-id>