Pulumi Cloud v0.27.1 published on Thursday, Nov 14, 2024 by Pulumi
Pulumi Cloud (Pulumi Service provider): Installation & Configuration
Installation
The Pulumi Service provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumi/pulumiservice
- Python:
pulumi_pulumiservice
- Go:
github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice
- .NET:
Pulumi.PulumiService
Setup
To provision resources with the Pulumi Service provider, you must have Pulumi Cloud credentials. Pulumi Cloud maintains documentation on creating access tokens.
While you can use this provider to provision access tokens, you’ll still need to have an access token available to generate an access token with the provider.
Set environment variables
Once you have an access token, its easy to set the environment variables. The Pulumi Service Provider uses the same environment variables as Pulumi does.
$ export PULUMI_ACCESS_TOKEN=<PULUMI_ACCESS_TOKEN>
# For self hosted customers. defaults to https://api.pulumi.com
$ export PULUMI_BACKEND_URL=<PULUMI_BACKEND_URL>
$ export PULUMI_ACCESS_TOKEN=<PULUMI_ACCESS_TOKEN>
# For self hosted customers. defaults to https://api.pulumi.com
$ export PULUMI_BACKEND_URL=<PULUMI_BACKEND_URL>
> $env:PULUMI_ACCESS_TOKEN = "<PULUMI_ACCESS_TOKEN>"
# For self hosted customers. defaults to https://api.pulumi.com
> $env:PULUMI_BACKEND_URL = "<PULUMI_BACKEND_URL>"
Configuration Options
Use pulumi config set pulumiservice:<option>
or pass options to the constructor of new pulumiservice.Provider
.
Option | Required? | Description |
---|---|---|
accessToken | Required | Pulumi Cloud Access Tokens |
apiUrl | Optional | Allows overriding default Pulumi Cloud API URL for self hosted customers. |