terraform-provider-vercel

command module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

README

Terraform logo

Terraform Provider for Vercel

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

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.
    • Change the git_repository to whatever you want to deploy.
terraform {
  required_providers {
    vercel = {
      source  = "hashicorp.com/chronark/vercel"
      version = "1.0.0"
    }
  }
}

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL