Harness v0.4.6 published on Tuesday, Dec 10, 2024 by Pulumi
Harness Provider: Installation & Configuration
Installation
The Pulumi Harness provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumi/harness
- Python:
pulumi_harness
- Go:
github.com/pulumi/pulumi-harness/sdk/go/harness
- .NET:
Pulumi.Harness
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
.