Harness v0.6.0 published on Tuesday, Mar 25, 2025 by Pulumi
harness.platform.getInfraVariableSet
Explore with Pulumi AI
Data source for retrieving Variable Sets.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const test = harness.platform.getInfraVariableSet({
    identifier: "identifier",
    orgId: "org_id",
    projectId: "project_id",
});
import pulumi
import pulumi_harness as harness
test = harness.platform.get_infra_variable_set(identifier="identifier",
    org_id="org_id",
    project_id="project_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 {
		_, err := platform.LookupInfraVariableSet(ctx, &platform.LookupInfraVariableSetArgs{
			Identifier: "identifier",
			OrgId:      pulumi.StringRef("org_id"),
			ProjectId:  pulumi.StringRef("project_id"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() => 
{
    var test = Harness.Platform.GetInfraVariableSet.Invoke(new()
    {
        Identifier = "identifier",
        OrgId = "org_id",
        ProjectId = "project_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 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) {
        final var test = PlatformFunctions.getInfraVariableSet(GetInfraVariableSetArgs.builder()
            .identifier("identifier")
            .orgId("org_id")
            .projectId("project_id")
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: harness:platform:getInfraVariableSet
      arguments:
        identifier: identifier
        orgId: org_id
        projectId: 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?: InvokeOptions): Output<GetInfraVariableSetResult>def get_infra_variable_set(connectors: Optional[Sequence[GetInfraVariableSetConnector]] = None,
                           environment_variables: Optional[Sequence[GetInfraVariableSetEnvironmentVariable]] = None,
                           identifier: Optional[str] = None,
                           name: Optional[str] = None,
                           org_id: Optional[str] = None,
                           project_id: Optional[str] = None,
                           terraform_variable_files: Optional[Sequence[GetInfraVariableSetTerraformVariableFile]] = None,
                           terraform_variables: Optional[Sequence[GetInfraVariableSetTerraformVariable]] = None,
                           opts: Optional[InvokeOptions] = None) -> GetInfraVariableSetResult
def get_infra_variable_set_output(connectors: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfraVariableSetConnectorArgs]]]] = None,
                           environment_variables: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfraVariableSetEnvironmentVariableArgs]]]] = None,
                           identifier: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           org_id: Optional[pulumi.Input[str]] = None,
                           project_id: Optional[pulumi.Input[str]] = None,
                           terraform_variable_files: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfraVariableSetTerraformVariableFileArgs]]]] = None,
                           terraform_variables: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfraVariableSetTerraformVariableArgs]]]] = None,
                           opts: Optional[InvokeOptions] = 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 CompletableFuture<GetInfraVariableSetResult> getInfraVariableSet(GetInfraVariableSetArgs args, InvokeOptions options)
public static Output<GetInfraVariableSetResult> getInfraVariableSet(GetInfraVariableSetArgs args, InvokeOptions options)
fn::invoke:
  function: harness:platform/getInfraVariableSet:getInfraVariableSet
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Identifier string
 - Identifier of the Variable Set
 - Connectors
List<Get
Infra Variable Set Connector>  - Provider connector configured on the variable set
 - Environment
Variables List<GetInfra Variable Set Environment Variable>  - Environment variables configured on the variable set
 - Name string
 - Name of the Variable Set
 - Org
Id string - Organization Identifier
 - Project
Id string - Project Identifier
 - Terraform
Variable List<GetFiles Infra Variable Set Terraform Variable File>  - Terraform
Variables List<GetInfra Variable Set Terraform Variable>  
- Identifier string
 - Identifier of the Variable Set
 - Connectors
[]Get
Infra Variable Set Connector  - Provider connector configured on the variable set
 - Environment
Variables []GetInfra Variable Set Environment Variable  - Environment variables configured on the variable set
 - Name string
 - Name of the Variable Set
 - Org
Id string - Organization Identifier
 - Project
Id string - Project Identifier
 - Terraform
Variable []GetFiles Infra Variable Set Terraform Variable File  - Terraform
Variables []GetInfra Variable Set Terraform Variable  
- identifier String
 - Identifier of the Variable Set
 - connectors
List<Get
Infra Variable Set Connector>  - Provider connector configured on the variable set
 - environment
Variables List<GetInfra Variable Set Environment Variable>  - Environment variables configured on the variable set
 - name String
 - Name of the Variable Set
 - org
Id String - Organization Identifier
 - project
Id String - Project Identifier
 - terraform
Variable List<GetFiles Infra Variable Set Terraform Variable File>  - terraform
Variables List<GetInfra Variable Set Terraform Variable>  
- identifier string
 - Identifier of the Variable Set
 - connectors
Get
Infra Variable Set Connector[]  - Provider connector configured on the variable set
 - environment
Variables GetInfra Variable Set Environment Variable[]  - Environment variables configured on the variable set
 - name string
 - Name of the Variable Set
 - org
Id string - Organization Identifier
 - project
Id string - Project Identifier
 - terraform
Variable GetFiles Infra Variable Set Terraform Variable File[]  - terraform
Variables GetInfra Variable Set Terraform Variable[]  
- identifier str
 - Identifier of the Variable Set
 - connectors
Sequence[Get
Infra Variable Set Connector]  - Provider connector configured on the variable set
 - environment_
variables Sequence[GetInfra Variable Set Environment Variable]  - Environment variables configured on the variable set
 - name str
 - Name of the Variable Set
 - org_
id str - Organization Identifier
 - project_
id str - Project Identifier
 - terraform_
variable_ Sequence[Getfiles Infra Variable Set Terraform Variable File]  - terraform_
variables Sequence[GetInfra Variable Set Terraform Variable]  
- identifier String
 - Identifier of the Variable Set
 - connectors List<Property Map>
 - Provider connector configured on the variable set
 - environment
Variables List<Property Map> - Environment variables configured on the variable set
 - name String
 - Name of the Variable Set
 - org
Id String - Organization Identifier
 - project
Id String - Project Identifier
 - terraform
Variable List<Property Map>Files  - terraform
Variables List<Property Map> 
getInfraVariableSet Result
The following output properties are available:
- Connectors
List<Get
Infra Variable Set Connector>  - Provider connector configured on the variable set
 - Description string
 - Description of the Variable Set
 - Environment
Variables List<GetInfra Variable Set Environment Variable>  - 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
 - List<string>
 - Terraform
Variable List<GetFiles Infra Variable Set Terraform Variable File>  - Terraform
Variables List<GetInfra Variable Set Terraform Variable>  - Name string
 - Name of the Variable Set
 - Org
Id string - Organization Identifier
 - Project
Id string - Project Identifier
 
- Connectors
[]Get
Infra Variable Set Connector  - Provider connector configured on the variable set
 - Description string
 - Description of the Variable Set
 - Environment
Variables []GetInfra Variable Set Environment Variable  - 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
 - []string
 - Terraform
Variable []GetFiles Infra Variable Set Terraform Variable File  - Terraform
Variables []GetInfra Variable Set Terraform Variable  - Name string
 - Name of the Variable Set
 - Org
Id string - Organization Identifier
 - Project
Id string - Project Identifier
 
- connectors
List<Get
Infra Variable Set Connector>  - Provider connector configured on the variable set
 - description String
 - Description of the Variable Set
 - environment
Variables List<GetInfra Variable Set Environment Variable>  - 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
 - List<String>
 - terraform
Variable List<GetFiles Infra Variable Set Terraform Variable File>  - terraform
Variables List<GetInfra Variable Set Terraform Variable>  - name String
 - Name of the Variable Set
 - org
Id String - Organization Identifier
 - project
Id String - Project Identifier
 
- connectors
Get
Infra Variable Set Connector[]  - Provider connector configured on the variable set
 - description string
 - Description of the Variable Set
 - environment
Variables GetInfra Variable Set Environment Variable[]  - 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
 - string[]
 - terraform
Variable GetFiles Infra Variable Set Terraform Variable File[]  - terraform
Variables GetInfra Variable Set Terraform Variable[]  - name string
 - Name of the Variable Set
 - org
Id string - Organization Identifier
 - project
Id string - Project Identifier
 
- connectors
Sequence[Get
Infra Variable Set Connector]  - Provider connector configured on the variable set
 - description str
 - Description of the Variable Set
 - environment_
variables Sequence[GetInfra Variable Set Environment Variable]  - 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
 - Sequence[str]
 - terraform_
variable_ Sequence[Getfiles Infra Variable Set Terraform Variable File]  - terraform_
variables Sequence[GetInfra Variable Set Terraform Variable]  - name str
 - Name of the Variable Set
 - org_
id str - Organization Identifier
 - project_
id str - Project Identifier
 
- connectors List<Property Map>
 - Provider connector configured on the variable set
 - description String
 - Description of the Variable Set
 - environment
Variables 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
 - List<String>
 - terraform
Variable List<Property Map>Files  - terraform
Variables List<Property Map> - name String
 - Name of the Variable Set
 - org
Id String - Organization Identifier
 - project
Id String - Project Identifier
 
Supporting Types
GetInfraVariableSetConnector    
- Connector
Ref string - Unique identifier of the connector.
 - Type string
 - Type indicates the type of the connector. Currently we support aws, azure, gcp.
 
- Connector
Ref string - Unique identifier of the connector.
 - Type string
 - Type indicates the type of the connector. Currently we support aws, azure, gcp.
 
- connector
Ref String - Unique identifier of the connector.
 - type String
 - Type indicates the type of the connector. Currently we support aws, azure, gcp.
 
- connector
Ref string - Unique identifier of the connector.
 - type string
 - Type indicates the type of the connector. Currently we support aws, azure, gcp.
 
- connector_
ref str - Unique identifier of the connector.
 - type str
 - Type indicates the type of the connector. Currently we support aws, azure, gcp.
 
- connector
Ref String - Unique identifier of the connector.
 - type String
 - Type indicates the type of the connector. Currently we support aws, azure, gcp.
 
GetInfraVariableSetEnvironmentVariable     
- key str
 - Key is the identifier for the variable`
 - value str
 - value is the value of the variable
 - value_
type str - Value type indicates the value type of the variable, text or secret
 
GetInfraVariableSetTerraformVariable     
- key str
 - Key is the identifier for the variable`
 - value str
 - value is the value of the variable
 - value_
type str - Value type indicates the value type of the variable, text or secret
 
GetInfraVariableSetTerraformVariableFile      
- Repository string
 - Repository is the name of the repository to fetch the code from.
 - Repository
Connector string - Repository connector is the reference to the connector used to fetch the variables.
 - Repository
Branch string - Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
 - Repository
Commit string - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
 - Repository
Path string - Repository path is the path in which the variables reside.
 - Repository
Sha string - Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
 
- Repository string
 - Repository is the name of the repository to fetch the code from.
 - Repository
Connector string - Repository connector is the reference to the connector used to fetch the variables.
 - Repository
Branch string - Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
 - Repository
Commit string - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
 - Repository
Path string - Repository path is the path in which the variables reside.
 - Repository
Sha string - Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
 
- repository String
 - Repository is the name of the repository to fetch the code from.
 - repository
Connector String - Repository connector is the reference to the connector used to fetch the variables.
 - repository
Branch String - Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
 - repository
Commit String - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
 - repository
Path String - Repository path is the path in which the variables reside.
 - repository
Sha String - Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
 
- repository string
 - Repository is the name of the repository to fetch the code from.
 - repository
Connector string - Repository connector is the reference to the connector used to fetch the variables.
 - repository
Branch string - Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
 - repository
Commit string - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
 - repository
Path string - Repository path is the path in which the variables reside.
 - repository
Sha string - Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
 
- repository str
 - Repository is the name of the repository to fetch the code from.
 - repository_
connector str - Repository connector is the reference to the connector used to fetch the variables.
 - repository_
branch str - Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
 - repository_
commit str - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
 - repository_
path str - Repository path is the path in which the variables reside.
 - repository_
sha str - Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
 
- repository String
 - Repository is the name of the repository to fetch the code from.
 - repository
Connector String - Repository connector is the reference to the connector used to fetch the variables.
 - repository
Branch String - Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
 - repository
Commit String - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
 - repository
Path String - Repository path is the path in which the variables reside.
 - repository
Sha String - Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
 
Package Details
- Repository
 - harness pulumi/pulumi-harness
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
harnessTerraform Provider.