Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eonx-com/terraform-provider-vercel

Vercel Terraform Provider
https://github.com/eonx-com/terraform-provider-vercel

Last synced: 9 days ago
JSON representation

Vercel Terraform Provider

Awesome Lists containing this project

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](https://vercel.com/account/tokens)
2. Create a `vercel.tf` file with the following content.
- Replace `` with the token from step 1.
- Change the `git_repository` to whatever you want to deploy.

```tf
terraform {
required_providers {
vercel = {
source = "hashicorp.com/chronark/vercel"
version = "1.0.0"
}
}
}

provider "vercel" {
token = ""
}

resource "vercel_project" "my_project" {
name = "mercury-via-terraform"
git_repository {
type = "github"
repo = "chronark/mercury"
}
}
```

3. Run
```sh
terraform init
terraform apply
```

4. Check vercel's [dashboard](https://vercel.com/dashboard) to see your project.
5. Push to the default branch of your repository to create your first deployment.

## Documentation

Documentation can be found [here](https://registry.terraform.io/providers/chronark/vercel/latest/docs)

## Development Requirements

- [Terraform](https://www.terraform.io/downloads.html) >= 0.13.x
- [Go](https://golang.org/doc/install) >= 1.15