spotinst / terraform-spotinst-connect-gcp

A Terraform module to connect Google Cloud Platform (GCP) accounts to the Spot platform.
https://registry.terraform.io/modules/spotinst/connect-gcp/spotinst
Apache License 2.0
0 stars 0 forks source link
netapp-restricted

Terraform GCP Examples for Spot.io

Introduction

The module will automatically connect your GCP project to the Spot account via Terraform.

This module is an improved version of the previously available https://github.com/spotinst/terraform-spotinst-gcp-connect module, but it is not backward compatible. It should only be used to onboard new GCP projects to Spot.

Note - Do not upgrade to this module if you have previously onboarded a GCP project to spot using the 'terraform-spotinst-gcp-connect' module.

Pre-Reqs

Example

Usage

#Call the spot module to create a Spot account and link project to the platform
module "spotinst-connect-gcp-project" {
  source               = "spotinst/connect-gcp/spotinst"
  project              = "demo-labs"
  name                 = "demo-acct_123456"
  spotinst_token       = "redacted"
  spot_organization_id = "demo-org-1234567890"
}
output "spot_account_id" {
    value = module.spotinst-connect-gcp-project.spot_account_id
}

Run

This terraform module will do the following:

On Apply:

On Destroy: