1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. InfraProviderVersionFile
Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi

    Resource for uploading files to Terraform/OpenTofu Provider Versions in the IaCM Provider Registry.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    // First, create a provider
    const aws = new harness.platform.InfraProvider("aws", {
        type: "aws",
        description: "AWS provider for IaCM",
    });
    // Create a version
    const awsV5 = new harness.platform.InfraProviderVersion("aws_v5", {
        providerId: aws.id,
        version: "5.0.0",
        gpgKeyId: "your-gpg-key-id",
        protocols: [
            "5.0",
            "6.0",
        ],
    });
    // Upload files for different platforms
    const awsLinuxAmd64 = new harness.platform.InfraProviderVersionFile("aws_linux_amd64", {
        providerId: aws.id,
        version: awsV5.version,
        filePath: "./terraform-provider-aws_5.0.0_linux_amd64.zip",
    });
    const awsDarwinAmd64 = new harness.platform.InfraProviderVersionFile("aws_darwin_amd64", {
        providerId: aws.id,
        version: awsV5.version,
        filePath: "./terraform-provider-aws_5.0.0_darwin_amd64.zip",
    });
    const awsWindowsAmd64 = new harness.platform.InfraProviderVersionFile("aws_windows_amd64", {
        providerId: aws.id,
        version: awsV5.version,
        filePath: "./terraform-provider-aws_5.0.0_windows_amd64.zip",
    });
    // Upload SHA256SUMS and signature files
    const awsShasums = new harness.platform.InfraProviderVersionFile("aws_shasums", {
        providerId: aws.id,
        version: awsV5.version,
        filePath: "./terraform-provider-aws_5.0.0_SHA256SUMS",
    });
    const awsShasumsSig = new harness.platform.InfraProviderVersionFile("aws_shasums_sig", {
        providerId: aws.id,
        version: awsV5.version,
        filePath: "./terraform-provider-aws_5.0.0_SHA256SUMS.sig",
    });
    // Optional: Override the uploaded filename if different from local filename
    const customName = new harness.platform.InfraProviderVersionFile("custom_name", {
        providerId: aws.id,
        version: awsV5.version,
        filePath: "./local-file.zip",
        filename: "terraform-provider-aws_5.0.0_custom.zip",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    # First, create a provider
    aws = harness.platform.InfraProvider("aws",
        type="aws",
        description="AWS provider for IaCM")
    # Create a version
    aws_v5 = harness.platform.InfraProviderVersion("aws_v5",
        provider_id=aws.id,
        version="5.0.0",
        gpg_key_id="your-gpg-key-id",
        protocols=[
            "5.0",
            "6.0",
        ])
    # Upload files for different platforms
    aws_linux_amd64 = harness.platform.InfraProviderVersionFile("aws_linux_amd64",
        provider_id=aws.id,
        version=aws_v5.version,
        file_path="./terraform-provider-aws_5.0.0_linux_amd64.zip")
    aws_darwin_amd64 = harness.platform.InfraProviderVersionFile("aws_darwin_amd64",
        provider_id=aws.id,
        version=aws_v5.version,
        file_path="./terraform-provider-aws_5.0.0_darwin_amd64.zip")
    aws_windows_amd64 = harness.platform.InfraProviderVersionFile("aws_windows_amd64",
        provider_id=aws.id,
        version=aws_v5.version,
        file_path="./terraform-provider-aws_5.0.0_windows_amd64.zip")
    # Upload SHA256SUMS and signature files
    aws_shasums = harness.platform.InfraProviderVersionFile("aws_shasums",
        provider_id=aws.id,
        version=aws_v5.version,
        file_path="./terraform-provider-aws_5.0.0_SHA256SUMS")
    aws_shasums_sig = harness.platform.InfraProviderVersionFile("aws_shasums_sig",
        provider_id=aws.id,
        version=aws_v5.version,
        file_path="./terraform-provider-aws_5.0.0_SHA256SUMS.sig")
    # Optional: Override the uploaded filename if different from local filename
    custom_name = harness.platform.InfraProviderVersionFile("custom_name",
        provider_id=aws.id,
        version=aws_v5.version,
        file_path="./local-file.zip",
        filename="terraform-provider-aws_5.0.0_custom.zip")
    
    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 {
    		// First, create a provider
    		aws, err := platform.NewInfraProvider(ctx, "aws", &platform.InfraProviderArgs{
    			Type:        pulumi.String("aws"),
    			Description: pulumi.String("AWS provider for IaCM"),
    		})
    		if err != nil {
    			return err
    		}
    		// Create a version
    		awsV5, err := platform.NewInfraProviderVersion(ctx, "aws_v5", &platform.InfraProviderVersionArgs{
    			ProviderId: aws.ID(),
    			Version:    pulumi.String("5.0.0"),
    			GpgKeyId:   pulumi.String("your-gpg-key-id"),
    			Protocols: pulumi.StringArray{
    				pulumi.String("5.0"),
    				pulumi.String("6.0"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Upload files for different platforms
    		_, err = platform.NewInfraProviderVersionFile(ctx, "aws_linux_amd64", &platform.InfraProviderVersionFileArgs{
    			ProviderId: aws.ID(),
    			Version:    awsV5.Version,
    			FilePath:   pulumi.String("./terraform-provider-aws_5.0.0_linux_amd64.zip"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewInfraProviderVersionFile(ctx, "aws_darwin_amd64", &platform.InfraProviderVersionFileArgs{
    			ProviderId: aws.ID(),
    			Version:    awsV5.Version,
    			FilePath:   pulumi.String("./terraform-provider-aws_5.0.0_darwin_amd64.zip"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewInfraProviderVersionFile(ctx, "aws_windows_amd64", &platform.InfraProviderVersionFileArgs{
    			ProviderId: aws.ID(),
    			Version:    awsV5.Version,
    			FilePath:   pulumi.String("./terraform-provider-aws_5.0.0_windows_amd64.zip"),
    		})
    		if err != nil {
    			return err
    		}
    		// Upload SHA256SUMS and signature files
    		_, err = platform.NewInfraProviderVersionFile(ctx, "aws_shasums", &platform.InfraProviderVersionFileArgs{
    			ProviderId: aws.ID(),
    			Version:    awsV5.Version,
    			FilePath:   pulumi.String("./terraform-provider-aws_5.0.0_SHA256SUMS"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewInfraProviderVersionFile(ctx, "aws_shasums_sig", &platform.InfraProviderVersionFileArgs{
    			ProviderId: aws.ID(),
    			Version:    awsV5.Version,
    			FilePath:   pulumi.String("./terraform-provider-aws_5.0.0_SHA256SUMS.sig"),
    		})
    		if err != nil {
    			return err
    		}
    		// Optional: Override the uploaded filename if different from local filename
    		_, err = platform.NewInfraProviderVersionFile(ctx, "custom_name", &platform.InfraProviderVersionFileArgs{
    			ProviderId: aws.ID(),
    			Version:    awsV5.Version,
    			FilePath:   pulumi.String("./local-file.zip"),
    			Filename:   pulumi.String("terraform-provider-aws_5.0.0_custom.zip"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        // First, create a provider
        var aws = new Harness.Platform.InfraProvider("aws", new()
        {
            Type = "aws",
            Description = "AWS provider for IaCM",
        });
    
        // Create a version
        var awsV5 = new Harness.Platform.InfraProviderVersion("aws_v5", new()
        {
            ProviderId = aws.Id,
            Version = "5.0.0",
            GpgKeyId = "your-gpg-key-id",
            Protocols = new[]
            {
                "5.0",
                "6.0",
            },
        });
    
        // Upload files for different platforms
        var awsLinuxAmd64 = new Harness.Platform.InfraProviderVersionFile("aws_linux_amd64", new()
        {
            ProviderId = aws.Id,
            Version = awsV5.Version,
            FilePath = "./terraform-provider-aws_5.0.0_linux_amd64.zip",
        });
    
        var awsDarwinAmd64 = new Harness.Platform.InfraProviderVersionFile("aws_darwin_amd64", new()
        {
            ProviderId = aws.Id,
            Version = awsV5.Version,
            FilePath = "./terraform-provider-aws_5.0.0_darwin_amd64.zip",
        });
    
        var awsWindowsAmd64 = new Harness.Platform.InfraProviderVersionFile("aws_windows_amd64", new()
        {
            ProviderId = aws.Id,
            Version = awsV5.Version,
            FilePath = "./terraform-provider-aws_5.0.0_windows_amd64.zip",
        });
    
        // Upload SHA256SUMS and signature files
        var awsShasums = new Harness.Platform.InfraProviderVersionFile("aws_shasums", new()
        {
            ProviderId = aws.Id,
            Version = awsV5.Version,
            FilePath = "./terraform-provider-aws_5.0.0_SHA256SUMS",
        });
    
        var awsShasumsSig = new Harness.Platform.InfraProviderVersionFile("aws_shasums_sig", new()
        {
            ProviderId = aws.Id,
            Version = awsV5.Version,
            FilePath = "./terraform-provider-aws_5.0.0_SHA256SUMS.sig",
        });
    
        // Optional: Override the uploaded filename if different from local filename
        var customName = new Harness.Platform.InfraProviderVersionFile("custom_name", new()
        {
            ProviderId = aws.Id,
            Version = awsV5.Version,
            FilePath = "./local-file.zip",
            Filename = "terraform-provider-aws_5.0.0_custom.zip",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.InfraProvider;
    import com.pulumi.harness.platform.InfraProviderArgs;
    import com.pulumi.harness.platform.InfraProviderVersion;
    import com.pulumi.harness.platform.InfraProviderVersionArgs;
    import com.pulumi.harness.platform.InfraProviderVersionFile;
    import com.pulumi.harness.platform.InfraProviderVersionFileArgs;
    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) {
            // First, create a provider
            var aws = new InfraProvider("aws", InfraProviderArgs.builder()
                .type("aws")
                .description("AWS provider for IaCM")
                .build());
    
            // Create a version
            var awsV5 = new InfraProviderVersion("awsV5", InfraProviderVersionArgs.builder()
                .providerId(aws.id())
                .version("5.0.0")
                .gpgKeyId("your-gpg-key-id")
                .protocols(            
                    "5.0",
                    "6.0")
                .build());
    
            // Upload files for different platforms
            var awsLinuxAmd64 = new InfraProviderVersionFile("awsLinuxAmd64", InfraProviderVersionFileArgs.builder()
                .providerId(aws.id())
                .version(awsV5.version())
                .filePath("./terraform-provider-aws_5.0.0_linux_amd64.zip")
                .build());
    
            var awsDarwinAmd64 = new InfraProviderVersionFile("awsDarwinAmd64", InfraProviderVersionFileArgs.builder()
                .providerId(aws.id())
                .version(awsV5.version())
                .filePath("./terraform-provider-aws_5.0.0_darwin_amd64.zip")
                .build());
    
            var awsWindowsAmd64 = new InfraProviderVersionFile("awsWindowsAmd64", InfraProviderVersionFileArgs.builder()
                .providerId(aws.id())
                .version(awsV5.version())
                .filePath("./terraform-provider-aws_5.0.0_windows_amd64.zip")
                .build());
    
            // Upload SHA256SUMS and signature files
            var awsShasums = new InfraProviderVersionFile("awsShasums", InfraProviderVersionFileArgs.builder()
                .providerId(aws.id())
                .version(awsV5.version())
                .filePath("./terraform-provider-aws_5.0.0_SHA256SUMS")
                .build());
    
            var awsShasumsSig = new InfraProviderVersionFile("awsShasumsSig", InfraProviderVersionFileArgs.builder()
                .providerId(aws.id())
                .version(awsV5.version())
                .filePath("./terraform-provider-aws_5.0.0_SHA256SUMS.sig")
                .build());
    
            // Optional: Override the uploaded filename if different from local filename
            var customName = new InfraProviderVersionFile("customName", InfraProviderVersionFileArgs.builder()
                .providerId(aws.id())
                .version(awsV5.version())
                .filePath("./local-file.zip")
                .filename("terraform-provider-aws_5.0.0_custom.zip")
                .build());
    
        }
    }
    
    resources:
      # First, create a provider
      aws:
        type: harness:platform:InfraProvider
        properties:
          type: aws
          description: AWS provider for IaCM
      # Create a version
      awsV5:
        type: harness:platform:InfraProviderVersion
        name: aws_v5
        properties:
          providerId: ${aws.id}
          version: 5.0.0
          gpgKeyId: your-gpg-key-id
          protocols:
            - '5.0'
            - '6.0'
      # Upload files for different platforms
      awsLinuxAmd64:
        type: harness:platform:InfraProviderVersionFile
        name: aws_linux_amd64
        properties:
          providerId: ${aws.id}
          version: ${awsV5.version}
          filePath: ./terraform-provider-aws_5.0.0_linux_amd64.zip
      awsDarwinAmd64:
        type: harness:platform:InfraProviderVersionFile
        name: aws_darwin_amd64
        properties:
          providerId: ${aws.id}
          version: ${awsV5.version}
          filePath: ./terraform-provider-aws_5.0.0_darwin_amd64.zip
      awsWindowsAmd64:
        type: harness:platform:InfraProviderVersionFile
        name: aws_windows_amd64
        properties:
          providerId: ${aws.id}
          version: ${awsV5.version}
          filePath: ./terraform-provider-aws_5.0.0_windows_amd64.zip
      # Upload SHA256SUMS and signature files
      awsShasums:
        type: harness:platform:InfraProviderVersionFile
        name: aws_shasums
        properties:
          providerId: ${aws.id}
          version: ${awsV5.version}
          filePath: ./terraform-provider-aws_5.0.0_SHA256SUMS
      awsShasumsSig:
        type: harness:platform:InfraProviderVersionFile
        name: aws_shasums_sig
        properties:
          providerId: ${aws.id}
          version: ${awsV5.version}
          filePath: ./terraform-provider-aws_5.0.0_SHA256SUMS.sig
      # Optional: Override the uploaded filename if different from local filename
      customName:
        type: harness:platform:InfraProviderVersionFile
        name: custom_name
        properties:
          providerId: ${aws.id}
          version: ${awsV5.version}
          filePath: ./local-file.zip
          filename: terraform-provider-aws_5.0.0_custom.zip
    

    Notes

    • Files cannot be updated once uploaded. To change a file, you must delete and recreate the resource.
    • When file_path is provided, the resource reads the local file and uploads its content to the provider registry.
    • The filename is automatically derived from file_path if not explicitly provided.
    • Common files to upload include:
      • Platform-specific provider binaries (e.g., terraform-provider-aws_5.0.0_linux_amd64.zip)
      • SHA256SUMS file for verification
      • SHA256SUMS.sig signature file for GPG verification
    • Files are uploaded as raw binary content with Content-Type: application/octet-stream.

    Create InfraProviderVersionFile Resource

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

    Constructor syntax

    new InfraProviderVersionFile(name: string, args: InfraProviderVersionFileArgs, opts?: CustomResourceOptions);
    @overload
    def InfraProviderVersionFile(resource_name: str,
                                 args: InfraProviderVersionFileArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def InfraProviderVersionFile(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 file_path: Optional[str] = None,
                                 provider_id: Optional[str] = None,
                                 version: Optional[str] = None,
                                 filename: Optional[str] = None)
    func NewInfraProviderVersionFile(ctx *Context, name string, args InfraProviderVersionFileArgs, opts ...ResourceOption) (*InfraProviderVersionFile, error)
    public InfraProviderVersionFile(string name, InfraProviderVersionFileArgs args, CustomResourceOptions? opts = null)
    public InfraProviderVersionFile(String name, InfraProviderVersionFileArgs args)
    public InfraProviderVersionFile(String name, InfraProviderVersionFileArgs args, CustomResourceOptions options)
    
    type: harness:platform:InfraProviderVersionFile
    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 InfraProviderVersionFileArgs
    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 InfraProviderVersionFileArgs
    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 InfraProviderVersionFileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InfraProviderVersionFileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InfraProviderVersionFileArgs
    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 infraProviderVersionFileResource = new Harness.Platform.InfraProviderVersionFile("infraProviderVersionFileResource", new()
    {
        FilePath = "string",
        ProviderId = "string",
        Version = "string",
        Filename = "string",
    });
    
    example, err := platform.NewInfraProviderVersionFile(ctx, "infraProviderVersionFileResource", &platform.InfraProviderVersionFileArgs{
    	FilePath:   pulumi.String("string"),
    	ProviderId: pulumi.String("string"),
    	Version:    pulumi.String("string"),
    	Filename:   pulumi.String("string"),
    })
    
    var infraProviderVersionFileResource = new InfraProviderVersionFile("infraProviderVersionFileResource", InfraProviderVersionFileArgs.builder()
        .filePath("string")
        .providerId("string")
        .version("string")
        .filename("string")
        .build());
    
    infra_provider_version_file_resource = harness.platform.InfraProviderVersionFile("infraProviderVersionFileResource",
        file_path="string",
        provider_id="string",
        version="string",
        filename="string")
    
    const infraProviderVersionFileResource = new harness.platform.InfraProviderVersionFile("infraProviderVersionFileResource", {
        filePath: "string",
        providerId: "string",
        version: "string",
        filename: "string",
    });
    
    type: harness:platform:InfraProviderVersionFile
    properties:
        filePath: string
        filename: string
        providerId: string
        version: string
    

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

    FilePath string
    Local path to the file to upload. Required for uploading file content.
    ProviderId string
    The ID of the provider.
    Version string
    Provider version number.
    Filename string
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    FilePath string
    Local path to the file to upload. Required for uploading file content.
    ProviderId string
    The ID of the provider.
    Version string
    Provider version number.
    Filename string
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    filePath String
    Local path to the file to upload. Required for uploading file content.
    providerId String
    The ID of the provider.
    version String
    Provider version number.
    filename String
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    filePath string
    Local path to the file to upload. Required for uploading file content.
    providerId string
    The ID of the provider.
    version string
    Provider version number.
    filename string
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    file_path str
    Local path to the file to upload. Required for uploading file content.
    provider_id str
    The ID of the provider.
    version str
    Provider version number.
    filename str
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    filePath String
    Local path to the file to upload. Required for uploading file content.
    providerId String
    The ID of the provider.
    version String
    Provider version number.
    filename String
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InfraProviderVersionFile resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Synced bool
    Indicates if the provider version is synced after file upload.
    Id string
    The provider-assigned unique ID for this managed resource.
    Synced bool
    Indicates if the provider version is synced after file upload.
    id String
    The provider-assigned unique ID for this managed resource.
    synced Boolean
    Indicates if the provider version is synced after file upload.
    id string
    The provider-assigned unique ID for this managed resource.
    synced boolean
    Indicates if the provider version is synced after file upload.
    id str
    The provider-assigned unique ID for this managed resource.
    synced bool
    Indicates if the provider version is synced after file upload.
    id String
    The provider-assigned unique ID for this managed resource.
    synced Boolean
    Indicates if the provider version is synced after file upload.

    Look up Existing InfraProviderVersionFile Resource

    Get an existing InfraProviderVersionFile 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?: InfraProviderVersionFileState, opts?: CustomResourceOptions): InfraProviderVersionFile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            file_path: Optional[str] = None,
            filename: Optional[str] = None,
            provider_id: Optional[str] = None,
            synced: Optional[bool] = None,
            version: Optional[str] = None) -> InfraProviderVersionFile
    func GetInfraProviderVersionFile(ctx *Context, name string, id IDInput, state *InfraProviderVersionFileState, opts ...ResourceOption) (*InfraProviderVersionFile, error)
    public static InfraProviderVersionFile Get(string name, Input<string> id, InfraProviderVersionFileState? state, CustomResourceOptions? opts = null)
    public static InfraProviderVersionFile get(String name, Output<String> id, InfraProviderVersionFileState state, CustomResourceOptions options)
    resources:  _:    type: harness:platform:InfraProviderVersionFile    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.
    The following state arguments are supported:
    FilePath string
    Local path to the file to upload. Required for uploading file content.
    Filename string
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    ProviderId string
    The ID of the provider.
    Synced bool
    Indicates if the provider version is synced after file upload.
    Version string
    Provider version number.
    FilePath string
    Local path to the file to upload. Required for uploading file content.
    Filename string
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    ProviderId string
    The ID of the provider.
    Synced bool
    Indicates if the provider version is synced after file upload.
    Version string
    Provider version number.
    filePath String
    Local path to the file to upload. Required for uploading file content.
    filename String
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    providerId String
    The ID of the provider.
    synced Boolean
    Indicates if the provider version is synced after file upload.
    version String
    Provider version number.
    filePath string
    Local path to the file to upload. Required for uploading file content.
    filename string
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    providerId string
    The ID of the provider.
    synced boolean
    Indicates if the provider version is synced after file upload.
    version string
    Provider version number.
    file_path str
    Local path to the file to upload. Required for uploading file content.
    filename str
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    provider_id str
    The ID of the provider.
    synced bool
    Indicates if the provider version is synced after file upload.
    version str
    Provider version number.
    filePath String
    Local path to the file to upload. Required for uploading file content.
    filename String
    Name of the file to upload (e.g., terraform-provider-aws5.0.0linuxamd64.zip). If not provided, will be derived from filepath. Use this to override the uploaded filename if it should differ from the local filename.
    providerId String
    The ID of the provider.
    synced Boolean
    Indicates if the provider version is synced after file upload.
    version String
    Provider version number.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import harness:platform/infraProviderVersionFile:InfraProviderVersionFile example <provider_id>/<version>/<filename>
    

    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 harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.11.6
    published on Thursday, Mar 12, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.