1. Registry
  2. Packages
  3. Harness Provider
  4. API Docs
  5. platform
  6. getInfraVariableSet
Viewing docs for Harness v0.16.5
published on Saturday, Sep 12, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.16.5
published on Saturday, Sep 12, 2026 by Pulumi

    Data source for retrieving Variable Sets.

    The Variable Set is looked up with identifier at the scope implied by orgId and projectId: omit both for an account level Variable Set, set orgId for an org level Variable Set, and set both for a project level Variable Set.

    The exported id is the bare identifier, without a scope prefix. When referencing a Variable Set from a resource in a lower scope, such as harness.platform.Workspace, prefix the reference with account. for an account level Variable Set or org. for an org level Variable Set. An unprefixed reference is resolved against the consuming resource’s own project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    // Look up an account level Variable Set. Omit both org_id and project_id.
    const accountLevel = harness.platform.getInfraVariableSet({
        identifier: "account_variable_set",
    });
    // Look up an org level Variable Set. Set org_id only.
    const orgLevel = harness.platform.getInfraVariableSet({
        identifier: "org_variable_set",
        orgId: exampleHarnessPlatformOrganization.id,
    });
    // Look up a project level Variable Set. Set both org_id and project_id.
    const projectLevel = harness.platform.getInfraVariableSet({
        identifier: "project_variable_set",
        orgId: exampleHarnessPlatformOrganization.id,
        projectId: exampleHarnessPlatformProject.id,
    });
    // Consuming a Variable Set from a Workspace.
    //
    // The exported `id` is the bare identifier, with no scope prefix. Harness resolves an
    // unprefixed reference against the Workspace's own org and project, so a Variable Set
    // that lives above the Workspace must be referenced with a scope prefix:
    //
    //   account level -> "account.${...id}"
    //   org level     -> "org.${...id}"
    //   project level -> "${...id}" (no prefix, must be the same project as the Workspace)
    //
    // Referencing an account or org level Variable Set without the prefix fails with
    // "404 Not Found ... variable set not found", because the lookup is scoped to the project.
    const example = new harness.platform.Workspace("example", {
        identifier: "example",
        name: "example",
        orgId: exampleHarnessPlatformOrganization.id,
        projectId: exampleHarnessPlatformProject.id,
        provisionerType: "terraform",
        provisionerVersion: "1.5.7",
        repository: "https://github.com/org/repo",
        repositoryBranch: "main",
        repositoryPath: "tf/aws/basic",
        repositoryConnector: exampleHarnessPlatformConnectorGithub.id,
        providerConnector: exampleHarnessPlatformConnectorAws.id,
        variableSets: [
            accountLevel.then(accountLevel => `account.${accountLevel.id}`),
            orgLevel.then(orgLevel => `org.${orgLevel.id}`),
            projectLevel.then(projectLevel => projectLevel.id),
        ],
    });
    
    import pulumi
    import pulumi_harness as harness
    
    # Look up an account level Variable Set. Omit both org_id and project_id.
    account_level = harness.platform.get_infra_variable_set(identifier="account_variable_set")
    # Look up an org level Variable Set. Set org_id only.
    org_level = harness.platform.get_infra_variable_set(identifier="org_variable_set",
        org_id=example_harness_platform_organization["id"])
    # Look up a project level Variable Set. Set both org_id and project_id.
    project_level = harness.platform.get_infra_variable_set(identifier="project_variable_set",
        org_id=example_harness_platform_organization["id"],
        project_id=example_harness_platform_project["id"])
    # Consuming a Variable Set from a Workspace.
    #
    # The exported `id` is the bare identifier, with no scope prefix. Harness resolves an
    # unprefixed reference against the Workspace's own org and project, so a Variable Set
    # that lives above the Workspace must be referenced with a scope prefix:
    #
    #   account level -> "account.${...id}"
    #   org level     -> "org.${...id}"
    #   project level -> "${...id}" (no prefix, must be the same project as the Workspace)
    #
    # Referencing an account or org level Variable Set without the prefix fails with
    # "404 Not Found ... variable set not found", because the lookup is scoped to the project.
    example = harness.platform.Workspace("example",
        identifier="example",
        name="example",
        org_id=example_harness_platform_organization["id"],
        project_id=example_harness_platform_project["id"],
        provisioner_type="terraform",
        provisioner_version="1.5.7",
        repository="https://github.com/org/repo",
        repository_branch="main",
        repository_path="tf/aws/basic",
        repository_connector=example_harness_platform_connector_github["id"],
        provider_connector=example_harness_platform_connector_aws["id"],
        variable_sets=[
            f"account.{account_level.id}",
            f"org.{org_level.id}",
            project_level.id,
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Look up an account level Variable Set. Omit both org_id and project_id.
    		accountLevel, err := platform.LookupInfraVariableSet(ctx, &platform.LookupInfraVariableSetArgs{
    			Identifier: "account_variable_set",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Look up an org level Variable Set. Set org_id only.
    		orgLevel, err := platform.LookupInfraVariableSet(ctx, &platform.LookupInfraVariableSetArgs{
    			Identifier: "org_variable_set",
    			OrgId:      pulumi.StringRef(exampleHarnessPlatformOrganization.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Look up a project level Variable Set. Set both org_id and project_id.
    		projectLevel, err := platform.LookupInfraVariableSet(ctx, &platform.LookupInfraVariableSetArgs{
    			Identifier: "project_variable_set",
    			OrgId:      pulumi.StringRef(exampleHarnessPlatformOrganization.Id),
    			ProjectId:  pulumi.StringRef(exampleHarnessPlatformProject.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Consuming a Variable Set from a Workspace.
    		//
    		// The exported `id` is the bare identifier, with no scope prefix. Harness resolves an
    		// unprefixed reference against the Workspace's own org and project, so a Variable Set
    		// that lives above the Workspace must be referenced with a scope prefix:
    		//
    		//	account level -> "account.${...id}"
    		//	org level     -> "org.${...id}"
    		//	project level -> "${...id}" (no prefix, must be the same project as the Workspace)
    		//
    		// Referencing an account or org level Variable Set without the prefix fails with
    		// "404 Not Found ... variable set not found", because the lookup is scoped to the project.
    		_, err = platform.NewWorkspace(ctx, "example", &platform.WorkspaceArgs{
    			Identifier:          pulumi.String("example"),
    			Name:                pulumi.String("example"),
    			OrgId:               pulumi.Any(exampleHarnessPlatformOrganization.Id),
    			ProjectId:           pulumi.Any(exampleHarnessPlatformProject.Id),
    			ProvisionerType:     pulumi.String("terraform"),
    			ProvisionerVersion:  pulumi.String("1.5.7"),
    			Repository:          pulumi.String("https://github.com/org/repo"),
    			RepositoryBranch:    pulumi.String("main"),
    			RepositoryPath:      pulumi.String("tf/aws/basic"),
    			RepositoryConnector: pulumi.Any(exampleHarnessPlatformConnectorGithub.Id),
    			ProviderConnector:   pulumi.Any(exampleHarnessPlatformConnectorAws.Id),
    			VariableSets: pulumi.StringArray{
    				pulumi.Sprintf("account.%v", accountLevel.Id),
    				pulumi.Sprintf("org.%v", orgLevel.Id),
    				pulumi.String(projectLevel.Id),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        // Look up an account level Variable Set. Omit both org_id and project_id.
        var accountLevel = Harness.Platform.GetInfraVariableSet.Invoke(new()
        {
            Identifier = "account_variable_set",
        });
    
        // Look up an org level Variable Set. Set org_id only.
        var orgLevel = Harness.Platform.GetInfraVariableSet.Invoke(new()
        {
            Identifier = "org_variable_set",
            OrgId = exampleHarnessPlatformOrganization.Id,
        });
    
        // Look up a project level Variable Set. Set both org_id and project_id.
        var projectLevel = Harness.Platform.GetInfraVariableSet.Invoke(new()
        {
            Identifier = "project_variable_set",
            OrgId = exampleHarnessPlatformOrganization.Id,
            ProjectId = exampleHarnessPlatformProject.Id,
        });
    
        // Consuming a Variable Set from a Workspace.
        //
        // The exported `id` is the bare identifier, with no scope prefix. Harness resolves an
        // unprefixed reference against the Workspace's own org and project, so a Variable Set
        // that lives above the Workspace must be referenced with a scope prefix:
        //
        //   account level -> "account.${...id}"
        //   org level     -> "org.${...id}"
        //   project level -> "${...id}" (no prefix, must be the same project as the Workspace)
        //
        // Referencing an account or org level Variable Set without the prefix fails with
        // "404 Not Found ... variable set not found", because the lookup is scoped to the project.
        var example = new Harness.Platform.Workspace("example", new()
        {
            Identifier = "example",
            Name = "example",
            OrgId = exampleHarnessPlatformOrganization.Id,
            ProjectId = exampleHarnessPlatformProject.Id,
            ProvisionerType = "terraform",
            ProvisionerVersion = "1.5.7",
            Repository = "https://github.com/org/repo",
            RepositoryBranch = "main",
            RepositoryPath = "tf/aws/basic",
            RepositoryConnector = exampleHarnessPlatformConnectorGithub.Id,
            ProviderConnector = exampleHarnessPlatformConnectorAws.Id,
            VariableSets = new[]
            {
                $"account.{accountLevel.Apply(getInfraVariableSetResult => getInfraVariableSetResult.Id)}",
                $"org.{orgLevel.Apply(getInfraVariableSetResult => getInfraVariableSetResult.Id)}",
                projectLevel.Apply(getInfraVariableSetResult => getInfraVariableSetResult.Id),
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.PlatformFunctions;
    import com.pulumi.harness.platform.inputs.GetInfraVariableSetArgs;
    import com.pulumi.harness.platform.Workspace;
    import com.pulumi.harness.platform.WorkspaceArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            // Look up an account level Variable Set. Omit both org_id and project_id.
            final var accountLevel = PlatformFunctions.getInfraVariableSet(GetInfraVariableSetArgs.builder()
                .identifier("account_variable_set")
                .build());
    
            // Look up an org level Variable Set. Set org_id only.
            final var orgLevel = PlatformFunctions.getInfraVariableSet(GetInfraVariableSetArgs.builder()
                .identifier("org_variable_set")
                .orgId(exampleHarnessPlatformOrganization.id())
                .build());
    
            // Look up a project level Variable Set. Set both org_id and project_id.
            final var projectLevel = PlatformFunctions.getInfraVariableSet(GetInfraVariableSetArgs.builder()
                .identifier("project_variable_set")
                .orgId(exampleHarnessPlatformOrganization.id())
                .projectId(exampleHarnessPlatformProject.id())
                .build());
    
            // Consuming a Variable Set from a Workspace.
            //
            // The exported `id` is the bare identifier, with no scope prefix. Harness resolves an
            // unprefixed reference against the Workspace's own org and project, so a Variable Set
            // that lives above the Workspace must be referenced with a scope prefix:
            //
            //   account level -> "account.${...id}"
            //   org level     -> "org.${...id}"
            //   project level -> "${...id}" (no prefix, must be the same project as the Workspace)
            //
            // Referencing an account or org level Variable Set without the prefix fails with
            // "404 Not Found ... variable set not found", because the lookup is scoped to the project.
            var example = new Workspace("example", WorkspaceArgs.builder()
                .identifier("example")
                .name("example")
                .orgId(exampleHarnessPlatformOrganization.id())
                .projectId(exampleHarnessPlatformProject.id())
                .provisionerType("terraform")
                .provisionerVersion("1.5.7")
                .repository("https://github.com/org/repo")
                .repositoryBranch("main")
                .repositoryPath("tf/aws/basic")
                .repositoryConnector(exampleHarnessPlatformConnectorGithub.id())
                .providerConnector(exampleHarnessPlatformConnectorAws.id())
                .variableSets(            
                    String.format("account.%s", accountLevel.id()),
                    String.format("org.%s", orgLevel.id()),
                    projectLevel.id())
                .build());
    
        }
    }
    
    resources:
      # Consuming a Variable Set from a Workspace.
      #
      # The exported `id` is the bare identifier, with no scope prefix. Harness resolves an
      # unprefixed reference against the Workspace's own org and project, so a Variable Set
      # that lives above the Workspace must be referenced with a scope prefix:
      #
      #   account level -> "account.${...id}"
      #   org level     -> "org.${...id}"
      #   project level -> "${...id}" (no prefix, must be the same project as the Workspace)
      #
      # Referencing an account or org level Variable Set without the prefix fails with
      # "404 Not Found ... variable set not found", because the lookup is scoped to the project.
      example:
        type: harness:platform:Workspace
        properties:
          identifier: example
          name: example
          orgId: ${exampleHarnessPlatformOrganization.id}
          projectId: ${exampleHarnessPlatformProject.id}
          provisionerType: terraform
          provisionerVersion: 1.5.7
          repository: https://github.com/org/repo
          repositoryBranch: main
          repositoryPath: tf/aws/basic
          repositoryConnector: ${exampleHarnessPlatformConnectorGithub.id}
          providerConnector: ${exampleHarnessPlatformConnectorAws.id}
          variableSets:
            - account.${accountLevel.id}
            - org.${orgLevel.id}
            - ${projectLevel.id}
    variables:
      # Look up an account level Variable Set. Omit both org_id and project_id.
      accountLevel:
        fn::invoke:
          function: harness:platform:getInfraVariableSet
          arguments:
            identifier: account_variable_set
      # Look up an org level Variable Set. Set org_id only.
      orgLevel:
        fn::invoke:
          function: harness:platform:getInfraVariableSet
          arguments:
            identifier: org_variable_set
            orgId: ${exampleHarnessPlatformOrganization.id}
      # Look up a project level Variable Set. Set both org_id and project_id.
      projectLevel:
        fn::invoke:
          function: harness:platform:getInfraVariableSet
          arguments:
            identifier: project_variable_set
            orgId: ${exampleHarnessPlatformOrganization.id}
            projectId: ${exampleHarnessPlatformProject.id}
    
    pulumi {
      required_providers {
        harness = {
          source = "pulumi/harness"
        }
      }
    }
    
    data "harness_platform_getinfravariableset" "accountLevel" {
      identifier = "account_variable_set"
    }
    data "harness_platform_getinfravariableset" "orgLevel" {
      identifier = "org_variable_set"
      org_id     = exampleHarnessPlatformOrganization.id
    }
    data "harness_platform_getinfravariableset" "projectLevel" {
      identifier = "project_variable_set"
      org_id     = exampleHarnessPlatformOrganization.id
      project_id = exampleHarnessPlatformProject.id
    }
    
    # Consuming a Variable Set from a Workspace.
    #
    # The exported `id` is the bare identifier, with no scope prefix. Harness resolves an
    # unprefixed reference against the Workspace's own org and project, so a Variable Set
    # that lives above the Workspace must be referenced with a scope prefix:
    #
    #   account level -> "account.${...id}"
    #   org level     -> "org.${...id}"
    #   project level -> "${...id}" (no prefix, must be the same project as the Workspace)
    #
    # Referencing an account or org level Variable Set without the prefix fails with
    # "404 Not Found ... variable set not found", because the lookup is scoped to the project.
    resource "harness_platform_workspace" "example" {
      identifier           = "example"
      name                 = "example"
      org_id               = exampleHarnessPlatformOrganization.id
      project_id           = exampleHarnessPlatformProject.id
      provisioner_type     = "terraform"
      provisioner_version  = "1.5.7"
      repository           = "https://github.com/org/repo"
      repository_branch    = "main"
      repository_path      = "tf/aws/basic"
      repository_connector = exampleHarnessPlatformConnectorGithub.id
      provider_connector   = exampleHarnessPlatformConnectorAws.id
      variable_sets        = ["account.${data.harness_platform_getinfravariableset.accountLevel.id}", "org.${data.harness_platform_getinfravariableset.orgLevel.id}", data.harness_platform_getinfravariableset.projectLevel.id]
    }
    # Look up an account level Variable Set. Omit both org_id and project_id.
    # Look up an org level Variable Set. Set org_id only.
    # Look up a project level Variable Set. Set both org_id and project_id.
    

    Using getInfraVariableSet

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getInfraVariableSet(args: GetInfraVariableSetArgs, opts?: InvokeOptions): Promise<GetInfraVariableSetResult>
    function getInfraVariableSetOutput(args: GetInfraVariableSetOutputArgs, opts?: InvokeOutputOptions): Output<GetInfraVariableSetResult>
    def get_infra_variable_set(identifier: Optional[str] = None,
                               name: Optional[str] = None,
                               org_id: Optional[str] = None,
                               project_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetInfraVariableSetResult
    def get_infra_variable_set_output(identifier: pulumi.Input[Optional[str]] = None,
                               name: pulumi.Input[Optional[str]] = None,
                               org_id: pulumi.Input[Optional[str]] = None,
                               project_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetInfraVariableSetResult]
    func LookupInfraVariableSet(ctx *Context, args *LookupInfraVariableSetArgs, opts ...InvokeOption) (*LookupInfraVariableSetResult, error)
    func LookupInfraVariableSetOutput(ctx *Context, args *LookupInfraVariableSetOutputArgs, opts ...InvokeOption) LookupInfraVariableSetResultOutput

    > Note: This function is named LookupInfraVariableSet in the Go SDK.

    public static class GetInfraVariableSet 
    {
        public static Task<GetInfraVariableSetResult> InvokeAsync(GetInfraVariableSetArgs args, InvokeOptions? opts = null)
        public static Output<GetInfraVariableSetResult> Invoke(GetInfraVariableSetInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetInfraVariableSetResult> Invoke(GetInfraVariableSetInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetInfraVariableSetResult> getInfraVariableSet(GetInfraVariableSetArgs args, InvokeOptions options)
    public static Output<GetInfraVariableSetResult> getInfraVariableSet(GetInfraVariableSetArgs args, InvokeOptions options)
    public static Output<GetInfraVariableSetResult> getInfraVariableSet(GetInfraVariableSetArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: harness:platform/getInfraVariableSet:getInfraVariableSet
      arguments:
        # arguments dictionary
    data "harness_platform_get_infra_variable_set" "name" {
        # arguments
    }

    The following arguments are supported:

    Identifier string
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    Name string
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    OrgId string
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    ProjectId string
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    Identifier string
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    Name string
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    OrgId string
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    ProjectId string
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    identifier string
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    name string
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    org_id string
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    project_id string
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    identifier String
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    name String
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    orgId String
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    projectId String
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    identifier string
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    name string
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    orgId string
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    projectId string
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    identifier str
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    name str
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    org_id str
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    project_id str
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    identifier String
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    name String
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    orgId String
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    projectId String
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.

    getInfraVariableSet Result

    The following output properties are available:

    Connectors List<GetInfraVariableSetConnector>
    Provider connectors configured on the Variable Set.
    Description string
    Description of the Variable Set.
    EnvironmentVariables List<GetInfraVariableSetEnvironmentVariable>
    Environment variables configured on the Variable Set
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    Name string
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    Tags List<string>
    Tags are not supported on Variable Sets. This attribute is always empty.
    TerraformVariableFiles List<GetInfraVariableSetTerraformVariableFile>
    Terraform variables files configured on the Variable Set (see below for nested schema)
    TerraformVariables List<GetInfraVariableSetTerraformVariable>
    Terraform variables configured on the Variable Set. (see below for nested schema)
    OrgId string
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    ProjectId string
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    Connectors []GetInfraVariableSetConnector
    Provider connectors configured on the Variable Set.
    Description string
    Description of the Variable Set.
    EnvironmentVariables []GetInfraVariableSetEnvironmentVariable
    Environment variables configured on the Variable Set
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    Name string
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    Tags []string
    Tags are not supported on Variable Sets. This attribute is always empty.
    TerraformVariableFiles []GetInfraVariableSetTerraformVariableFile
    Terraform variables files configured on the Variable Set (see below for nested schema)
    TerraformVariables []GetInfraVariableSetTerraformVariable
    Terraform variables configured on the Variable Set. (see below for nested schema)
    OrgId string
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    ProjectId string
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    connectors list(object)
    Provider connectors configured on the Variable Set.
    description string
    Description of the Variable Set.
    environment_variables list(object)
    Environment variables configured on the Variable Set
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    name string
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    tags list(string)
    Tags are not supported on Variable Sets. This attribute is always empty.
    terraform_variable_files list(object)
    Terraform variables files configured on the Variable Set (see below for nested schema)
    terraform_variables list(object)
    Terraform variables configured on the Variable Set. (see below for nested schema)
    org_id string
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    project_id string
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    connectors List<GetInfraVariableSetConnector>
    Provider connectors configured on the Variable Set.
    description String
    Description of the Variable Set.
    environmentVariables List<GetInfraVariableSetEnvironmentVariable>
    Environment variables configured on the Variable Set
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    name String
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    tags List<String>
    Tags are not supported on Variable Sets. This attribute is always empty.
    terraformVariableFiles List<GetInfraVariableSetTerraformVariableFile>
    Terraform variables files configured on the Variable Set (see below for nested schema)
    terraformVariables List<GetInfraVariableSetTerraformVariable>
    Terraform variables configured on the Variable Set. (see below for nested schema)
    orgId String
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    projectId String
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    connectors GetInfraVariableSetConnector[]
    Provider connectors configured on the Variable Set.
    description string
    Description of the Variable Set.
    environmentVariables GetInfraVariableSetEnvironmentVariable[]
    Environment variables configured on the Variable Set
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    name string
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    tags string[]
    Tags are not supported on Variable Sets. This attribute is always empty.
    terraformVariableFiles GetInfraVariableSetTerraformVariableFile[]
    Terraform variables files configured on the Variable Set (see below for nested schema)
    terraformVariables GetInfraVariableSetTerraformVariable[]
    Terraform variables configured on the Variable Set. (see below for nested schema)
    orgId string
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    projectId string
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    connectors Sequence[GetInfraVariableSetConnector]
    Provider connectors configured on the Variable Set.
    description str
    Description of the Variable Set.
    environment_variables Sequence[GetInfraVariableSetEnvironmentVariable]
    Environment variables configured on the Variable Set
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    name str
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    tags Sequence[str]
    Tags are not supported on Variable Sets. This attribute is always empty.
    terraform_variable_files Sequence[GetInfraVariableSetTerraformVariableFile]
    Terraform variables files configured on the Variable Set (see below for nested schema)
    terraform_variables Sequence[GetInfraVariableSetTerraformVariable]
    Terraform variables configured on the Variable Set. (see below for nested schema)
    org_id str
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    project_id str
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.
    connectors List<Property Map>
    Provider connectors configured on the Variable Set.
    description String
    Description of the Variable Set.
    environmentVariables List<Property Map>
    Environment variables configured on the Variable Set
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the Variable Set. Do not include a scope prefix here; use orgid and projectid to select the scope.
    name String
    Name of the Variable Set. This is an output; a value set here is ignored by the lookup.
    tags List<String>
    Tags are not supported on Variable Sets. This attribute is always empty.
    terraformVariableFiles List<Property Map>
    Terraform variables files configured on the Variable Set (see below for nested schema)
    terraformVariables List<Property Map>
    Terraform variables configured on the Variable Set. (see below for nested schema)
    orgId String
    Organization identifier of the organization the Variable Set resides in. Leave empty to look up an account level Variable Set.
    projectId String
    Project identifier of the project the Variable Set resides in. Leave empty to look up an account or org level Variable Set.

    Supporting Types

    GetInfraVariableSetConnector

    ConnectorRef string
    Connector Ref is the reference to the connector
    Type string
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    ConnectorRef string
    Connector Ref is the reference to the connector
    Type string
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    connector_ref string
    Connector Ref is the reference to the connector
    type string
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    connectorRef String
    Connector Ref is the reference to the connector
    type String
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    connectorRef string
    Connector Ref is the reference to the connector
    type string
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    connector_ref str
    Connector Ref is the reference to the connector
    type str
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    connectorRef String
    Connector Ref is the reference to the connector
    type String
    Type is the connector type of the connector. Supported types: aws, azure, gcp

    GetInfraVariableSetEnvironmentVariable

    Key string
    Key is the identifier for the variable.
    Value string
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    ValueType string
    Value type indicates the value type of the variable, either string or secret.
    Key string
    Key is the identifier for the variable.
    Value string
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    ValueType string
    Value type indicates the value type of the variable, either string or secret.
    key string
    Key is the identifier for the variable.
    value string
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    value_type string
    Value type indicates the value type of the variable, either string or secret.
    key String
    Key is the identifier for the variable.
    value String
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    valueType String
    Value type indicates the value type of the variable, either string or secret.
    key string
    Key is the identifier for the variable.
    value string
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    valueType string
    Value type indicates the value type of the variable, either string or secret.
    key str
    Key is the identifier for the variable.
    value str
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    value_type str
    Value type indicates the value type of the variable, either string or secret.
    key String
    Key is the identifier for the variable.
    value String
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    valueType String
    Value type indicates the value type of the variable, either string or secret.

    GetInfraVariableSetTerraformVariable

    Key string
    Key is the identifier for the variable.
    Value string
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    ValueType string
    Value type indicates the value type of the variable, either string or secret.
    Key string
    Key is the identifier for the variable.
    Value string
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    ValueType string
    Value type indicates the value type of the variable, either string or secret.
    key string
    Key is the identifier for the variable.
    value string
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    value_type string
    Value type indicates the value type of the variable, either string or secret.
    key String
    Key is the identifier for the variable.
    value String
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    valueType String
    Value type indicates the value type of the variable, either string or secret.
    key string
    Key is the identifier for the variable.
    value string
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    valueType string
    Value type indicates the value type of the variable, either string or secret.
    key str
    Key is the identifier for the variable.
    value str
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    value_type str
    Value type indicates the value type of the variable, either string or secret.
    key String
    Key is the identifier for the variable.
    value String
    Value is the value of the variable. For string value types this field contains the value of the variable. For secret value types this contains a reference to a Harness secret.
    valueType String
    Value type indicates the value type of the variable, either string or secret.

    GetInfraVariableSetTerraformVariableFile

    Repository string
    Repository is the name of the repository the variables are fetched from.
    RepositoryBranch string
    Repository branch is the name of the branch the variables are fetched from.
    RepositoryCommit string
    Repository commit is the tag the variables are fetched from.
    RepositoryConnector string
    Repository connector is the reference to the connector used to fetch the variables.
    RepositoryPath string
    Repository path is the path in which the variables reside.
    RepositorySha string
    Repository sha is the commit SHA the variables are fetched from.
    Repository string
    Repository is the name of the repository the variables are fetched from.
    RepositoryBranch string
    Repository branch is the name of the branch the variables are fetched from.
    RepositoryCommit string
    Repository commit is the tag the variables are fetched from.
    RepositoryConnector string
    Repository connector is the reference to the connector used to fetch the variables.
    RepositoryPath string
    Repository path is the path in which the variables reside.
    RepositorySha string
    Repository sha is the commit SHA the variables are fetched from.
    repository string
    Repository is the name of the repository the variables are fetched from.
    repository_branch string
    Repository branch is the name of the branch the variables are fetched from.
    repository_commit string
    Repository commit is the tag the variables are fetched from.
    repository_connector string
    Repository connector is the reference to the connector used to fetch the variables.
    repository_path string
    Repository path is the path in which the variables reside.
    repository_sha string
    Repository sha is the commit SHA the variables are fetched from.
    repository String
    Repository is the name of the repository the variables are fetched from.
    repositoryBranch String
    Repository branch is the name of the branch the variables are fetched from.
    repositoryCommit String
    Repository commit is the tag the variables are fetched from.
    repositoryConnector String
    Repository connector is the reference to the connector used to fetch the variables.
    repositoryPath String
    Repository path is the path in which the variables reside.
    repositorySha String
    Repository sha is the commit SHA the variables are fetched from.
    repository string
    Repository is the name of the repository the variables are fetched from.
    repositoryBranch string
    Repository branch is the name of the branch the variables are fetched from.
    repositoryCommit string
    Repository commit is the tag the variables are fetched from.
    repositoryConnector string
    Repository connector is the reference to the connector used to fetch the variables.
    repositoryPath string
    Repository path is the path in which the variables reside.
    repositorySha string
    Repository sha is the commit SHA the variables are fetched from.
    repository str
    Repository is the name of the repository the variables are fetched from.
    repository_branch str
    Repository branch is the name of the branch the variables are fetched from.
    repository_commit str
    Repository commit is the tag the variables are fetched from.
    repository_connector str
    Repository connector is the reference to the connector used to fetch the variables.
    repository_path str
    Repository path is the path in which the variables reside.
    repository_sha str
    Repository sha is the commit SHA the variables are fetched from.
    repository String
    Repository is the name of the repository the variables are fetched from.
    repositoryBranch String
    Repository branch is the name of the branch the variables are fetched from.
    repositoryCommit String
    Repository commit is the tag the variables are fetched from.
    repositoryConnector String
    Repository connector is the reference to the connector used to fetch the variables.
    repositoryPath String
    Repository path is the path in which the variables reside.
    repositorySha String
    Repository sha is the commit SHA the variables are fetched from.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.16.5
    published on Saturday, Sep 12, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial