Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

A terraform provider for vercel's hosting platform

License

Notifications You must be signed in to change notification settings

supergrain/terraform-provider-vercel

 
 

Repository files navigation

Terraform logo

Terraform Provider for Vercel

Configure vercel resources such as projects, deployments and secrets as code with terraform.

Features

This provider has not reached feauture parity with the vercel api yet. I am adding new features as I need them. Please create an issue if you require a certain feature, I will work on them asap.

Available features can be found here.

Quickstart

  1. Create a token here
  2. Create a vercel.tf file with the following content.
    • Replace <YOUR_TOKEN> with the token from step 1. Alternatively you can set the VERCEL_TOKEN environment variable
    • Change the git_repository to whatever you want to deploy.
terraform {
  required_providers {
    vercel = {
      source  = "registry.terraform.io/chronark/vercel"
      version = ">=0.10.3"
    }
  }
}

provider "vercel" {
  token = "<YOUR_TOKEN>"
}

resource "vercel_project" "my_project" {
  name = "mercury-via-terraform"
  git_repository {
    type = "github"
    repo = "chronark/mercury"
  }
}
  1. Run
terraform init
terraform apply
  1. Check vercel's dashboard to see your project.
  2. Push to the default branch of your repository to create your first deployment.

Documentation

Documentation can be found here

Development Requirements

About

A terraform provider for vercel's hosting platform

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.1%
  • Makefile 0.9%