published on Sunday, Nov 15, 2026 by Pulumiverse
published on Sunday, Nov 15, 2026 by Pulumiverse
Manages Passport as a standalone setting on an existing Vercel project. It does not create, import, or delete the project itself, and does not manage builds, Git settings, other protection methods, bypasses, or exceptions. Requires an eligible Enterprise team and Owner permissions.
Creating this resource enables Passport. Destroying it disables Passport, leaving the project, Connect application, and application connections intact. To stop managing Passport while keeping it enabled, use a Terraform removed block with lifecycle { destroy = false }.
If the project is also managed by vercel_project, set manage_passport = false on that resource and remove its inline passport attribute before using this resource. Do not give multiple resources ownership of Passport for the same project. Import adopts the existing Passport configuration without changing it; Passport must already be enabled.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vercel from "@pulumiverse/vercel";
// Standalone: the project already exists; only Passport is managed here.
const existing = new vercel.ProjectPassport("existing", {
teamId: "team_example",
projectId: "prj_existing",
connectorId: "scl_existing",
deploymentType: "all",
});
import pulumi
import pulumiverse_vercel as vercel
# Standalone: the project already exists; only Passport is managed here.
existing = vercel.ProjectPassport("existing",
team_id="team_example",
project_id="prj_existing",
connector_id="scl_existing",
deployment_type="all")
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 {
// Standalone: the project already exists; only Passport is managed here.
_, err := vercel.NewProjectPassport(ctx, "existing", &vercel.ProjectPassportArgs{
TeamId: pulumi.String("team_example"),
ProjectId: pulumi.String("prj_existing"),
ConnectorId: pulumi.String("scl_existing"),
DeploymentType: pulumi.String("all"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vercel = Pulumiverse.Vercel;
return await Deployment.RunAsync(() =>
{
// Standalone: the project already exists; only Passport is managed here.
var existing = new Vercel.ProjectPassport("existing", new()
{
TeamId = "team_example",
ProjectId = "prj_existing",
ConnectorId = "scl_existing",
DeploymentType = "all",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumiverse.vercel.ProjectPassport;
import com.pulumiverse.vercel.ProjectPassportArgs;
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) {
// Standalone: the project already exists; only Passport is managed here.
var existing = new ProjectPassport("existing", ProjectPassportArgs.builder()
.teamId("team_example")
.projectId("prj_existing")
.connectorId("scl_existing")
.deploymentType("all")
.build());
}
}
resources:
# Standalone: the project already exists; only Passport is managed here.
existing:
type: vercel:ProjectPassport
properties:
teamId: team_example
projectId: prj_existing
connectorId: scl_existing
deploymentType: all
Example coming soon!
Using it alongside vercel.Project
The standalone resource can protect a project that Terraform does not otherwise manage. You only need its project ID and a pre-existing Connect application.
If Terraform also manages the project itself, explicitly give up inline Passport ownership first:
import * as pulumi from "@pulumi/pulumi";
import * as vercel from "@pulumiverse/vercel";
const app = new vercel.Project("app", {
name: "existing-app",
managePassport: false,
});
const appProjectPassport = new vercel.ProjectPassport("app", {
projectId: app.id,
connectorId: "scl_existing",
deploymentType: "all",
});
import pulumi
import pulumiverse_vercel as vercel
app = vercel.Project("app",
name="existing-app",
manage_passport=False)
app_project_passport = vercel.ProjectPassport("app",
project_id=app.id,
connector_id="scl_existing",
deployment_type="all")
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 {
app, err := vercel.NewProject(ctx, "app", &vercel.ProjectArgs{
Name: pulumi.String("existing-app"),
ManagePassport: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = vercel.NewProjectPassport(ctx, "app", &vercel.ProjectPassportArgs{
ProjectId: app.ID(),
ConnectorId: pulumi.String("scl_existing"),
DeploymentType: pulumi.String("all"),
})
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 app = new Vercel.Project("app", new()
{
Name = "existing-app",
ManagePassport = false,
});
var appProjectPassport = new Vercel.ProjectPassport("app", new()
{
ProjectId = app.Id,
ConnectorId = "scl_existing",
DeploymentType = "all",
});
});
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.pulumiverse.vercel.ProjectPassport;
import com.pulumiverse.vercel.ProjectPassportArgs;
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 app = new Project("app", ProjectArgs.builder()
.name("existing-app")
.managePassport(false)
.build());
var appProjectPassport = new ProjectPassport("appProjectPassport", ProjectPassportArgs.builder()
.projectId(app.id())
.connectorId("scl_existing")
.deploymentType("all")
.build());
}
}
resources:
app:
type: vercel:Project
properties:
name: existing-app
managePassport: false # Omit passport here. Keep your other existing project configuration.
appProjectPassport:
type: vercel:ProjectPassport
name: app
properties:
projectId: ${app.id}
connectorId: scl_existing
deploymentType: all
Example coming soon!
manage_passport = false makes project create/update follow-up requests omit Passport entirely. ignore_changes alone does not prevent the project resource from sending its observed settings. Do not configure inline Passport and this resource for the same project. The project resource still owns the project and can delete it.
For migration, set manage_passport = false, remove inline passport, and import the existing settings into this standalone resource. Review the plan before applying; import itself is read-only, but differences in your resource configuration can still plan an update.
Create ProjectPassport Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProjectPassport(name: string, args: ProjectPassportArgs, opts?: CustomResourceOptions);@overload
def ProjectPassport(resource_name: str,
args: ProjectPassportInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProjectPassport(resource_name: str,
opts: Optional[ResourceOptions] = None,
connector_id: Optional[str] = None,
project_id: Optional[str] = None,
deployment_type: Optional[str] = None,
team_id: Optional[str] = None)func NewProjectPassport(ctx *Context, name string, args ProjectPassportArgs, opts ...ResourceOption) (*ProjectPassport, error)public ProjectPassport(string name, ProjectPassportArgs args, CustomResourceOptions? opts = null)
public ProjectPassport(String name, ProjectPassportArgs args)
public ProjectPassport(String name, ProjectPassportArgs args, CustomResourceOptions options)
type: vercel:ProjectPassport
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "vercel_project_passport" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProjectPassportArgs
- 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 ProjectPassportInitArgs
- 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 ProjectPassportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectPassportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectPassportArgs
- 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 projectPassportResource = new Vercel.ProjectPassport("projectPassportResource", new()
{
ConnectorId = "string",
ProjectId = "string",
DeploymentType = "string",
TeamId = "string",
});
example, err := vercel.NewProjectPassport(ctx, "projectPassportResource", &vercel.ProjectPassportArgs{
ConnectorId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
DeploymentType: pulumi.String("string"),
TeamId: pulumi.String("string"),
})
resource "vercel_project_passport" "projectPassportResource" {
lifecycle {
create_before_destroy = true
}
connector_id = "string"
project_id = "string"
deployment_type = "string"
team_id = "string"
}
var projectPassportResource = new ProjectPassport("projectPassportResource", ProjectPassportArgs.builder()
.connectorId("string")
.projectId("string")
.deploymentType("string")
.teamId("string")
.build());
project_passport_resource = vercel.ProjectPassport("projectPassportResource",
connector_id="string",
project_id="string",
deployment_type="string",
team_id="string")
const projectPassportResource = new vercel.ProjectPassport("projectPassportResource", {
connectorId: "string",
projectId: "string",
deploymentType: "string",
teamId: "string",
});
type: vercel:ProjectPassport
properties:
connectorId: string
deploymentType: string
projectId: string
teamId: string
ProjectPassport 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 ProjectPassport resource accepts the following input properties:
- Connector
Id string - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- Project
Id string - The ID of the existing project. This resource never creates a project.
- Deployment
Type string - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- Team
Id string - The team ID. Defaults to the provider team.
- Connector
Id string - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- Project
Id string - The ID of the existing project. This resource never creates a project.
- Deployment
Type string - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- Team
Id string - The team ID. Defaults to the provider team.
- connector_
id string - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- project_
id string - The ID of the existing project. This resource never creates a project.
- deployment_
type string - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- team_
id string - The team ID. Defaults to the provider team.
- connector
Id String - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- project
Id String - The ID of the existing project. This resource never creates a project.
- deployment
Type String - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- team
Id String - The team ID. Defaults to the provider team.
- connector
Id string - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- project
Id string - The ID of the existing project. This resource never creates a project.
- deployment
Type string - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- team
Id string - The team ID. Defaults to the provider team.
- connector_
id str - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- project_
id str - The ID of the existing project. This resource never creates a project.
- deployment_
type str - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- team_
id str - The team ID. Defaults to the provider team.
- connector
Id String - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- project
Id String - The ID of the existing project. This resource never creates a project.
- deployment
Type String - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- team
Id String - The team ID. Defaults to the provider team.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectPassport 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 ProjectPassport Resource
Get an existing ProjectPassport 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?: ProjectPassportState, opts?: CustomResourceOptions): ProjectPassport@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connector_id: Optional[str] = None,
deployment_type: Optional[str] = None,
project_id: Optional[str] = None,
team_id: Optional[str] = None) -> ProjectPassportfunc GetProjectPassport(ctx *Context, name string, id IDInput, state *ProjectPassportState, opts ...ResourceOption) (*ProjectPassport, error)public static ProjectPassport Get(string name, Input<string> id, ProjectPassportState? state, CustomResourceOptions? opts = null)public static ProjectPassport get(String name, Output<String> id, ProjectPassportState state, CustomResourceOptions options)resources: existingProjectPassport: type: vercel:ProjectPassport get: id: ${id}import {
to = vercel_project_passport.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 ProjectPassportState
- 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 ProjectPassportState
- 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 ProjectPassportState
- 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 ProjectPassportState
- 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.
- Connector
Id string - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- Deployment
Type string - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- Project
Id string - The ID of the existing project. This resource never creates a project.
- Team
Id string - The team ID. Defaults to the provider team.
- Connector
Id string - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- Deployment
Type string - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- Project
Id string - The ID of the existing project. This resource never creates a project.
- Team
Id string - The team ID. Defaults to the provider team.
- connector_
id string - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- deployment_
type string - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- project_
id string - The ID of the existing project. This resource never creates a project.
- team_
id string - The team ID. Defaults to the provider team.
- connector
Id String - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- deployment
Type String - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- project
Id String - The ID of the existing project. This resource never creates a project.
- team
Id String - The team ID. Defaults to the provider team.
- connector
Id string - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- deployment
Type string - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- project
Id string - The ID of the existing project. This resource never creates a project.
- team
Id string - The team ID. Defaults to the provider team.
- connector_
id str - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- deployment_
type str - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- project_
id str - The ID of the existing project. This resource never creates a project.
- team_
id str - The team ID. Defaults to the provider team.
- connector
Id String - The stable ID of an existing Vercel Connect OAuth application, available from the vercelconnectapplication data source.
- deployment
Type String - Deployments to protect: all, preview, proddeploymenturlsandallpreviews, or allexceptcustomdomains. Defaults to all.
- project
Id String - The ID of the existing project. This resource never creates a project.
- team
Id String - The team ID. Defaults to the provider team.
Import
Passport must already be enabled. Import adopts only Passport settings, not the project or its lifecycle.
Adopt Passport settings on an existing project without importing the project itself.
$ pulumi import vercel:index/projectPassport:ProjectPassport existing team_example/prj_existing
With a provider team configured, the project ID alone is sufficient.
$ pulumi import vercel:index/projectPassport:ProjectPassport existing prj_existing
To learn more about importing existing cloud resources, see Importing resources.
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