1. Packages
  2. Vercel Provider
Vercel v3.1.2 published on Tuesday, May 13, 2025 by Pulumiverse

Vercel Provider

vercel logo
Vercel v3.1.2 published on Tuesday, May 13, 2025 by Pulumiverse

    Installation

    The Vercel provider is available as a package in all Pulumi languages:

    Overview

    The Vercel provider is used to interact with resources supported by Vercel. The provider needs to be configured with the proper credentials before it can be used.

    Use the navigation to the left to read about the available resources.

    Example Usage

    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: nodejs
    config:
        vercel:apiToken:
            value: 'TODO: var.vercel_api_token'
        vercel:team:
            value: your_team_slug_or_id
    
    import * as pulumi from "@pulumi/pulumi";
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: python
    config:
        vercel:apiToken:
            value: 'TODO: var.vercel_api_token'
        vercel:team:
            value: your_team_slug_or_id
    
    import pulumi
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: dotnet
    config:
        vercel:apiToken:
            value: 'TODO: var.vercel_api_token'
        vercel:team:
            value: your_team_slug_or_id
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() =>
    {
    });
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: go
    config:
        vercel:apiToken:
            value: 'TODO: var.vercel_api_token'
        vercel:team:
            value: your_team_slug_or_id
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: yaml
    config:
        vercel:apiToken:
            value: 'TODO: var.vercel_api_token'
        vercel:team:
            value: your_team_slug_or_id
    
    {}
    
    # Pulumi.yaml provider configuration file
    name: configuration-example
    runtime: java
    config:
        vercel:apiToken:
            value: 'TODO: var.vercel_api_token'
        vercel:team:
            value: your_team_slug_or_id
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
        }
    }
    

    Configuration Reference

    • apiToken (String, Sensitive) The Vercel API Token to use. This can also be specified with the VERCEL_API_TOKEN shell environment variable. Tokens can be created from your Vercel settings.
    • team (String) The default Vercel Team to use when creating resources or reading functions. This can be provided as either a team slug, or team ID. The slug and ID are both available from the Team Settings page in the Vercel dashboard.
    vercel logo
    Vercel v3.1.2 published on Tuesday, May 13, 2025 by Pulumiverse