Pulumi Service v0.1.8, Aug 25 22
Pulumi Service: 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 need to have Pulumi Service credentials. Pulumi Service maintains documentation on how to create access tokens here.
Note
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/Optional | Description |
---|---|---|
accessToken | Required | Pulumi Service Access Tokens |
apiUrl | Optional | Allows overriding default Pulumi Service API URL for self hosted customers. |