SyncVercelDestination

class SyncVercelDestination : KotlinCustomResource

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 }}",
});
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 }}")
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 }}",
});
});
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
})
}
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());
}
}
resources:
vercel:
type: vault:secrets:SyncVercelDestination
properties:
name: vercel-dest
accessToken: ${accessToken}
projectId: ${projectId}
deploymentEnvironments:
- development
- preview
- production
secretNameTemplate: vault_{{ .MountAccessor | lowercase }}_{{ .SecretPath | lowercase }}

Import

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

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

Properties

Link copied to clipboard
val accessToken: Output<String>

Vercel API access token with the permissions to manage environment variables.

Link copied to clipboard

Deployment environments where the environment variables are available. Accepts development, preview and production.

Link copied to clipboard
val granularity: Output<String>?

Determines what level of information is synced as a distinct resource at the destination. Supports secret-path and secret-key.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Unique name of the GitHub destination.

Link copied to clipboard
val namespace: Output<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.

Link copied to clipboard
val projectId: Output<String>

Project ID where to manage environment variables.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Template describing how to generate external secret names. Supports a subset of the Go Template syntax.

Link copied to clipboard
val teamId: Output<String>?

Team ID where to manage environment variables.

Link copied to clipboard
val type: Output<String>

The type of the secrets destination (vercel-project).

Link copied to clipboard
val urn: Output<String>