harness.platform.InfraVariableSet
Explore with Pulumi AI
Resource for managing infrastructure Variable Sets
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = new harness.platform.InfraVariableSet("example", {
    identifier: "example",
    name: "example",
    orgId: test.id,
    projectId: testHarnessPlatformProject.id,
    description: "some description",
    environmentVariables: [
        {
            key: "key1",
            value: "value1",
            valueType: "string",
        },
        {
            key: "key2",
            value: "harness_platform_secret_text.test.id",
            valueType: "secret",
        },
    ],
    terraformVariables: [
        {
            key: "key1",
            value: "1111",
            valueType: "string",
        },
        {
            key: "key2",
            value: "1111u",
            valueType: "string",
        },
    ],
    terraformVariableFiles: [
        {
            repository: "https://github.com/org/repo",
            repositoryBranch: "main",
            repositoryPath: "tf/aws/basic",
            repositoryConnector: "harness_platform_connector_github.test.id",
        },
        {
            repository: "https://github.com/org/repo",
            repositoryBranch: "br2",
            repositoryPath: "tf/aws/basic",
            repositoryConnector: "harness_platform_connector_github.test.id",
        },
    ],
    connectors: [
        {
            connectorRef: "harness_platform_connector_aws.test.id",
            type: "aws",
        },
        {
            connectorRef: "harness_platform_connector_azure.test.id",
            type: "azure",
        },
    ],
});
import pulumi
import pulumi_harness as harness
example = harness.platform.InfraVariableSet("example",
    identifier="example",
    name="example",
    org_id=test["id"],
    project_id=test_harness_platform_project["id"],
    description="some description",
    environment_variables=[
        {
            "key": "key1",
            "value": "value1",
            "value_type": "string",
        },
        {
            "key": "key2",
            "value": "harness_platform_secret_text.test.id",
            "value_type": "secret",
        },
    ],
    terraform_variables=[
        {
            "key": "key1",
            "value": "1111",
            "value_type": "string",
        },
        {
            "key": "key2",
            "value": "1111u",
            "value_type": "string",
        },
    ],
    terraform_variable_files=[
        {
            "repository": "https://github.com/org/repo",
            "repository_branch": "main",
            "repository_path": "tf/aws/basic",
            "repository_connector": "harness_platform_connector_github.test.id",
        },
        {
            "repository": "https://github.com/org/repo",
            "repository_branch": "br2",
            "repository_path": "tf/aws/basic",
            "repository_connector": "harness_platform_connector_github.test.id",
        },
    ],
    connectors=[
        {
            "connector_ref": "harness_platform_connector_aws.test.id",
            "type": "aws",
        },
        {
            "connector_ref": "harness_platform_connector_azure.test.id",
            "type": "azure",
        },
    ])
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.NewInfraVariableSet(ctx, "example", &platform.InfraVariableSetArgs{
			Identifier:  pulumi.String("example"),
			Name:        pulumi.String("example"),
			OrgId:       pulumi.Any(test.Id),
			ProjectId:   pulumi.Any(testHarnessPlatformProject.Id),
			Description: pulumi.String("some description"),
			EnvironmentVariables: platform.InfraVariableSetEnvironmentVariableArray{
				&platform.InfraVariableSetEnvironmentVariableArgs{
					Key:       pulumi.String("key1"),
					Value:     pulumi.String("value1"),
					ValueType: pulumi.String("string"),
				},
				&platform.InfraVariableSetEnvironmentVariableArgs{
					Key:       pulumi.String("key2"),
					Value:     pulumi.String("harness_platform_secret_text.test.id"),
					ValueType: pulumi.String("secret"),
				},
			},
			TerraformVariables: platform.InfraVariableSetTerraformVariableArray{
				&platform.InfraVariableSetTerraformVariableArgs{
					Key:       pulumi.String("key1"),
					Value:     pulumi.String("1111"),
					ValueType: pulumi.String("string"),
				},
				&platform.InfraVariableSetTerraformVariableArgs{
					Key:       pulumi.String("key2"),
					Value:     pulumi.String("1111u"),
					ValueType: pulumi.String("string"),
				},
			},
			TerraformVariableFiles: platform.InfraVariableSetTerraformVariableFileArray{
				&platform.InfraVariableSetTerraformVariableFileArgs{
					Repository:          pulumi.String("https://github.com/org/repo"),
					RepositoryBranch:    pulumi.String("main"),
					RepositoryPath:      pulumi.String("tf/aws/basic"),
					RepositoryConnector: pulumi.String("harness_platform_connector_github.test.id"),
				},
				&platform.InfraVariableSetTerraformVariableFileArgs{
					Repository:          pulumi.String("https://github.com/org/repo"),
					RepositoryBranch:    pulumi.String("br2"),
					RepositoryPath:      pulumi.String("tf/aws/basic"),
					RepositoryConnector: pulumi.String("harness_platform_connector_github.test.id"),
				},
			},
			Connectors: platform.InfraVariableSetConnectorArray{
				&platform.InfraVariableSetConnectorArgs{
					ConnectorRef: pulumi.String("harness_platform_connector_aws.test.id"),
					Type:         pulumi.String("aws"),
				},
				&platform.InfraVariableSetConnectorArgs{
					ConnectorRef: pulumi.String("harness_platform_connector_azure.test.id"),
					Type:         pulumi.String("azure"),
				},
			},
		})
		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 example = new Harness.Platform.InfraVariableSet("example", new()
    {
        Identifier = "example",
        Name = "example",
        OrgId = test.Id,
        ProjectId = testHarnessPlatformProject.Id,
        Description = "some description",
        EnvironmentVariables = new[]
        {
            new Harness.Platform.Inputs.InfraVariableSetEnvironmentVariableArgs
            {
                Key = "key1",
                Value = "value1",
                ValueType = "string",
            },
            new Harness.Platform.Inputs.InfraVariableSetEnvironmentVariableArgs
            {
                Key = "key2",
                Value = "harness_platform_secret_text.test.id",
                ValueType = "secret",
            },
        },
        TerraformVariables = new[]
        {
            new Harness.Platform.Inputs.InfraVariableSetTerraformVariableArgs
            {
                Key = "key1",
                Value = "1111",
                ValueType = "string",
            },
            new Harness.Platform.Inputs.InfraVariableSetTerraformVariableArgs
            {
                Key = "key2",
                Value = "1111u",
                ValueType = "string",
            },
        },
        TerraformVariableFiles = new[]
        {
            new Harness.Platform.Inputs.InfraVariableSetTerraformVariableFileArgs
            {
                Repository = "https://github.com/org/repo",
                RepositoryBranch = "main",
                RepositoryPath = "tf/aws/basic",
                RepositoryConnector = "harness_platform_connector_github.test.id",
            },
            new Harness.Platform.Inputs.InfraVariableSetTerraformVariableFileArgs
            {
                Repository = "https://github.com/org/repo",
                RepositoryBranch = "br2",
                RepositoryPath = "tf/aws/basic",
                RepositoryConnector = "harness_platform_connector_github.test.id",
            },
        },
        Connectors = new[]
        {
            new Harness.Platform.Inputs.InfraVariableSetConnectorArgs
            {
                ConnectorRef = "harness_platform_connector_aws.test.id",
                Type = "aws",
            },
            new Harness.Platform.Inputs.InfraVariableSetConnectorArgs
            {
                ConnectorRef = "harness_platform_connector_azure.test.id",
                Type = "azure",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.InfraVariableSet;
import com.pulumi.harness.platform.InfraVariableSetArgs;
import com.pulumi.harness.platform.inputs.InfraVariableSetEnvironmentVariableArgs;
import com.pulumi.harness.platform.inputs.InfraVariableSetTerraformVariableArgs;
import com.pulumi.harness.platform.inputs.InfraVariableSetTerraformVariableFileArgs;
import com.pulumi.harness.platform.inputs.InfraVariableSetConnectorArgs;
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 InfraVariableSet("example", InfraVariableSetArgs.builder()
            .identifier("example")
            .name("example")
            .orgId(test.id())
            .projectId(testHarnessPlatformProject.id())
            .description("some description")
            .environmentVariables(            
                InfraVariableSetEnvironmentVariableArgs.builder()
                    .key("key1")
                    .value("value1")
                    .valueType("string")
                    .build(),
                InfraVariableSetEnvironmentVariableArgs.builder()
                    .key("key2")
                    .value("harness_platform_secret_text.test.id")
                    .valueType("secret")
                    .build())
            .terraformVariables(            
                InfraVariableSetTerraformVariableArgs.builder()
                    .key("key1")
                    .value("1111")
                    .valueType("string")
                    .build(),
                InfraVariableSetTerraformVariableArgs.builder()
                    .key("key2")
                    .value("1111u")
                    .valueType("string")
                    .build())
            .terraformVariableFiles(            
                InfraVariableSetTerraformVariableFileArgs.builder()
                    .repository("https://github.com/org/repo")
                    .repositoryBranch("main")
                    .repositoryPath("tf/aws/basic")
                    .repositoryConnector("harness_platform_connector_github.test.id")
                    .build(),
                InfraVariableSetTerraformVariableFileArgs.builder()
                    .repository("https://github.com/org/repo")
                    .repositoryBranch("br2")
                    .repositoryPath("tf/aws/basic")
                    .repositoryConnector("harness_platform_connector_github.test.id")
                    .build())
            .connectors(            
                InfraVariableSetConnectorArgs.builder()
                    .connectorRef("harness_platform_connector_aws.test.id")
                    .type("aws")
                    .build(),
                InfraVariableSetConnectorArgs.builder()
                    .connectorRef("harness_platform_connector_azure.test.id")
                    .type("azure")
                    .build())
            .build());
    }
}
resources:
  example:
    type: harness:platform:InfraVariableSet
    properties:
      identifier: example
      name: example
      orgId: ${test.id}
      projectId: ${testHarnessPlatformProject.id}
      description: some description
      environmentVariables:
        - key: key1
          value: value1
          valueType: string
        - key: key2
          value: harness_platform_secret_text.test.id
          valueType: secret
      terraformVariables:
        - key: key1
          value: '1111'
          valueType: string
        - key: key2
          value: 1111u
          valueType: string
      terraformVariableFiles:
        - repository: https://github.com/org/repo
          repositoryBranch: main
          repositoryPath: tf/aws/basic
          repositoryConnector: harness_platform_connector_github.test.id
        - repository: https://github.com/org/repo
          repositoryBranch: br2
          repositoryPath: tf/aws/basic
          repositoryConnector: harness_platform_connector_github.test.id
      connectors:
        - connectorRef: harness_platform_connector_aws.test.id
          type: aws
        - connectorRef: harness_platform_connector_azure.test.id
          type: azure
Create InfraVariableSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InfraVariableSet(name: string, args: InfraVariableSetArgs, opts?: CustomResourceOptions);@overload
def InfraVariableSet(resource_name: str,
                     args: InfraVariableSetArgs,
                     opts: Optional[ResourceOptions] = None)
@overload
def InfraVariableSet(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     identifier: Optional[str] = None,
                     connectors: Optional[Sequence[InfraVariableSetConnectorArgs]] = None,
                     description: Optional[str] = None,
                     environment_variables: Optional[Sequence[InfraVariableSetEnvironmentVariableArgs]] = None,
                     name: Optional[str] = None,
                     org_id: Optional[str] = None,
                     project_id: Optional[str] = None,
                     tags: Optional[Sequence[str]] = None,
                     terraform_variable_files: Optional[Sequence[InfraVariableSetTerraformVariableFileArgs]] = None,
                     terraform_variables: Optional[Sequence[InfraVariableSetTerraformVariableArgs]] = None)func NewInfraVariableSet(ctx *Context, name string, args InfraVariableSetArgs, opts ...ResourceOption) (*InfraVariableSet, error)public InfraVariableSet(string name, InfraVariableSetArgs args, CustomResourceOptions? opts = null)
public InfraVariableSet(String name, InfraVariableSetArgs args)
public InfraVariableSet(String name, InfraVariableSetArgs args, CustomResourceOptions options)
type: harness:platform:InfraVariableSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InfraVariableSetArgs
- 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 InfraVariableSetArgs
- 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 InfraVariableSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InfraVariableSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InfraVariableSetArgs
- 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 infraVariableSetResource = new Harness.Platform.InfraVariableSet("infraVariableSetResource", new()
{
    Identifier = "string",
    Connectors = new[]
    {
        new Harness.Platform.Inputs.InfraVariableSetConnectorArgs
        {
            ConnectorRef = "string",
            Type = "string",
        },
    },
    Description = "string",
    EnvironmentVariables = new[]
    {
        new Harness.Platform.Inputs.InfraVariableSetEnvironmentVariableArgs
        {
            Key = "string",
            Value = "string",
            ValueType = "string",
        },
    },
    Name = "string",
    OrgId = "string",
    ProjectId = "string",
    Tags = new[]
    {
        "string",
    },
    TerraformVariableFiles = new[]
    {
        new Harness.Platform.Inputs.InfraVariableSetTerraformVariableFileArgs
        {
            Repository = "string",
            RepositoryConnector = "string",
            RepositoryBranch = "string",
            RepositoryCommit = "string",
            RepositoryPath = "string",
            RepositorySha = "string",
        },
    },
    TerraformVariables = new[]
    {
        new Harness.Platform.Inputs.InfraVariableSetTerraformVariableArgs
        {
            Key = "string",
            Value = "string",
            ValueType = "string",
        },
    },
});
example, err := platform.NewInfraVariableSet(ctx, "infraVariableSetResource", &platform.InfraVariableSetArgs{
	Identifier: pulumi.String("string"),
	Connectors: platform.InfraVariableSetConnectorArray{
		&platform.InfraVariableSetConnectorArgs{
			ConnectorRef: pulumi.String("string"),
			Type:         pulumi.String("string"),
		},
	},
	Description: pulumi.String("string"),
	EnvironmentVariables: platform.InfraVariableSetEnvironmentVariableArray{
		&platform.InfraVariableSetEnvironmentVariableArgs{
			Key:       pulumi.String("string"),
			Value:     pulumi.String("string"),
			ValueType: pulumi.String("string"),
		},
	},
	Name:      pulumi.String("string"),
	OrgId:     pulumi.String("string"),
	ProjectId: pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
	TerraformVariableFiles: platform.InfraVariableSetTerraformVariableFileArray{
		&platform.InfraVariableSetTerraformVariableFileArgs{
			Repository:          pulumi.String("string"),
			RepositoryConnector: pulumi.String("string"),
			RepositoryBranch:    pulumi.String("string"),
			RepositoryCommit:    pulumi.String("string"),
			RepositoryPath:      pulumi.String("string"),
			RepositorySha:       pulumi.String("string"),
		},
	},
	TerraformVariables: platform.InfraVariableSetTerraformVariableArray{
		&platform.InfraVariableSetTerraformVariableArgs{
			Key:       pulumi.String("string"),
			Value:     pulumi.String("string"),
			ValueType: pulumi.String("string"),
		},
	},
})
var infraVariableSetResource = new InfraVariableSet("infraVariableSetResource", InfraVariableSetArgs.builder()
    .identifier("string")
    .connectors(InfraVariableSetConnectorArgs.builder()
        .connectorRef("string")
        .type("string")
        .build())
    .description("string")
    .environmentVariables(InfraVariableSetEnvironmentVariableArgs.builder()
        .key("string")
        .value("string")
        .valueType("string")
        .build())
    .name("string")
    .orgId("string")
    .projectId("string")
    .tags("string")
    .terraformVariableFiles(InfraVariableSetTerraformVariableFileArgs.builder()
        .repository("string")
        .repositoryConnector("string")
        .repositoryBranch("string")
        .repositoryCommit("string")
        .repositoryPath("string")
        .repositorySha("string")
        .build())
    .terraformVariables(InfraVariableSetTerraformVariableArgs.builder()
        .key("string")
        .value("string")
        .valueType("string")
        .build())
    .build());
infra_variable_set_resource = harness.platform.InfraVariableSet("infraVariableSetResource",
    identifier="string",
    connectors=[{
        "connector_ref": "string",
        "type": "string",
    }],
    description="string",
    environment_variables=[{
        "key": "string",
        "value": "string",
        "value_type": "string",
    }],
    name="string",
    org_id="string",
    project_id="string",
    tags=["string"],
    terraform_variable_files=[{
        "repository": "string",
        "repository_connector": "string",
        "repository_branch": "string",
        "repository_commit": "string",
        "repository_path": "string",
        "repository_sha": "string",
    }],
    terraform_variables=[{
        "key": "string",
        "value": "string",
        "value_type": "string",
    }])
const infraVariableSetResource = new harness.platform.InfraVariableSet("infraVariableSetResource", {
    identifier: "string",
    connectors: [{
        connectorRef: "string",
        type: "string",
    }],
    description: "string",
    environmentVariables: [{
        key: "string",
        value: "string",
        valueType: "string",
    }],
    name: "string",
    orgId: "string",
    projectId: "string",
    tags: ["string"],
    terraformVariableFiles: [{
        repository: "string",
        repositoryConnector: "string",
        repositoryBranch: "string",
        repositoryCommit: "string",
        repositoryPath: "string",
        repositorySha: "string",
    }],
    terraformVariables: [{
        key: "string",
        value: "string",
        valueType: "string",
    }],
});
type: harness:platform:InfraVariableSet
properties:
    connectors:
        - connectorRef: string
          type: string
    description: string
    environmentVariables:
        - key: string
          value: string
          valueType: string
    identifier: string
    name: string
    orgId: string
    projectId: string
    tags:
        - string
    terraformVariableFiles:
        - repository: string
          repositoryBranch: string
          repositoryCommit: string
          repositoryConnector: string
          repositoryPath: string
          repositorySha: string
    terraformVariables:
        - key: string
          value: string
          valueType: string
InfraVariableSet 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 InfraVariableSet resource accepts the following input properties:
- Identifier string
- Unique identifier of the resource.
- Connectors
List<InfraVariable Set Connector> 
- Provider connector configured on the variable set
- Description string
- Description of the resource.
- EnvironmentVariables List<InfraVariable Set Environment Variable> 
- Environment variables configured on the variable set
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- TerraformVariable List<InfraFiles Variable Set Terraform Variable File> 
- TerraformVariables List<InfraVariable Set Terraform Variable> 
- Identifier string
- Unique identifier of the resource.
- Connectors
[]InfraVariable Set Connector Args 
- Provider connector configured on the variable set
- Description string
- Description of the resource.
- EnvironmentVariables []InfraVariable Set Environment Variable Args 
- Environment variables configured on the variable set
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- []string
- Tags to associate with the resource.
- TerraformVariable []InfraFiles Variable Set Terraform Variable File Args 
- TerraformVariables []InfraVariable Set Terraform Variable Args 
- identifier String
- Unique identifier of the resource.
- connectors
List<InfraVariable Set Connector> 
- Provider connector configured on the variable set
- description String
- Description of the resource.
- environmentVariables List<InfraVariable Set Environment Variable> 
- Environment variables configured on the variable set
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- terraformVariable List<InfraFiles Variable Set Terraform Variable File> 
- terraformVariables List<InfraVariable Set Terraform Variable> 
- identifier string
- Unique identifier of the resource.
- connectors
InfraVariable Set Connector[] 
- Provider connector configured on the variable set
- description string
- Description of the resource.
- environmentVariables InfraVariable Set Environment Variable[] 
- Environment variables configured on the variable set
- name string
- Name of the resource.
- orgId string
- Unique identifier of the organization.
- projectId string
- Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- terraformVariable InfraFiles Variable Set Terraform Variable File[] 
- terraformVariables InfraVariable Set Terraform Variable[] 
- identifier str
- Unique identifier of the resource.
- connectors
Sequence[InfraVariable Set Connector Args] 
- Provider connector configured on the variable set
- description str
- Description of the resource.
- environment_variables Sequence[InfraVariable Set Environment Variable Args] 
- Environment variables configured on the variable set
- name str
- Name of the resource.
- org_id str
- Unique identifier of the organization.
- project_id str
- Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- terraform_variable_ Sequence[Infrafiles Variable Set Terraform Variable File Args] 
- terraform_variables Sequence[InfraVariable Set Terraform Variable Args] 
- identifier String
- Unique identifier of the resource.
- connectors List<Property Map>
- Provider connector configured on the variable set
- description String
- Description of the resource.
- environmentVariables List<Property Map>
- Environment variables configured on the variable set
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- terraformVariable List<Property Map>Files 
- terraformVariables List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the InfraVariableSet 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 str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing InfraVariableSet Resource
Get an existing InfraVariableSet 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?: InfraVariableSetState, opts?: CustomResourceOptions): InfraVariableSet@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        connectors: Optional[Sequence[InfraVariableSetConnectorArgs]] = None,
        description: Optional[str] = None,
        environment_variables: Optional[Sequence[InfraVariableSetEnvironmentVariableArgs]] = None,
        identifier: Optional[str] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        project_id: Optional[str] = None,
        tags: Optional[Sequence[str]] = None,
        terraform_variable_files: Optional[Sequence[InfraVariableSetTerraformVariableFileArgs]] = None,
        terraform_variables: Optional[Sequence[InfraVariableSetTerraformVariableArgs]] = None) -> InfraVariableSetfunc GetInfraVariableSet(ctx *Context, name string, id IDInput, state *InfraVariableSetState, opts ...ResourceOption) (*InfraVariableSet, error)public static InfraVariableSet Get(string name, Input<string> id, InfraVariableSetState? state, CustomResourceOptions? opts = null)public static InfraVariableSet get(String name, Output<String> id, InfraVariableSetState state, CustomResourceOptions options)resources:  _:    type: harness:platform:InfraVariableSet    get:      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.
- Connectors
List<InfraVariable Set Connector> 
- Provider connector configured on the variable set
- Description string
- Description of the resource.
- EnvironmentVariables List<InfraVariable Set Environment Variable> 
- Environment variables configured on the variable set
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- TerraformVariable List<InfraFiles Variable Set Terraform Variable File> 
- TerraformVariables List<InfraVariable Set Terraform Variable> 
- Connectors
[]InfraVariable Set Connector Args 
- Provider connector configured on the variable set
- Description string
- Description of the resource.
- EnvironmentVariables []InfraVariable Set Environment Variable Args 
- Environment variables configured on the variable set
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- []string
- Tags to associate with the resource.
- TerraformVariable []InfraFiles Variable Set Terraform Variable File Args 
- TerraformVariables []InfraVariable Set Terraform Variable Args 
- connectors
List<InfraVariable Set Connector> 
- Provider connector configured on the variable set
- description String
- Description of the resource.
- environmentVariables List<InfraVariable Set Environment Variable> 
- Environment variables configured on the variable set
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- terraformVariable List<InfraFiles Variable Set Terraform Variable File> 
- terraformVariables List<InfraVariable Set Terraform Variable> 
- connectors
InfraVariable Set Connector[] 
- Provider connector configured on the variable set
- description string
- Description of the resource.
- environmentVariables InfraVariable Set Environment Variable[] 
- Environment variables configured on the variable set
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- orgId string
- Unique identifier of the organization.
- projectId string
- Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- terraformVariable InfraFiles Variable Set Terraform Variable File[] 
- terraformVariables InfraVariable Set Terraform Variable[] 
- connectors
Sequence[InfraVariable Set Connector Args] 
- Provider connector configured on the variable set
- description str
- Description of the resource.
- environment_variables Sequence[InfraVariable Set Environment Variable Args] 
- Environment variables configured on the variable set
- identifier str
- Unique identifier of the resource.
- name str
- Name of the resource.
- org_id str
- Unique identifier of the organization.
- project_id str
- Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- terraform_variable_ Sequence[Infrafiles Variable Set Terraform Variable File Args] 
- terraform_variables Sequence[InfraVariable Set Terraform Variable Args] 
- connectors List<Property Map>
- Provider connector configured on the variable set
- description String
- Description of the resource.
- environmentVariables List<Property Map>
- Environment variables configured on the variable set
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- terraformVariable List<Property Map>Files 
- terraformVariables List<Property Map>
Supporting Types
InfraVariableSetConnector, InfraVariableSetConnectorArgs        
- ConnectorRef string
- Unique identifier of the connector.
- Type string
- Type indicates the type of the connector. Currently we support aws, azure, gcp.
- ConnectorRef string
- Unique identifier of the connector.
- Type string
- Type indicates the type of the connector. Currently we support aws, azure, gcp.
- connectorRef String
- Unique identifier of the connector.
- type String
- Type indicates the type of the connector. Currently we support aws, azure, gcp.
- connectorRef 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.
- connectorRef String
- Unique identifier of the connector.
- type String
- Type indicates the type of the connector. Currently we support aws, azure, gcp.
InfraVariableSetEnvironmentVariable, InfraVariableSetEnvironmentVariableArgs          
- Key string
- Key is the identifier for the variable. Must be unique within the variable set.
- Value string
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- ValueType string
- Value type indicates the value type of the variable. Currently we support string and secret.
- Key string
- Key is the identifier for the variable. Must be unique within the variable set.
- Value string
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- ValueType string
- Value type indicates the value type of the variable. Currently we support string and secret.
- key String
- Key is the identifier for the variable. Must be unique within the variable set.
- value String
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- valueType String
- Value type indicates the value type of the variable. Currently we support string and secret.
- key string
- Key is the identifier for the variable. Must be unique within the variable set.
- value string
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- valueType string
- Value type indicates the value type of the variable. Currently we support string and secret.
- key str
- Key is the identifier for the variable. Must be unique within the variable set.
- value str
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- value_type str
- Value type indicates the value type of the variable. Currently we support string and secret.
- key String
- Key is the identifier for the variable. Must be unique within the variable set.
- value String
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- valueType String
- Value type indicates the value type of the variable. Currently we support string and secret.
InfraVariableSetTerraformVariable, InfraVariableSetTerraformVariableArgs          
- Key string
- Key is the identifier for the variable. Must be unique within the variable set.
- Value string
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- ValueType string
- Value type indicates the value type of the variable. Currently we support string and secret.
- Key string
- Key is the identifier for the variable. Must be unique within the variable set.
- Value string
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- ValueType string
- Value type indicates the value type of the variable. Currently we support string and secret.
- key String
- Key is the identifier for the variable. Must be unique within the variable set.
- value String
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- valueType String
- Value type indicates the value type of the variable. Currently we support string and secret.
- key string
- Key is the identifier for the variable. Must be unique within the variable set.
- value string
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- valueType string
- Value type indicates the value type of the variable. Currently we support string and secret.
- key str
- Key is the identifier for the variable. Must be unique within the variable set.
- value str
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- value_type str
- Value type indicates the value type of the variable. Currently we support string and secret.
- key String
- Key is the identifier for the variable. Must be unique within the variable set.
- value String
- Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
- valueType String
- Value type indicates the value type of the variable. Currently we support string and secret.
InfraVariableSetTerraformVariableFile, InfraVariableSetTerraformVariableFileArgs            
- Repository string
- Repository is the name of the repository to fetch the code from.
- RepositoryConnector string
- Repository connector is the reference to the connector used to fetch the variables.
- RepositoryBranch 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
- RepositoryCommit string
- Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
- RepositoryPath string
- Repository path is the path in which the variables reside.
- RepositorySha 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.
- RepositoryConnector string
- Repository connector is the reference to the connector used to fetch the variables.
- RepositoryBranch 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
- RepositoryCommit string
- Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
- RepositoryPath string
- Repository path is the path in which the variables reside.
- RepositorySha 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.
- repositoryConnector String
- Repository connector is the reference to the connector used to fetch the variables.
- repositoryBranch 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
- repositoryCommit String
- Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
- repositoryPath String
- Repository path is the path in which the variables reside.
- repositorySha 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.
- repositoryConnector string
- Repository connector is the reference to the connector used to fetch the variables.
- repositoryBranch 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
- repositoryCommit string
- Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
- repositoryPath string
- Repository path is the path in which the variables reside.
- repositorySha 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.
- repositoryConnector String
- Repository connector is the reference to the connector used to fetch the variables.
- repositoryBranch 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
- repositoryCommit String
- Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
- repositoryPath String
- Repository path is the path in which the variables reside.
- repositorySha String
- Repository commit is sha to fetch the variables from. This cannot be set if repository branch or commit is set.
Import
$ pulumi import harness:platform/infraVariableSet:InfraVariableSet example <varset_id>
$ pulumi import harness:platform/infraVariableSet:InfraVariableSet example <org_id>/<varset_id>
$ pulumi import harness:platform/infraVariableSet:InfraVariableSet example <org_id>/<project_id>/<varset_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
