1. Packages
  2. Harness Provider
  3. Installation & Configuration
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

Harness Provider: Installation & Configuration

harness logo
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

    Installation

    The Pulumi Harness provider is available as a package in all Pulumi languages:

    Provider Binary

    The Harness provider binary is a third party binary. It can be installed using the pulumi plugin command.

    pulumi plugin install resource harness <version>
    

    Replace the version string with your desired version.

    Setup

    To provision resources with the Pulumi Harness provider, you need to have Harness credentials. Harness maintains documentation on how to create API keys here

    Set environment variables

    Once you have provisioned these credentials, you can set environment variables to provision resources in Harness:

    $ export HARNESS_ACCOUNT_ID=<HARNESS_ACCOUNT_ID>
    $ export HARNESS_API_KEY=<HARNESS_API_KEY>
    $ export HARNESS_PLATFORM_API_KEY=<HARNESS_PLATFORM_API_KEY>
    
    $ export HARNESS_ACCOUNT_ID=<HARNESS_ACCOUNT_ID>
    $ export HARNESS_API_KEY=<HARNESS_API_KEY>
    $ export HARNESS_PLATFORM_API_KEY=<HARNESS_PLATFORM_API_KEY>
    
    > $env:HARNESS_ACCOUNT_ID = "<HARNESS_ACCOUNT_ID>"
    > $env:HARNESS_API_KEY = "<HARNESS_API_KEY>"
    > $env:HARNESS_PLATFORM_API_KEY = "<HARNESS_PLATFORM_API_KEY>"
    

    Configuration Options

    Use pulumi config set harness:<option> or pass options to the constructor of new harness.Provider.

    harness logo
    Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi