1. Packages
  2. HashiCorp Vault Provider
  3. API Docs
  4. secrets
  5. SyncVercelDestination
HashiCorp Vault v6.7.0 published on Thursday, Apr 24, 2025 by Pulumi

vault.secrets.SyncVercelDestination

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";

const vercel = new vault.secrets.SyncVercelDestination("vercel", {
    name: "vercel-dest",
    accessToken: accessToken,
    projectId: projectId,
    deploymentEnvironments: [
        "development",
        "preview",
        "production",
    ],
    secretNameTemplate: "vault_{{ .MountAccessor | lowercase }}_{{ .SecretPath | lowercase }}",
});
Copy
import pulumi
import pulumi_vault as vault

vercel = vault.secrets.SyncVercelDestination("vercel",
    name="vercel-dest",
    access_token=access_token,
    project_id=project_id,
    deployment_environments=[
        "development",
        "preview",
        "production",
    ],
    secret_name_template="vault_{{ .MountAccessor | lowercase }}_{{ .SecretPath | lowercase }}")
Copy
package main

import (
	"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/secrets"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := secrets.NewSyncVercelDestination(ctx, "vercel", &secrets.SyncVercelDestinationArgs{
			Name:        pulumi.String("vercel-dest"),
			AccessToken: pulumi.Any(accessToken),
			ProjectId:   pulumi.Any(projectId),
			DeploymentEnvironments: pulumi.StringArray{
				pulumi.String("development"),
				pulumi.String("preview"),
				pulumi.String("production"),
			},
			SecretNameTemplate: pulumi.String("vault_{{ .MountAccessor | lowercase }}_{{ .SecretPath | lowercase }}"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;

return await Deployment.RunAsync(() => 
{
    var vercel = new Vault.Secrets.SyncVercelDestination("vercel", new()
    {
        Name = "vercel-dest",
        AccessToken = accessToken,
        ProjectId = projectId,
        DeploymentEnvironments = new[]
        {
            "development",
            "preview",
            "production",
        },
        SecretNameTemplate = "vault_{{ .MountAccessor | lowercase }}_{{ .SecretPath | lowercase }}",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.secrets.SyncVercelDestination;
import com.pulumi.vault.secrets.SyncVercelDestinationArgs;
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) {
        var vercel = new SyncVercelDestination("vercel", SyncVercelDestinationArgs.builder()
            .name("vercel-dest")
            .accessToken(accessToken)
            .projectId(projectId)
            .deploymentEnvironments(            
                "development",
                "preview",
                "production")
            .secretNameTemplate("vault_{{ .MountAccessor | lowercase }}_{{ .SecretPath | lowercase }}")
            .build());

    }
}
Copy
resources:
  vercel:
    type: vault:secrets:SyncVercelDestination
    properties:
      name: vercel-dest
      accessToken: ${accessToken}
      projectId: ${projectId}
      deploymentEnvironments:
        - development
        - preview
        - production
      secretNameTemplate: vault_{{ .MountAccessor | lowercase }}_{{ .SecretPath | lowercase }}
Copy

Create SyncVercelDestination Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SyncVercelDestination(name: string, args: SyncVercelDestinationArgs, opts?: CustomResourceOptions);
@overload
def SyncVercelDestination(resource_name: str,
                          args: SyncVercelDestinationArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def SyncVercelDestination(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          access_token: Optional[str] = None,
                          deployment_environments: Optional[Sequence[str]] = None,
                          project_id: Optional[str] = None,
                          granularity: Optional[str] = None,
                          name: Optional[str] = None,
                          namespace: Optional[str] = None,
                          secret_name_template: Optional[str] = None,
                          team_id: Optional[str] = None)
func NewSyncVercelDestination(ctx *Context, name string, args SyncVercelDestinationArgs, opts ...ResourceOption) (*SyncVercelDestination, error)
public SyncVercelDestination(string name, SyncVercelDestinationArgs args, CustomResourceOptions? opts = null)
public SyncVercelDestination(String name, SyncVercelDestinationArgs args)
public SyncVercelDestination(String name, SyncVercelDestinationArgs args, CustomResourceOptions options)
type: vault:secrets:SyncVercelDestination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SyncVercelDestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SyncVercelDestinationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SyncVercelDestinationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SyncVercelDestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SyncVercelDestinationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var syncVercelDestinationResource = new Vault.Secrets.SyncVercelDestination("syncVercelDestinationResource", new()
{
    AccessToken = "string",
    DeploymentEnvironments = new[]
    {
        "string",
    },
    ProjectId = "string",
    Granularity = "string",
    Name = "string",
    Namespace = "string",
    SecretNameTemplate = "string",
    TeamId = "string",
});
Copy
example, err := secrets.NewSyncVercelDestination(ctx, "syncVercelDestinationResource", &secrets.SyncVercelDestinationArgs{
	AccessToken: pulumi.String("string"),
	DeploymentEnvironments: pulumi.StringArray{
		pulumi.String("string"),
	},
	ProjectId:          pulumi.String("string"),
	Granularity:        pulumi.String("string"),
	Name:               pulumi.String("string"),
	Namespace:          pulumi.String("string"),
	SecretNameTemplate: pulumi.String("string"),
	TeamId:             pulumi.String("string"),
})
Copy
var syncVercelDestinationResource = new SyncVercelDestination("syncVercelDestinationResource", SyncVercelDestinationArgs.builder()
    .accessToken("string")
    .deploymentEnvironments("string")
    .projectId("string")
    .granularity("string")
    .name("string")
    .namespace("string")
    .secretNameTemplate("string")
    .teamId("string")
    .build());
Copy
sync_vercel_destination_resource = vault.secrets.SyncVercelDestination("syncVercelDestinationResource",
    access_token="string",
    deployment_environments=["string"],
    project_id="string",
    granularity="string",
    name="string",
    namespace="string",
    secret_name_template="string",
    team_id="string")
Copy
const syncVercelDestinationResource = new vault.secrets.SyncVercelDestination("syncVercelDestinationResource", {
    accessToken: "string",
    deploymentEnvironments: ["string"],
    projectId: "string",
    granularity: "string",
    name: "string",
    namespace: "string",
    secretNameTemplate: "string",
    teamId: "string",
});
Copy
type: vault:secrets:SyncVercelDestination
properties:
    accessToken: string
    deploymentEnvironments:
        - string
    granularity: string
    name: string
    namespace: string
    projectId: string
    secretNameTemplate: string
    teamId: string
Copy

SyncVercelDestination Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SyncVercelDestination resource accepts the following input properties:

AccessToken This property is required. string
Vercel API access token with the permissions to manage environment variables.
DeploymentEnvironments This property is required. List<string>
Deployment environments where the environment variables are available. Accepts development, preview and production.
ProjectId
This property is required.
Changes to this property will trigger replacement.
string
Project ID where to manage environment variables.
Granularity string
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
Name Changes to this property will trigger replacement. string
Unique name of the GitHub destination.
Namespace Changes to this property will trigger replacement. string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
SecretNameTemplate string
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
TeamId string
Team ID where to manage environment variables.
AccessToken This property is required. string
Vercel API access token with the permissions to manage environment variables.
DeploymentEnvironments This property is required. []string
Deployment environments where the environment variables are available. Accepts development, preview and production.
ProjectId
This property is required.
Changes to this property will trigger replacement.
string
Project ID where to manage environment variables.
Granularity string
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
Name Changes to this property will trigger replacement. string
Unique name of the GitHub destination.
Namespace Changes to this property will trigger replacement. string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
SecretNameTemplate string
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
TeamId string
Team ID where to manage environment variables.
accessToken This property is required. String
Vercel API access token with the permissions to manage environment variables.
deploymentEnvironments This property is required. List<String>
Deployment environments where the environment variables are available. Accepts development, preview and production.
projectId
This property is required.
Changes to this property will trigger replacement.
String
Project ID where to manage environment variables.
granularity String
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
name Changes to this property will trigger replacement. String
Unique name of the GitHub destination.
namespace Changes to this property will trigger replacement. String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
secretNameTemplate String
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
teamId String
Team ID where to manage environment variables.
accessToken This property is required. string
Vercel API access token with the permissions to manage environment variables.
deploymentEnvironments This property is required. string[]
Deployment environments where the environment variables are available. Accepts development, preview and production.
projectId
This property is required.
Changes to this property will trigger replacement.
string
Project ID where to manage environment variables.
granularity string
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
name Changes to this property will trigger replacement. string
Unique name of the GitHub destination.
namespace Changes to this property will trigger replacement. string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
secretNameTemplate string
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
teamId string
Team ID where to manage environment variables.
access_token This property is required. str
Vercel API access token with the permissions to manage environment variables.
deployment_environments This property is required. Sequence[str]
Deployment environments where the environment variables are available. Accepts development, preview and production.
project_id
This property is required.
Changes to this property will trigger replacement.
str
Project ID where to manage environment variables.
granularity str
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
name Changes to this property will trigger replacement. str
Unique name of the GitHub destination.
namespace Changes to this property will trigger replacement. str
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
secret_name_template str
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
team_id str
Team ID where to manage environment variables.
accessToken This property is required. String
Vercel API access token with the permissions to manage environment variables.
deploymentEnvironments This property is required. List<String>
Deployment environments where the environment variables are available. Accepts development, preview and production.
projectId
This property is required.
Changes to this property will trigger replacement.
String
Project ID where to manage environment variables.
granularity String
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
name Changes to this property will trigger replacement. String
Unique name of the GitHub destination.
namespace Changes to this property will trigger replacement. String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
secretNameTemplate String
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
teamId String
Team ID where to manage environment variables.

Outputs

All input properties are implicitly available as output properties. Additionally, the SyncVercelDestination resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Type string
The type of the secrets destination (vercel-project).
Id string
The provider-assigned unique ID for this managed resource.
Type string
The type of the secrets destination (vercel-project).
id String
The provider-assigned unique ID for this managed resource.
type String
The type of the secrets destination (vercel-project).
id string
The provider-assigned unique ID for this managed resource.
type string
The type of the secrets destination (vercel-project).
id str
The provider-assigned unique ID for this managed resource.
type str
The type of the secrets destination (vercel-project).
id String
The provider-assigned unique ID for this managed resource.
type String
The type of the secrets destination (vercel-project).

Look up Existing SyncVercelDestination Resource

Get an existing SyncVercelDestination resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SyncVercelDestinationState, opts?: CustomResourceOptions): SyncVercelDestination
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_token: Optional[str] = None,
        deployment_environments: Optional[Sequence[str]] = None,
        granularity: Optional[str] = None,
        name: Optional[str] = None,
        namespace: Optional[str] = None,
        project_id: Optional[str] = None,
        secret_name_template: Optional[str] = None,
        team_id: Optional[str] = None,
        type: Optional[str] = None) -> SyncVercelDestination
func GetSyncVercelDestination(ctx *Context, name string, id IDInput, state *SyncVercelDestinationState, opts ...ResourceOption) (*SyncVercelDestination, error)
public static SyncVercelDestination Get(string name, Input<string> id, SyncVercelDestinationState? state, CustomResourceOptions? opts = null)
public static SyncVercelDestination get(String name, Output<String> id, SyncVercelDestinationState state, CustomResourceOptions options)
resources:  _:    type: vault:secrets:SyncVercelDestination    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccessToken string
Vercel API access token with the permissions to manage environment variables.
DeploymentEnvironments List<string>
Deployment environments where the environment variables are available. Accepts development, preview and production.
Granularity string
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
Name Changes to this property will trigger replacement. string
Unique name of the GitHub destination.
Namespace Changes to this property will trigger replacement. string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
ProjectId Changes to this property will trigger replacement. string
Project ID where to manage environment variables.
SecretNameTemplate string
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
TeamId string
Team ID where to manage environment variables.
Type Changes to this property will trigger replacement. string
The type of the secrets destination (vercel-project).
AccessToken string
Vercel API access token with the permissions to manage environment variables.
DeploymentEnvironments []string
Deployment environments where the environment variables are available. Accepts development, preview and production.
Granularity string
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
Name Changes to this property will trigger replacement. string
Unique name of the GitHub destination.
Namespace Changes to this property will trigger replacement. string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
ProjectId Changes to this property will trigger replacement. string
Project ID where to manage environment variables.
SecretNameTemplate string
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
TeamId string
Team ID where to manage environment variables.
Type Changes to this property will trigger replacement. string
The type of the secrets destination (vercel-project).
accessToken String
Vercel API access token with the permissions to manage environment variables.
deploymentEnvironments List<String>
Deployment environments where the environment variables are available. Accepts development, preview and production.
granularity String
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
name Changes to this property will trigger replacement. String
Unique name of the GitHub destination.
namespace Changes to this property will trigger replacement. String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
projectId Changes to this property will trigger replacement. String
Project ID where to manage environment variables.
secretNameTemplate String
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
teamId String
Team ID where to manage environment variables.
type Changes to this property will trigger replacement. String
The type of the secrets destination (vercel-project).
accessToken string
Vercel API access token with the permissions to manage environment variables.
deploymentEnvironments string[]
Deployment environments where the environment variables are available. Accepts development, preview and production.
granularity string
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
name Changes to this property will trigger replacement. string
Unique name of the GitHub destination.
namespace Changes to this property will trigger replacement. string
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
projectId Changes to this property will trigger replacement. string
Project ID where to manage environment variables.
secretNameTemplate string
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
teamId string
Team ID where to manage environment variables.
type Changes to this property will trigger replacement. string
The type of the secrets destination (vercel-project).
access_token str
Vercel API access token with the permissions to manage environment variables.
deployment_environments Sequence[str]
Deployment environments where the environment variables are available. Accepts development, preview and production.
granularity str
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
name Changes to this property will trigger replacement. str
Unique name of the GitHub destination.
namespace Changes to this property will trigger replacement. str
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
project_id Changes to this property will trigger replacement. str
Project ID where to manage environment variables.
secret_name_template str
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
team_id str
Team ID where to manage environment variables.
type Changes to this property will trigger replacement. str
The type of the secrets destination (vercel-project).
accessToken String
Vercel API access token with the permissions to manage environment variables.
deploymentEnvironments List<String>
Deployment environments where the environment variables are available. Accepts development, preview and production.
granularity String
Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.
name Changes to this property will trigger replacement. String
Unique name of the GitHub destination.
namespace Changes to this property will trigger replacement. String
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace.
projectId Changes to this property will trigger replacement. String
Project ID where to manage environment variables.
secretNameTemplate String
Template describing how to generate external secret names. Supports a subset of the Go Template syntax.
teamId String
Team ID where to manage environment variables.
type Changes to this property will trigger replacement. String
The type of the secrets destination (vercel-project).

Import

GitHub Secrets sync destinations can be imported using the name, e.g.

$ pulumi import vault:secrets/syncVercelDestination:SyncVercelDestination vercel vercel-dest
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Vault pulumi/pulumi-vault
License
Apache-2.0
Notes
This Pulumi package is based on the vault Terraform Provider.