spotinst / terraform-spotinst-gcp-connect

A Terraform module to connect a GCP project to Spot.io.
Apache License 2.0
2 stars 3 forks source link
netapp-public owned-by-anurag-sharma terraform

Connect GCP Project To Spot.io Terraform Module

IMPORTANT: Please note that a new and enhanced connect-gcp module is released for onboarding GCP projects to Spot. Customers are encouraged to use the new module connect-gcp for any new onboarding. This gcp-connect module will be deprecated in near future.

Introduction

The module will aid in automatically connecting your GCP project to Spot via terraform. This will also leverage a python script to create the Spot account within your Spot Organization and attach the GCP service account credential.

Pre-Reqs

Usage

#Call the spot module to create a Spot account and link project to the platform
module "spotinst-gcp-connect-project1" {
    source          = "spotinst/gcp-connect/spotinst"
    project         = "project1"
    spotinst_token  = "redacted"
}
output "spot_account_id" {
    value = module.gcp_connect_project1.spot_account_id
}

Run

This terraform module will do the following:

On Apply:

On Destroy: