1. Packages
  2. Packages
  3. Vercel Provider
  4. API Docs
  5. FeatureFlagConfig
Viewing docs for Vercel v5.4.1
published on Wednesday, Jul 22, 2026 by Pulumiverse
vercel logo
Viewing docs for Vercel v5.4.1
published on Wednesday, Jul 22, 2026 by Pulumiverse

    Provides a Feature Flag Config resource.

    This resource manages the simplified static rollout shape for a flag across production, preview, and development.

    Use this resource together with vercel.FeatureFlagDefinition when Terraform should own the rollout. If you omit this resource, the flag definition can still exist while rollout is managed through the Vercel dashboard.

    It is intentionally strict: linked environments, rules, and target overrides must not already be configured on the flag when Terraform manages this resource.

    Deleting this resource only removes it from Terraform state. The flag and its current configuration stay in Vercel.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vercel from "@pulumiverse/vercel";
    
    const example = new vercel.Project("example", {name: "feature-flag-example"});
    const exampleFeatureFlagDefinition = new vercel.FeatureFlagDefinition("example", {
        projectId: example.id,
        key: "checkout-redesign",
        description: "Controls the checkout experience",
        kind: "string",
        variants: [
            {
                id: "control",
                label: "Control",
                valueString: "control",
            },
            {
                id: "treatment",
                label: "Treatment",
                valueString: "treatment",
            },
        ],
    });
    const exampleFeatureFlagConfig = new vercel.FeatureFlagConfig("example", {
        projectId: example.id,
        flagId: exampleFeatureFlagDefinition.id,
        production: {
            enabled: true,
            defaultVariantId: "control",
            disabledVariantId: "control",
        },
        preview: {
            enabled: true,
            defaultVariantId: "treatment",
            disabledVariantId: "control",
        },
        development: {
            enabled: false,
            defaultVariantId: "treatment",
            disabledVariantId: "control",
        },
    });
    
    import pulumi
    import pulumiverse_vercel as vercel
    
    example = vercel.Project("example", name="feature-flag-example")
    example_feature_flag_definition = vercel.FeatureFlagDefinition("example",
        project_id=example.id,
        key="checkout-redesign",
        description="Controls the checkout experience",
        kind="string",
        variants=[
            {
                "id": "control",
                "label": "Control",
                "value_string": "control",
            },
            {
                "id": "treatment",
                "label": "Treatment",
                "value_string": "treatment",
            },
        ])
    example_feature_flag_config = vercel.FeatureFlagConfig("example",
        project_id=example.id,
        flag_id=example_feature_flag_definition.id,
        production={
            "enabled": True,
            "default_variant_id": "control",
            "disabled_variant_id": "control",
        },
        preview={
            "enabled": True,
            "default_variant_id": "treatment",
            "disabled_variant_id": "control",
        },
        development={
            "enabled": False,
            "default_variant_id": "treatment",
            "disabled_variant_id": "control",
        })
    
    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("feature-flag-example"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleFeatureFlagDefinition, err := vercel.NewFeatureFlagDefinition(ctx, "example", &vercel.FeatureFlagDefinitionArgs{
    			ProjectId:   example.ID(),
    			Key:         pulumi.String("checkout-redesign"),
    			Description: pulumi.String("Controls the checkout experience"),
    			Kind:        pulumi.String("string"),
    			Variants: vercel.FeatureFlagDefinitionVariantArray{
    				&vercel.FeatureFlagDefinitionVariantArgs{
    					Id:          pulumi.String("control"),
    					Label:       pulumi.String("Control"),
    					ValueString: pulumi.String("control"),
    				},
    				&vercel.FeatureFlagDefinitionVariantArgs{
    					Id:          pulumi.String("treatment"),
    					Label:       pulumi.String("Treatment"),
    					ValueString: pulumi.String("treatment"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vercel.NewFeatureFlagConfig(ctx, "example", &vercel.FeatureFlagConfigArgs{
    			ProjectId: example.ID(),
    			FlagId:    exampleFeatureFlagDefinition.ID(),
    			Production: &vercel.FeatureFlagConfigProductionArgs{
    				Enabled:           pulumi.Bool(true),
    				DefaultVariantId:  pulumi.String("control"),
    				DisabledVariantId: pulumi.String("control"),
    			},
    			Preview: &vercel.FeatureFlagConfigPreviewArgs{
    				Enabled:           pulumi.Bool(true),
    				DefaultVariantId:  pulumi.String("treatment"),
    				DisabledVariantId: pulumi.String("control"),
    			},
    			Development: &vercel.FeatureFlagConfigDevelopmentArgs{
    				Enabled:           pulumi.Bool(false),
    				DefaultVariantId:  pulumi.String("treatment"),
    				DisabledVariantId: pulumi.String("control"),
    			},
    		})
    		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 = "feature-flag-example",
        });
    
        var exampleFeatureFlagDefinition = new Vercel.FeatureFlagDefinition("example", new()
        {
            ProjectId = example.Id,
            Key = "checkout-redesign",
            Description = "Controls the checkout experience",
            Kind = "string",
            Variants = new[]
            {
                new Vercel.Inputs.FeatureFlagDefinitionVariantArgs
                {
                    Id = "control",
                    Label = "Control",
                    ValueString = "control",
                },
                new Vercel.Inputs.FeatureFlagDefinitionVariantArgs
                {
                    Id = "treatment",
                    Label = "Treatment",
                    ValueString = "treatment",
                },
            },
        });
    
        var exampleFeatureFlagConfig = new Vercel.FeatureFlagConfig("example", new()
        {
            ProjectId = example.Id,
            FlagId = exampleFeatureFlagDefinition.Id,
            Production = new Vercel.Inputs.FeatureFlagConfigProductionArgs
            {
                Enabled = true,
                DefaultVariantId = "control",
                DisabledVariantId = "control",
            },
            Preview = new Vercel.Inputs.FeatureFlagConfigPreviewArgs
            {
                Enabled = true,
                DefaultVariantId = "treatment",
                DisabledVariantId = "control",
            },
            Development = new Vercel.Inputs.FeatureFlagConfigDevelopmentArgs
            {
                Enabled = false,
                DefaultVariantId = "treatment",
                DisabledVariantId = "control",
            },
        });
    
    });
    
    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.FeatureFlagDefinition;
    import com.pulumiverse.vercel.FeatureFlagDefinitionArgs;
    import com.pulumi.vercel.inputs.FeatureFlagDefinitionVariantArgs;
    import com.pulumiverse.vercel.FeatureFlagConfig;
    import com.pulumiverse.vercel.FeatureFlagConfigArgs;
    import com.pulumi.vercel.inputs.FeatureFlagConfigProductionArgs;
    import com.pulumi.vercel.inputs.FeatureFlagConfigPreviewArgs;
    import com.pulumi.vercel.inputs.FeatureFlagConfigDevelopmentArgs;
    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("feature-flag-example")
                .build());
    
            var exampleFeatureFlagDefinition = new FeatureFlagDefinition("exampleFeatureFlagDefinition", FeatureFlagDefinitionArgs.builder()
                .projectId(example.id())
                .key("checkout-redesign")
                .description("Controls the checkout experience")
                .kind("string")
                .variants(            
                    FeatureFlagDefinitionVariantArgs.builder()
                        .id("control")
                        .label("Control")
                        .valueString("control")
                        .build(),
                    FeatureFlagDefinitionVariantArgs.builder()
                        .id("treatment")
                        .label("Treatment")
                        .valueString("treatment")
                        .build())
                .build());
    
            var exampleFeatureFlagConfig = new FeatureFlagConfig("exampleFeatureFlagConfig", FeatureFlagConfigArgs.builder()
                .projectId(example.id())
                .flagId(exampleFeatureFlagDefinition.id())
                .production(FeatureFlagConfigProductionArgs.builder()
                    .enabled(true)
                    .defaultVariantId("control")
                    .disabledVariantId("control")
                    .build())
                .preview(FeatureFlagConfigPreviewArgs.builder()
                    .enabled(true)
                    .defaultVariantId("treatment")
                    .disabledVariantId("control")
                    .build())
                .development(FeatureFlagConfigDevelopmentArgs.builder()
                    .enabled(false)
                    .defaultVariantId("treatment")
                    .disabledVariantId("control")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: vercel:Project
        properties:
          name: feature-flag-example
      exampleFeatureFlagDefinition:
        type: vercel:FeatureFlagDefinition
        name: example
        properties:
          projectId: ${example.id}
          key: checkout-redesign
          description: Controls the checkout experience
          kind: string
          variants:
            - id: control
              label: Control
              valueString: control
            - id: treatment
              label: Treatment
              valueString: treatment
      exampleFeatureFlagConfig:
        type: vercel:FeatureFlagConfig
        name: example
        properties:
          projectId: ${example.id}
          flagId: ${exampleFeatureFlagDefinition.id}
          production:
            enabled: true
            defaultVariantId: control
            disabledVariantId: control
          preview:
            enabled: true
            defaultVariantId: treatment
            disabledVariantId: control
          development:
            enabled: false
            defaultVariantId: treatment
            disabledVariantId: control
    
    Example coming soon!
    

    Create FeatureFlagConfig Resource

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

    Constructor syntax

    new FeatureFlagConfig(name: string, args: FeatureFlagConfigArgs, opts?: CustomResourceOptions);
    @overload
    def FeatureFlagConfig(resource_name: str,
                          args: FeatureFlagConfigArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def FeatureFlagConfig(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          development: Optional[FeatureFlagConfigDevelopmentArgs] = None,
                          flag_id: Optional[str] = None,
                          preview: Optional[FeatureFlagConfigPreviewArgs] = None,
                          production: Optional[FeatureFlagConfigProductionArgs] = None,
                          project_id: Optional[str] = None,
                          team_id: Optional[str] = None)
    func NewFeatureFlagConfig(ctx *Context, name string, args FeatureFlagConfigArgs, opts ...ResourceOption) (*FeatureFlagConfig, error)
    public FeatureFlagConfig(string name, FeatureFlagConfigArgs args, CustomResourceOptions? opts = null)
    public FeatureFlagConfig(String name, FeatureFlagConfigArgs args)
    public FeatureFlagConfig(String name, FeatureFlagConfigArgs args, CustomResourceOptions options)
    
    type: vercel:FeatureFlagConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "vercel_feature_flag_config" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args FeatureFlagConfigArgs
    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 FeatureFlagConfigArgs
    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 FeatureFlagConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FeatureFlagConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FeatureFlagConfigArgs
    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 featureFlagConfigResource = new Vercel.FeatureFlagConfig("featureFlagConfigResource", new()
    {
        Development = new Vercel.Inputs.FeatureFlagConfigDevelopmentArgs
        {
            DefaultVariantId = "string",
            DisabledVariantId = "string",
            Enabled = false,
        },
        FlagId = "string",
        Preview = new Vercel.Inputs.FeatureFlagConfigPreviewArgs
        {
            DefaultVariantId = "string",
            DisabledVariantId = "string",
            Enabled = false,
        },
        Production = new Vercel.Inputs.FeatureFlagConfigProductionArgs
        {
            DefaultVariantId = "string",
            DisabledVariantId = "string",
            Enabled = false,
        },
        ProjectId = "string",
        TeamId = "string",
    });
    
    example, err := vercel.NewFeatureFlagConfig(ctx, "featureFlagConfigResource", &vercel.FeatureFlagConfigArgs{
    	Development: &vercel.FeatureFlagConfigDevelopmentArgs{
    		DefaultVariantId:  pulumi.String("string"),
    		DisabledVariantId: pulumi.String("string"),
    		Enabled:           pulumi.Bool(false),
    	},
    	FlagId: pulumi.String("string"),
    	Preview: &vercel.FeatureFlagConfigPreviewArgs{
    		DefaultVariantId:  pulumi.String("string"),
    		DisabledVariantId: pulumi.String("string"),
    		Enabled:           pulumi.Bool(false),
    	},
    	Production: &vercel.FeatureFlagConfigProductionArgs{
    		DefaultVariantId:  pulumi.String("string"),
    		DisabledVariantId: pulumi.String("string"),
    		Enabled:           pulumi.Bool(false),
    	},
    	ProjectId: pulumi.String("string"),
    	TeamId:    pulumi.String("string"),
    })
    
    resource "vercel_feature_flag_config" "featureFlagConfigResource" {
      lifecycle {
        create_before_destroy = true
      }
      development = {
        default_variant_id  = "string"
        disabled_variant_id = "string"
        enabled             = false
      }
      flag_id = "string"
      preview = {
        default_variant_id  = "string"
        disabled_variant_id = "string"
        enabled             = false
      }
      production = {
        default_variant_id  = "string"
        disabled_variant_id = "string"
        enabled             = false
      }
      project_id = "string"
      team_id    = "string"
    }
    
    var featureFlagConfigResource = new FeatureFlagConfig("featureFlagConfigResource", FeatureFlagConfigArgs.builder()
        .development(FeatureFlagConfigDevelopmentArgs.builder()
            .defaultVariantId("string")
            .disabledVariantId("string")
            .enabled(false)
            .build())
        .flagId("string")
        .preview(FeatureFlagConfigPreviewArgs.builder()
            .defaultVariantId("string")
            .disabledVariantId("string")
            .enabled(false)
            .build())
        .production(FeatureFlagConfigProductionArgs.builder()
            .defaultVariantId("string")
            .disabledVariantId("string")
            .enabled(false)
            .build())
        .projectId("string")
        .teamId("string")
        .build());
    
    feature_flag_config_resource = vercel.FeatureFlagConfig("featureFlagConfigResource",
        development={
            "default_variant_id": "string",
            "disabled_variant_id": "string",
            "enabled": False,
        },
        flag_id="string",
        preview={
            "default_variant_id": "string",
            "disabled_variant_id": "string",
            "enabled": False,
        },
        production={
            "default_variant_id": "string",
            "disabled_variant_id": "string",
            "enabled": False,
        },
        project_id="string",
        team_id="string")
    
    const featureFlagConfigResource = new vercel.FeatureFlagConfig("featureFlagConfigResource", {
        development: {
            defaultVariantId: "string",
            disabledVariantId: "string",
            enabled: false,
        },
        flagId: "string",
        preview: {
            defaultVariantId: "string",
            disabledVariantId: "string",
            enabled: false,
        },
        production: {
            defaultVariantId: "string",
            disabledVariantId: "string",
            enabled: false,
        },
        projectId: "string",
        teamId: "string",
    });
    
    type: vercel:FeatureFlagConfig
    properties:
        development:
            defaultVariantId: string
            disabledVariantId: string
            enabled: false
        flagId: string
        preview:
            defaultVariantId: string
            disabledVariantId: string
            enabled: false
        production:
            defaultVariantId: string
            disabledVariantId: string
            enabled: false
        projectId: string
        teamId: string
    

    FeatureFlagConfig 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 FeatureFlagConfig resource accepts the following input properties:

    Development Pulumiverse.Vercel.Inputs.FeatureFlagConfigDevelopment
    The development environment behavior for this flag.
    FlagId string
    The ID of the feature flag whose config Terraform should manage.
    Preview Pulumiverse.Vercel.Inputs.FeatureFlagConfigPreview
    The preview environment behavior for this flag.
    Production Pulumiverse.Vercel.Inputs.FeatureFlagConfigProduction
    The production environment behavior for this flag.
    ProjectId string
    The ID of the Vercel project that owns the flag.
    TeamId string
    The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
    Development FeatureFlagConfigDevelopmentArgs
    The development environment behavior for this flag.
    FlagId string
    The ID of the feature flag whose config Terraform should manage.
    Preview FeatureFlagConfigPreviewArgs
    The preview environment behavior for this flag.
    Production FeatureFlagConfigProductionArgs
    The production environment behavior for this flag.
    ProjectId string
    The ID of the Vercel project that owns the flag.
    TeamId string
    The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
    development object
    The development environment behavior for this flag.
    flag_id string
    The ID of the feature flag whose config Terraform should manage.
    preview object
    The preview environment behavior for this flag.
    production object
    The production environment behavior for this flag.
    project_id string
    The ID of the Vercel project that owns the flag.
    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.
    development FeatureFlagConfigDevelopment
    The development environment behavior for this flag.
    flagId String
    The ID of the feature flag whose config Terraform should manage.
    preview FeatureFlagConfigPreview
    The preview environment behavior for this flag.
    production FeatureFlagConfigProduction
    The production environment behavior for this flag.
    projectId String
    The ID of the Vercel project that owns the flag.
    teamId String
    The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
    development FeatureFlagConfigDevelopment
    The development environment behavior for this flag.
    flagId string
    The ID of the feature flag whose config Terraform should manage.
    preview FeatureFlagConfigPreview
    The preview environment behavior for this flag.
    production FeatureFlagConfigProduction
    The production environment behavior for this flag.
    projectId string
    The ID of the Vercel project that owns the flag.
    teamId string
    The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
    development FeatureFlagConfigDevelopmentArgs
    The development environment behavior for this flag.
    flag_id str
    The ID of the feature flag whose config Terraform should manage.
    preview FeatureFlagConfigPreviewArgs
    The preview environment behavior for this flag.
    production FeatureFlagConfigProductionArgs
    The production environment behavior for this flag.
    project_id str
    The ID of the Vercel project that owns the flag.
    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.
    development Property Map
    The development environment behavior for this flag.
    flagId String
    The ID of the feature flag whose config Terraform should manage.
    preview Property Map
    The preview environment behavior for this flag.
    production Property Map
    The production environment behavior for this flag.
    projectId String
    The ID of the Vercel project that owns the flag.
    teamId 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 FeatureFlagConfig 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 FeatureFlagConfig Resource

    Get an existing FeatureFlagConfig 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?: FeatureFlagConfigState, opts?: CustomResourceOptions): FeatureFlagConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            development: Optional[FeatureFlagConfigDevelopmentArgs] = None,
            flag_id: Optional[str] = None,
            preview: Optional[FeatureFlagConfigPreviewArgs] = None,
            production: Optional[FeatureFlagConfigProductionArgs] = None,
            project_id: Optional[str] = None,
            team_id: Optional[str] = None) -> FeatureFlagConfig
    func GetFeatureFlagConfig(ctx *Context, name string, id IDInput, state *FeatureFlagConfigState, opts ...ResourceOption) (*FeatureFlagConfig, error)
    public static FeatureFlagConfig Get(string name, Input<string> id, FeatureFlagConfigState? state, CustomResourceOptions? opts = null)
    public static FeatureFlagConfig get(String name, Output<String> id, FeatureFlagConfigState state, CustomResourceOptions options)
    resources:  _:    type: vercel:FeatureFlagConfig    get:      id: ${id}
    import {
      to = vercel_feature_flag_config.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    Development Pulumiverse.Vercel.Inputs.FeatureFlagConfigDevelopment
    The development environment behavior for this flag.
    FlagId string
    The ID of the feature flag whose config Terraform should manage.
    Preview Pulumiverse.Vercel.Inputs.FeatureFlagConfigPreview
    The preview environment behavior for this flag.
    Production Pulumiverse.Vercel.Inputs.FeatureFlagConfigProduction
    The production environment behavior for this flag.
    ProjectId string
    The ID of the Vercel project that owns the flag.
    TeamId string
    The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
    Development FeatureFlagConfigDevelopmentArgs
    The development environment behavior for this flag.
    FlagId string
    The ID of the feature flag whose config Terraform should manage.
    Preview FeatureFlagConfigPreviewArgs
    The preview environment behavior for this flag.
    Production FeatureFlagConfigProductionArgs
    The production environment behavior for this flag.
    ProjectId string
    The ID of the Vercel project that owns the flag.
    TeamId string
    The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
    development object
    The development environment behavior for this flag.
    flag_id string
    The ID of the feature flag whose config Terraform should manage.
    preview object
    The preview environment behavior for this flag.
    production object
    The production environment behavior for this flag.
    project_id string
    The ID of the Vercel project that owns the flag.
    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.
    development FeatureFlagConfigDevelopment
    The development environment behavior for this flag.
    flagId String
    The ID of the feature flag whose config Terraform should manage.
    preview FeatureFlagConfigPreview
    The preview environment behavior for this flag.
    production FeatureFlagConfigProduction
    The production environment behavior for this flag.
    projectId String
    The ID of the Vercel project that owns the flag.
    teamId String
    The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
    development FeatureFlagConfigDevelopment
    The development environment behavior for this flag.
    flagId string
    The ID of the feature flag whose config Terraform should manage.
    preview FeatureFlagConfigPreview
    The preview environment behavior for this flag.
    production FeatureFlagConfigProduction
    The production environment behavior for this flag.
    projectId string
    The ID of the Vercel project that owns the flag.
    teamId string
    The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
    development FeatureFlagConfigDevelopmentArgs
    The development environment behavior for this flag.
    flag_id str
    The ID of the feature flag whose config Terraform should manage.
    preview FeatureFlagConfigPreviewArgs
    The preview environment behavior for this flag.
    production FeatureFlagConfigProductionArgs
    The production environment behavior for this flag.
    project_id str
    The ID of the Vercel project that owns the flag.
    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.
    development Property Map
    The development environment behavior for this flag.
    flagId String
    The ID of the feature flag whose config Terraform should manage.
    preview Property Map
    The preview environment behavior for this flag.
    production Property Map
    The production environment behavior for this flag.
    projectId String
    The ID of the Vercel project that owns the flag.
    teamId String
    The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.

    Supporting Types

    FeatureFlagConfigDevelopment, FeatureFlagConfigDevelopmentArgs

    DefaultVariantId string
    The variant to serve when this environment is enabled and no rules match.
    DisabledVariantId string
    The variant to serve while this environment is disabled or paused.
    Enabled bool
    Whether the flag should actively evaluate in this environment.
    DefaultVariantId string
    The variant to serve when this environment is enabled and no rules match.
    DisabledVariantId string
    The variant to serve while this environment is disabled or paused.
    Enabled bool
    Whether the flag should actively evaluate in this environment.
    default_variant_id string
    The variant to serve when this environment is enabled and no rules match.
    disabled_variant_id string
    The variant to serve while this environment is disabled or paused.
    enabled bool
    Whether the flag should actively evaluate in this environment.
    defaultVariantId String
    The variant to serve when this environment is enabled and no rules match.
    disabledVariantId String
    The variant to serve while this environment is disabled or paused.
    enabled Boolean
    Whether the flag should actively evaluate in this environment.
    defaultVariantId string
    The variant to serve when this environment is enabled and no rules match.
    disabledVariantId string
    The variant to serve while this environment is disabled or paused.
    enabled boolean
    Whether the flag should actively evaluate in this environment.
    default_variant_id str
    The variant to serve when this environment is enabled and no rules match.
    disabled_variant_id str
    The variant to serve while this environment is disabled or paused.
    enabled bool
    Whether the flag should actively evaluate in this environment.
    defaultVariantId String
    The variant to serve when this environment is enabled and no rules match.
    disabledVariantId String
    The variant to serve while this environment is disabled or paused.
    enabled Boolean
    Whether the flag should actively evaluate in this environment.

    FeatureFlagConfigPreview, FeatureFlagConfigPreviewArgs

    DefaultVariantId string
    The variant to serve when this environment is enabled and no rules match.
    DisabledVariantId string
    The variant to serve while this environment is disabled or paused.
    Enabled bool
    Whether the flag should actively evaluate in this environment.
    DefaultVariantId string
    The variant to serve when this environment is enabled and no rules match.
    DisabledVariantId string
    The variant to serve while this environment is disabled or paused.
    Enabled bool
    Whether the flag should actively evaluate in this environment.
    default_variant_id string
    The variant to serve when this environment is enabled and no rules match.
    disabled_variant_id string
    The variant to serve while this environment is disabled or paused.
    enabled bool
    Whether the flag should actively evaluate in this environment.
    defaultVariantId String
    The variant to serve when this environment is enabled and no rules match.
    disabledVariantId String
    The variant to serve while this environment is disabled or paused.
    enabled Boolean
    Whether the flag should actively evaluate in this environment.
    defaultVariantId string
    The variant to serve when this environment is enabled and no rules match.
    disabledVariantId string
    The variant to serve while this environment is disabled or paused.
    enabled boolean
    Whether the flag should actively evaluate in this environment.
    default_variant_id str
    The variant to serve when this environment is enabled and no rules match.
    disabled_variant_id str
    The variant to serve while this environment is disabled or paused.
    enabled bool
    Whether the flag should actively evaluate in this environment.
    defaultVariantId String
    The variant to serve when this environment is enabled and no rules match.
    disabledVariantId String
    The variant to serve while this environment is disabled or paused.
    enabled Boolean
    Whether the flag should actively evaluate in this environment.

    FeatureFlagConfigProduction, FeatureFlagConfigProductionArgs

    DefaultVariantId string
    The variant to serve when this environment is enabled and no rules match.
    DisabledVariantId string
    The variant to serve while this environment is disabled or paused.
    Enabled bool
    Whether the flag should actively evaluate in this environment.
    DefaultVariantId string
    The variant to serve when this environment is enabled and no rules match.
    DisabledVariantId string
    The variant to serve while this environment is disabled or paused.
    Enabled bool
    Whether the flag should actively evaluate in this environment.
    default_variant_id string
    The variant to serve when this environment is enabled and no rules match.
    disabled_variant_id string
    The variant to serve while this environment is disabled or paused.
    enabled bool
    Whether the flag should actively evaluate in this environment.
    defaultVariantId String
    The variant to serve when this environment is enabled and no rules match.
    disabledVariantId String
    The variant to serve while this environment is disabled or paused.
    enabled Boolean
    Whether the flag should actively evaluate in this environment.
    defaultVariantId string
    The variant to serve when this environment is enabled and no rules match.
    disabledVariantId string
    The variant to serve while this environment is disabled or paused.
    enabled boolean
    Whether the flag should actively evaluate in this environment.
    default_variant_id str
    The variant to serve when this environment is enabled and no rules match.
    disabled_variant_id str
    The variant to serve while this environment is disabled or paused.
    enabled bool
    Whether the flag should actively evaluate in this environment.
    defaultVariantId String
    The variant to serve when this environment is enabled and no rules match.
    disabledVariantId String
    The variant to serve while this environment is disabled or paused.
    enabled Boolean
    Whether the flag should actively evaluate in this environment.

    Package Details

    Repository
    vercel pulumiverse/pulumi-vercel
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vercel Terraform Provider.
    vercel logo
    Viewing docs for Vercel v5.4.1
    published on Wednesday, Jul 22, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial