Terraform Vercel


Download Terraform
Extract zip file
→ run terraform.exe
check terraform version
terraform --version

Download terraform code from here

Go to Vercel dashboard → Account Settings
image.png

Go to Tokens
image.png

Create Token
name → TP
Scope → on which Account you have to give access
Expiry → No Expiry
image.png
image.png
→copy vercel_api_token

Go to Your GitHub repo ( github_repo env)
copy → Github_owner/Repo_name
image.png


→Create terraform.tfvars file in folder
project_name → Vercel Project Name
vercel_api_token → we above created vercel_api_token

→ add env variables like below
vercel_api_token = "vercel_api_token"
github_repo = "GitHub_owner/repo_name"
project_name = "angular"

→ Save the file
→ Open Terminal in that Folder
terraform init

terraform plan

terraform apply

in terminal
it print out vercel deployment URL
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.