published on Sunday, Nov 15, 2026 by Pulumiverse
published on Sunday, Nov 15, 2026 by Pulumiverse
Provides a resource for managing a number of Project Environment Variables.
Removing entries from the
variablesattribute deletes the corresponding Environment Variables from the Vercel Project. Destroying this resource deletes all Environment Variables it manages. Environment Variables not managed by this resource are left unchanged.
This resource defines multiple Environment Variables on a Vercel Project.
For more detailed information, please see the Vercel documentation.
Terraform currently provides this Project Environment Variables resource (multiple Environment Variables), a single Project Environment Variable Resource, and a Project resource with Environment Variables defined in-line via the
environmentfield. At this time you cannot use a Vercel Project resource with in-lineenvironmentin conjunction with anyvercel.ProjectEnvironmentVariablesorvercel.ProjectEnvironmentVariableresources. Doing so will cause a conflict of settings and will overwrite Environment Variables.
Note: Starting in provider version
4.8.0, environment variables require an explicitsensitivevalue. Secrets (sensitive = true) are supported in all target environments, including Development. Team environment variable policies are enforced by the Vercel API at apply time.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vercel from "@pulumiverse/vercel";
const example = new vercel.Project("example", {
name: "example-project",
gitRepository: {
type: "github",
repo: "vercel/some-repo",
},
});
const exampleProjectEnvironmentVariables = new vercel.ProjectEnvironmentVariables("example", {
projectId: example.id,
variables: [
{
key: "SOME_VARIABLE",
value: "some_value",
target: [
"production",
"preview",
],
sensitive: true,
},
{
key: "ANOTHER_VARIABLE",
value: "another_value",
gitBranch: "staging",
target: ["preview"],
sensitive: true,
},
{
key: "DEVELOPMENT_VARIABLE",
value: "development_value",
target: ["development"],
sensitive: false,
},
],
});
import pulumi
import pulumiverse_vercel as vercel
example = vercel.Project("example",
name="example-project",
git_repository={
"type": "github",
"repo": "vercel/some-repo",
})
example_project_environment_variables = vercel.ProjectEnvironmentVariables("example",
project_id=example.id,
variables=[
{
"key": "SOME_VARIABLE",
"value": "some_value",
"target": [
"production",
"preview",
],
"sensitive": True,
},
{
"key": "ANOTHER_VARIABLE",
"value": "another_value",
"git_branch": "staging",
"target": ["preview"],
"sensitive": True,
},
{
"key": "DEVELOPMENT_VARIABLE",
"value": "development_value",
"target": ["development"],
"sensitive": False,
},
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vercel/sdk/v5/go/vercel"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := vercel.NewProject(ctx, "example", &vercel.ProjectArgs{
Name: pulumi.String("example-project"),
GitRepository: &vercel.ProjectGitRepositoryArgs{
Type: pulumi.String("github"),
Repo: pulumi.String("vercel/some-repo"),
},
})
if err != nil {
return err
}
_, err = vercel.NewProjectEnvironmentVariables(ctx, "example", &vercel.ProjectEnvironmentVariablesArgs{
ProjectId: example.ID(),
Variables: vercel.ProjectEnvironmentVariablesVariableArray{
&vercel.ProjectEnvironmentVariablesVariableArgs{
Key: pulumi.String("SOME_VARIABLE"),
Value: pulumi.String("some_value"),
Target: []string{
"production",
"preview",
},
Sensitive: pulumi.Bool(true),
},
&vercel.ProjectEnvironmentVariablesVariableArgs{
Key: pulumi.String("ANOTHER_VARIABLE"),
Value: pulumi.String("another_value"),
GitBranch: pulumi.String("staging"),
Target: []string{
"preview",
},
Sensitive: pulumi.Bool(true),
},
&vercel.ProjectEnvironmentVariablesVariableArgs{
Key: pulumi.String("DEVELOPMENT_VARIABLE"),
Value: pulumi.String("development_value"),
Target: []string{
"development",
},
Sensitive: pulumi.Bool(false),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vercel = Pulumiverse.Vercel;
return await Deployment.RunAsync(() =>
{
var example = new Vercel.Project("example", new()
{
Name = "example-project",
GitRepository = new Vercel.Inputs.ProjectGitRepositoryArgs
{
Type = "github",
Repo = "vercel/some-repo",
},
});
var exampleProjectEnvironmentVariables = new Vercel.ProjectEnvironmentVariables("example", new()
{
ProjectId = example.Id,
Variables = new[]
{
new Vercel.Inputs.ProjectEnvironmentVariablesVariableArgs
{
Key = "SOME_VARIABLE",
Value = "some_value",
Target = new[]
{
"production",
"preview",
},
Sensitive = true,
},
new Vercel.Inputs.ProjectEnvironmentVariablesVariableArgs
{
Key = "ANOTHER_VARIABLE",
Value = "another_value",
GitBranch = "staging",
Target = new[]
{
"preview",
},
Sensitive = true,
},
new Vercel.Inputs.ProjectEnvironmentVariablesVariableArgs
{
Key = "DEVELOPMENT_VARIABLE",
Value = "development_value",
Target = new[]
{
"development",
},
Sensitive = false,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumiverse.vercel.Project;
import com.pulumiverse.vercel.ProjectArgs;
import com.pulumi.vercel.inputs.ProjectGitRepositoryArgs;
import com.pulumiverse.vercel.ProjectEnvironmentVariables;
import com.pulumiverse.vercel.ProjectEnvironmentVariablesArgs;
import com.pulumi.vercel.inputs.ProjectEnvironmentVariablesVariableArgs;
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 example = new Project("example", ProjectArgs.builder()
.name("example-project")
.gitRepository(ProjectGitRepositoryArgs.builder()
.type("github")
.repo("vercel/some-repo")
.build())
.build());
var exampleProjectEnvironmentVariables = new ProjectEnvironmentVariables("exampleProjectEnvironmentVariables", ProjectEnvironmentVariablesArgs.builder()
.projectId(example.id())
.variables(
ProjectEnvironmentVariablesVariableArgs.builder()
.key("SOME_VARIABLE")
.value("some_value")
.target(List.of(
"production",
"preview"))
.sensitive(true)
.build(),
ProjectEnvironmentVariablesVariableArgs.builder()
.key("ANOTHER_VARIABLE")
.value("another_value")
.gitBranch("staging")
.target(List.of("preview"))
.sensitive(true)
.build(),
ProjectEnvironmentVariablesVariableArgs.builder()
.key("DEVELOPMENT_VARIABLE")
.value("development_value")
.target(List.of("development"))
.sensitive(false)
.build())
.build());
}
}
resources:
example:
type: vercel:Project
properties:
name: example-project
gitRepository:
type: github
repo: vercel/some-repo
exampleProjectEnvironmentVariables:
type: vercel:ProjectEnvironmentVariables
name: example
properties:
projectId: ${example.id}
variables:
- key: SOME_VARIABLE
value: some_value
target:
- production
- preview
sensitive: true
- key: ANOTHER_VARIABLE
value: another_value
gitBranch: staging
target:
- preview
sensitive: true
- key: DEVELOPMENT_VARIABLE
value: development_value
target:
- development
sensitive: false
Example coming soon!
Create ProjectEnvironmentVariables Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectEnvironmentVariables(name: string, args: ProjectEnvironmentVariablesArgs, opts?: CustomResourceOptions);@overload
def ProjectEnvironmentVariables(resource_name: str,
args: ProjectEnvironmentVariablesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectEnvironmentVariables(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
variables: Optional[Sequence[ProjectEnvironmentVariablesVariableArgs]] = None,
team_id: Optional[str] = None)func NewProjectEnvironmentVariables(ctx *Context, name string, args ProjectEnvironmentVariablesArgs, opts ...ResourceOption) (*ProjectEnvironmentVariables, error)public ProjectEnvironmentVariables(string name, ProjectEnvironmentVariablesArgs args, CustomResourceOptions? opts = null)
public ProjectEnvironmentVariables(String name, ProjectEnvironmentVariablesArgs args)
public ProjectEnvironmentVariables(String name, ProjectEnvironmentVariablesArgs args, CustomResourceOptions options)
type: vercel:ProjectEnvironmentVariables
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "vercel_project_environment_variables" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProjectEnvironmentVariablesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProjectEnvironmentVariablesArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectEnvironmentVariablesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectEnvironmentVariablesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectEnvironmentVariablesArgs
- 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 projectEnvironmentVariablesResource = new Vercel.ProjectEnvironmentVariables("projectEnvironmentVariablesResource", new()
{
ProjectId = "string",
Variables = new[]
{
new Vercel.Inputs.ProjectEnvironmentVariablesVariableArgs
{
Key = "string",
Sensitive = false,
Value = "string",
Comment = "string",
CustomEnvironmentIds = new[]
{
"string",
},
GitBranch = "string",
Id = "string",
Targets = new[]
{
"string",
},
Visibility = "string",
},
},
TeamId = "string",
});
example, err := vercel.NewProjectEnvironmentVariables(ctx, "projectEnvironmentVariablesResource", &vercel.ProjectEnvironmentVariablesArgs{
ProjectId: pulumi.String("string"),
Variables: vercel.ProjectEnvironmentVariablesVariableArray{
&vercel.ProjectEnvironmentVariablesVariableArgs{
Key: pulumi.String("string"),
Sensitive: pulumi.Bool(false),
Value: pulumi.String("string"),
Comment: pulumi.String("string"),
CustomEnvironmentIds: pulumi.StringArray{
pulumi.String("string"),
},
GitBranch: pulumi.String("string"),
Id: pulumi.String("string"),
Targets: pulumi.StringArray{
pulumi.String("string"),
},
Visibility: pulumi.String("string"),
},
},
TeamId: pulumi.String("string"),
})
resource "vercel_project_environment_variables" "projectEnvironmentVariablesResource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
variables {
key = "string"
sensitive = false
value = "string"
comment = "string"
custom_environment_ids = ["string"]
git_branch = "string"
id = "string"
targets = ["string"]
visibility = "string"
}
team_id = "string"
}
var projectEnvironmentVariablesResource = new ProjectEnvironmentVariables("projectEnvironmentVariablesResource", ProjectEnvironmentVariablesArgs.builder()
.projectId("string")
.variables(ProjectEnvironmentVariablesVariableArgs.builder()
.key("string")
.sensitive(false)
.value("string")
.comment("string")
.customEnvironmentIds("string")
.gitBranch("string")
.id("string")
.targets("string")
.visibility("string")
.build())
.teamId("string")
.build());
project_environment_variables_resource = vercel.ProjectEnvironmentVariables("projectEnvironmentVariablesResource",
project_id="string",
variables=[{
"key": "string",
"sensitive": False,
"value": "string",
"comment": "string",
"custom_environment_ids": ["string"],
"git_branch": "string",
"id": "string",
"targets": ["string"],
"visibility": "string",
}],
team_id="string")
const projectEnvironmentVariablesResource = new vercel.ProjectEnvironmentVariables("projectEnvironmentVariablesResource", {
projectId: "string",
variables: [{
key: "string",
sensitive: false,
value: "string",
comment: "string",
customEnvironmentIds: ["string"],
gitBranch: "string",
id: "string",
targets: ["string"],
visibility: "string",
}],
teamId: "string",
});
type: vercel:ProjectEnvironmentVariables
properties:
projectId: string
teamId: string
variables:
- comment: string
customEnvironmentIds:
- string
gitBranch: string
id: string
key: string
sensitive: false
targets:
- string
value: string
visibility: string
ProjectEnvironmentVariables 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 ProjectEnvironmentVariables resource accepts the following input properties:
- Project
Id string - The ID of the Vercel project.
- Variables
List<Pulumiverse.
Vercel. Inputs. Project Environment Variables Variable> - A set of Environment Variables that should be configured for the project.
- Team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- Project
Id string - The ID of the Vercel project.
- Variables
[]Project
Environment Variables Variable Args - A set of Environment Variables that should be configured for the project.
- Team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- project_
id string - The ID of the Vercel project.
- variables list(object)
- A set of Environment Variables that should be configured for the project.
- team_
id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- project
Id String - The ID of the Vercel project.
- variables
List<Project
Environment Variables Variable> - A set of Environment Variables that should be configured for the project.
- team
Id String - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- project
Id string - The ID of the Vercel project.
- variables
Project
Environment Variables Variable[] - A set of Environment Variables that should be configured for the project.
- team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- project_
id str - The ID of the Vercel project.
- variables
Sequence[Project
Environment Variables Variable Args] - A set of Environment Variables that should be configured for the project.
- team_
id str - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- project
Id String - The ID of the Vercel project.
- variables List<Property Map>
- A set of Environment Variables that should be configured for the project.
- team
Id String - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectEnvironmentVariables resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ProjectEnvironmentVariables Resource
Get an existing ProjectEnvironmentVariables 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?: ProjectEnvironmentVariablesState, opts?: CustomResourceOptions): ProjectEnvironmentVariables@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
team_id: Optional[str] = None,
variables: Optional[Sequence[ProjectEnvironmentVariablesVariableArgs]] = None) -> ProjectEnvironmentVariablesfunc GetProjectEnvironmentVariables(ctx *Context, name string, id IDInput, state *ProjectEnvironmentVariablesState, opts ...ResourceOption) (*ProjectEnvironmentVariables, error)public static ProjectEnvironmentVariables Get(string name, Input<string> id, ProjectEnvironmentVariablesState? state, CustomResourceOptions? opts = null)public static ProjectEnvironmentVariables get(String name, Output<String> id, ProjectEnvironmentVariablesState state, CustomResourceOptions options)resources: existingProjectEnvironmentVariables: type: vercel:ProjectEnvironmentVariables get: id: ${id}import {
to = vercel_project_environment_variables.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state ProjectEnvironmentVariablesState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state ProjectEnvironmentVariablesState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state ProjectEnvironmentVariablesState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state ProjectEnvironmentVariablesState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Project
Id string - The ID of the Vercel project.
- Team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- Variables
List<Pulumiverse.
Vercel. Inputs. Project Environment Variables Variable> - A set of Environment Variables that should be configured for the project.
- Project
Id string - The ID of the Vercel project.
- Team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- Variables
[]Project
Environment Variables Variable Args - A set of Environment Variables that should be configured for the project.
- project_
id string - The ID of the Vercel project.
- team_
id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- variables list(object)
- A set of Environment Variables that should be configured for the project.
- project
Id String - The ID of the Vercel project.
- team
Id String - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- variables
List<Project
Environment Variables Variable> - A set of Environment Variables that should be configured for the project.
- project
Id string - The ID of the Vercel project.
- team
Id string - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- variables
Project
Environment Variables Variable[] - A set of Environment Variables that should be configured for the project.
- project_
id str - The ID of the Vercel project.
- team_
id str - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- variables
Sequence[Project
Environment Variables Variable Args] - A set of Environment Variables that should be configured for the project.
- project
Id String - The ID of the Vercel project.
- team
Id String - The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
- variables List<Property Map>
- A set of Environment Variables that should be configured for the project.
Supporting Types
ProjectEnvironmentVariablesVariable, ProjectEnvironmentVariablesVariableArgs
- Key string
- The name of the Environment Variable.
- Sensitive bool
- Whether the Environment Variable is sensitive (meaning it cannot be read via the API or Vercel Dashboard once set). This must be explicitly set. Secrets are supported in all target environments, including Development.
- Value string
- The value of the Environment Variable.
- Comment string
- A comment explaining what the environment variable is for.
- Custom
Environment List<string>Ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
targetorcustom_environment_idsmust be set. - Git
Branch string - The git branch of the Environment Variable.
- Id string
- The ID of the Environment Variable.
- Targets List<string>
- The environments that the Environment Variable should be present on. Valid targets are either
production,preview, ordevelopment. At least one oftargetorcustom_environment_idsmust be set. - Visibility string
- Controls how the environment variable is categorized:
config(configuration values) orsecret(secret values). When omitted, visibility is inferred fromsensitivefor backwards compatibility and is not sent to the API.
- Key string
- The name of the Environment Variable.
- Sensitive bool
- Whether the Environment Variable is sensitive (meaning it cannot be read via the API or Vercel Dashboard once set). This must be explicitly set. Secrets are supported in all target environments, including Development.
- Value string
- The value of the Environment Variable.
- Comment string
- A comment explaining what the environment variable is for.
- Custom
Environment []stringIds - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
targetorcustom_environment_idsmust be set. - Git
Branch string - The git branch of the Environment Variable.
- Id string
- The ID of the Environment Variable.
- Targets []string
- The environments that the Environment Variable should be present on. Valid targets are either
production,preview, ordevelopment. At least one oftargetorcustom_environment_idsmust be set. - Visibility string
- Controls how the environment variable is categorized:
config(configuration values) orsecret(secret values). When omitted, visibility is inferred fromsensitivefor backwards compatibility and is not sent to the API.
- key string
- The name of the Environment Variable.
- sensitive bool
- Whether the Environment Variable is sensitive (meaning it cannot be read via the API or Vercel Dashboard once set). This must be explicitly set. Secrets are supported in all target environments, including Development.
- value string
- The value of the Environment Variable.
- comment string
- A comment explaining what the environment variable is for.
- custom_
environment_ list(string)ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
targetorcustom_environment_idsmust be set. - git_
branch string - The git branch of the Environment Variable.
- id string
- The ID of the Environment Variable.
- targets list(string)
- The environments that the Environment Variable should be present on. Valid targets are either
production,preview, ordevelopment. At least one oftargetorcustom_environment_idsmust be set. - visibility string
- Controls how the environment variable is categorized:
config(configuration values) orsecret(secret values). When omitted, visibility is inferred fromsensitivefor backwards compatibility and is not sent to the API.
- key String
- The name of the Environment Variable.
- sensitive Boolean
- Whether the Environment Variable is sensitive (meaning it cannot be read via the API or Vercel Dashboard once set). This must be explicitly set. Secrets are supported in all target environments, including Development.
- value String
- The value of the Environment Variable.
- comment String
- A comment explaining what the environment variable is for.
- custom
Environment List<String>Ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
targetorcustom_environment_idsmust be set. - git
Branch String - The git branch of the Environment Variable.
- id String
- The ID of the Environment Variable.
- targets List<String>
- The environments that the Environment Variable should be present on. Valid targets are either
production,preview, ordevelopment. At least one oftargetorcustom_environment_idsmust be set. - visibility String
- Controls how the environment variable is categorized:
config(configuration values) orsecret(secret values). When omitted, visibility is inferred fromsensitivefor backwards compatibility and is not sent to the API.
- key string
- The name of the Environment Variable.
- sensitive boolean
- Whether the Environment Variable is sensitive (meaning it cannot be read via the API or Vercel Dashboard once set). This must be explicitly set. Secrets are supported in all target environments, including Development.
- value string
- The value of the Environment Variable.
- comment string
- A comment explaining what the environment variable is for.
- custom
Environment string[]Ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
targetorcustom_environment_idsmust be set. - git
Branch string - The git branch of the Environment Variable.
- id string
- The ID of the Environment Variable.
- targets string[]
- The environments that the Environment Variable should be present on. Valid targets are either
production,preview, ordevelopment. At least one oftargetorcustom_environment_idsmust be set. - visibility string
- Controls how the environment variable is categorized:
config(configuration values) orsecret(secret values). When omitted, visibility is inferred fromsensitivefor backwards compatibility and is not sent to the API.
- key str
- The name of the Environment Variable.
- sensitive bool
- Whether the Environment Variable is sensitive (meaning it cannot be read via the API or Vercel Dashboard once set). This must be explicitly set. Secrets are supported in all target environments, including Development.
- value str
- The value of the Environment Variable.
- comment str
- A comment explaining what the environment variable is for.
- custom_
environment_ Sequence[str]ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
targetorcustom_environment_idsmust be set. - git_
branch str - The git branch of the Environment Variable.
- id str
- The ID of the Environment Variable.
- targets Sequence[str]
- The environments that the Environment Variable should be present on. Valid targets are either
production,preview, ordevelopment. At least one oftargetorcustom_environment_idsmust be set. - visibility str
- Controls how the environment variable is categorized:
config(configuration values) orsecret(secret values). When omitted, visibility is inferred fromsensitivefor backwards compatibility and is not sent to the API.
- key String
- The name of the Environment Variable.
- sensitive Boolean
- Whether the Environment Variable is sensitive (meaning it cannot be read via the API or Vercel Dashboard once set). This must be explicitly set. Secrets are supported in all target environments, including Development.
- value String
- The value of the Environment Variable.
- comment String
- A comment explaining what the environment variable is for.
- custom
Environment List<String>Ids - The IDs of Custom Environments that the Environment Variable should be present on. At least one of
targetorcustom_environment_idsmust be set. - git
Branch String - The git branch of the Environment Variable.
- id String
- The ID of the Environment Variable.
- targets List<String>
- The environments that the Environment Variable should be present on. Valid targets are either
production,preview, ordevelopment. At least one oftargetorcustom_environment_idsmust be set. - visibility String
- Controls how the environment variable is categorized:
config(configuration values) orsecret(secret values). When omitted, visibility is inferred fromsensitivefor backwards compatibility and is not sent to the API.
Package Details
- Repository
- vercel pulumiverse/pulumi-vercel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vercelTerraform Provider.
published on Sunday, Nov 15, 2026 by Pulumiverse