fbpx

Installing The Spotinst Terraform Plugin

Disclaimer: Spotinst has two Terraform provider versions, an official provider available for download from Hashicorp via terraform init and a previous one which is available for download as 3rd party from files hosted on Spotinst S3. Both are fully maintained and currently, there is no deprecation date for the previous provider.

The reason that Spotinst manages two providers is that we want to allow our Terraform customers to receive our latest provider features in a faster pace than it would be received directly from Hashicorp. The previous Terraform provider is being fully maintained and receive all the features of the official provider.

Official provider installation: (Spotinst)

  1. Get the latest Terraform binary build
  2. Run terraform init
  3. The latest change log release version of the Spotinst provider should be downloaded

Supported Terraform binaries are v0.10.6 and above

Important! Schema between official and previous providers contains breaking changes. If you are new to Spotinst Terraform provider we encourage you to use the official version.

Previous provider installation:

  1. Get the latest Terraform binary build
  2. Download the latest provider from Spotinst using the links that appear below (you can change the binary version in the link to match yours)
  3. Install the plugin as listed in Terraform Documentation

Supported Terraform binaries:

v0.8.8v0.9.2v0.9.5v0.9.8v0.9.11v0.10.6v0.10.7v0.10.8v0.11.0v0.11.1v0.11.3v0.11.4

Download Links:

linux_amd64

http://spotinst-public.s3.amazonaws.com/integrations/terraform/v0.11.4/providers/v1/linux_amd64/terraform-provider-spotinst

darwin_amd64

http://spotinst-public.s3.amazonaws.com/integrations/terraform/v0.11.4/providers/v1/darwin_amd64/terraform-provider-spotinst

windows_amd64

http://spotinst-public.s3.amazonaws.com/integrations/terraform/v0.11.4/providers/v1/windows_amd64/terraform-provider-spotinst.exe
Configure Terraform to be able to find the binary file

The Spotinst provider can be manually installed by placing the plugin executable (terraform-provider-spotinst) in one of the following locations depending on the host operating system:

Windows systems – create a file named terraform.rc in the sub-path terraform.d/plugins beneath your user’s “Application Data”  %APPDATA% directory:

%APPDATA%/terraform.rc

Mac or Unix-like systems – create a file named .terraformrc in your home directory:

~/.terraformrc

Edit the file and add the following content:

providers {
  spotinst = "/path/to/terraform-provider-spotinst"
}

Example:

providers {
  spotinst = "/Users/Spotinst/Terraform/terraform-provider-spotinst"
}

Running terraform init will search this directory for additional plugins during initialization phase.

In case of working with the official provider, after terraform init the provider binary exist under .terraform/plugins/<platform>/terraform-provider-spotinst_v1.x.x
Official Provider Latest Features

We strive to always have the latest features available for our customers reflected on our official Terraform provider. Since cutting new releases for the official provider might take some time as it is not managed by Spotinst, we enable customers a download link for the latest official provider, the same procedure as described above for the previous provider (change the binary version in the link to match yours).

You can check the change log for the latest addition to the official Spotinst provider

Download Links:

linux_amd64

https://s3.amazonaws.com/spotinst-public/integrations/terraform/v0.11.4/providers/v2/linux_amd64/terraform-provider-spotinst

darwin_amd64

https://s3.amazonaws.com/spotinst-public/integrations/terraform/v0.11.4/providers/v2/darwin_amd64/terraform-provider-spotinst

windows_amd64

https://s3.amazonaws.com/spotinst-public/integrations/terraform/v0.11.4/providers/v2/windows_amd64/terraform-provider-spotinst.exe