Deploy your Cloudspace via Terraform

Rackspace Spot allows you to create and operate your Cloudspaces via Terraform, using a dedicated Terraform provider.

The Spot Terraform Provider

The Spot Terraform provider is available via the official Terraform registry:

https://registry.terraform.io/providers/rackerlabs/spot/latest

Obtain the Access Token from the Spot User Interface

To get started, log in to your Rackspace Spot account, select the Organization you will operate within, and obtain the Terraform Access Token:

  1. Navigate to the Terraform menu under API Access on the sidebar
  2. Copy the Access Token provided on that page
  3. Please note that these Access Tokens provide access to your account and must be stored securely
  4. Set the token inside provider configuration as shown in the example below

The Access Token doesn't currently include a refresh mechanism.

Using the Terraform Provider

The following example uses the Terraform variable, token, which can be provided from .tfvars file or environment variable.

Terraform (main.tf)
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard