Spotinst v3.100.0 published on Wednesday, Nov 20, 2024 by Pulumi
Spotinst Provider: Installation & Configuration
The Pulumi Spotinst provider uses the Spotinst SDK to manage resources.
Installation
The Spotinst provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumi/spotinst
- Python:
pulumi-spotinst
- Go:
github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst
- .NET:
Pulumi.Spotinst
- Java:
com.pulumi/spotinst
Configuration
Pulumi relies on the Spotinst SDK to authenticate requests from your computer to Spotinst. Your credentials are never sent to pulumi.com.
Once the credentials are obtained, there are two ways to communicate your configuration tokens to Pulumi:
Set the environment variables
SPOTINST_ACCOUNT
andSPOTINST_ACCOUNT
:$ export SPOTINST_ACCOUNT=XXXXXX $ export SPOTINST_TOKEN=YYYYYY
Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:
$ pulumi config set spotinst:account XXXXXX $ pulumi config set spotinst:token --secret
Remember to pass --secret
when setting token
so that it is properly encrypted.