Viewing docs for Spotinst v3.132.0
published on Saturday, May 16, 2026 by Pulumi
published on Saturday, May 16, 2026 by Pulumi
Spotinst Provider
I want to use the Pulumi Spotinst package (spotinst) in my project.
## Provider details
- Package: spotinst
- Version: v3.132.0
- Publisher: Pulumi
- Source: pulumi
- Repository: https://github.com/pulumi/pulumi-spotinst
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/pulumi/pulumi/spotinst/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/pulumi/pulumi/spotinst/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/pulumi/pulumi/spotinst/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/pulumi/pulumi/spotinst/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for Spotinst v3.132.0
published on Saturday, May 16, 2026 by Pulumi
published on Saturday, May 16, 2026 by Pulumi
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
Overview
The Spotinst provider is used to interact with the resources supported by Spotinst. The provider needs to be configured with the proper credentials before it can be used.
Use the navigation to the left to read about the available resources.
Example Usage
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: nodejs
config:
spotinst:account:
value: 'TODO: "${var.spotinst_account}"'
spotinst:token:
value: 'TODO: "${var.spotinst_token}"'
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
// Create an Elastigroup
const foo = new spotinst.aws.Elastigroup("foo", {});
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: python
config:
spotinst:account:
value: 'TODO: "${var.spotinst_account}"'
spotinst:token:
value: 'TODO: "${var.spotinst_token}"'
import pulumi
import pulumi_spotinst as spotinst
# Create an Elastigroup
foo = spotinst.aws.Elastigroup("foo")
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: dotnet
config:
spotinst:account:
value: 'TODO: "${var.spotinst_account}"'
spotinst:token:
value: 'TODO: "${var.spotinst_token}"'
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SpotInst = Pulumi.SpotInst;
return await Deployment.RunAsync(() =>
{
// Create an Elastigroup
var foo = new SpotInst.Aws.Elastigroup("foo");
});
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: go
config:
spotinst:account:
value: 'TODO: "${var.spotinst_account}"'
spotinst:token:
value: 'TODO: "${var.spotinst_token}"'
package main
import (
"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/aws"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create an Elastigroup
_, err := aws.NewElastigroup(ctx, "foo", nil)
if err != nil {
return err
}
return nil
})
}
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: yaml
config:
spotinst:account:
value: 'TODO: "${var.spotinst_account}"'
spotinst:token:
value: 'TODO: "${var.spotinst_token}"'
resources:
# Create an Elastigroup
foo:
type: spotinst:aws:Elastigroup
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: java
config:
spotinst:account:
value: 'TODO: "${var.spotinst_account}"'
spotinst:token:
value: 'TODO: "${var.spotinst_token}"'
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spotinst.aws.Elastigroup;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Create an Elastigroup
var foo = new Elastigroup("foo");
}
}
Configuration Reference
The following configuration inputs are supported:
enabled- (Optional) Boolean value to enable or disable the provider. Default istrue.token- (Required) A Personal API Access Token issued by Spotinst. It can be sourced from theSPOTINST_TOKENenvironment variable.account- (Optional) A valid Spotinst account ID. It can be sourced from theSPOTINST_ACCOUNTenvironment variable.featureFlags- (Optional) Spotinst SDK feature flags. They can be sourced from theSPOTINST_FEATURE_FLAGSenvironment variable.
Credential Precedence
Credentials will be set given the following precedence:
- credentials defined in the provider configuration of the template
- credentials defined as environment variables
- credentials defined in ~/.spotinst/credentials
The credentials can be merge in the chain by enabling the MergeCredentialsChain feature flag.
# Pulumi.yaml provider configuration file
name: configuration-example
runtime:
config:
spotinst:account:
value: 'TODO: "${var.spotinst_account}"'
spotinst:featureFlags:
value: MergeCredentialsChain=true
Please note that if you omit the Spotinst account, resources will be created using the default account for your organization.
Viewing docs for Spotinst v3.132.0
published on Saturday, May 16, 2026 by Pulumi
published on Saturday, May 16, 2026 by Pulumi
