rail / terraform-google-spacelift-workerpool

Terraform module deploying a Spacelift worker pool on GCP Compute Engine using an Instance Group Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-google-spacelift-workerpool

Terraform module deploying a Spacelift worker pool on Google Cloud Platform using an Instance Group Manager.

Usage

terraform {
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "~> 4.14.0"
    }
  }
}

module "my_workerpool" {
  source = "github.com/spacelift-io/terraform-google-spacelift-workerpool?ref=v1.2.0"

  configuration = <<-EOT
    export SPACELIFT_TOKEN="${var.worker_pool_config}"
    export SPACELIFT_POOL_PRIVATE_KEY="${var.worker_pool_private_key}"
  EOT

  image   = "projects/spacelift-workers/global/images/spacelift-worker-us-1634112379-tmoys2fp"
  network = "default"
  region  = "us-central1"
  zone    = "us-central1-a"
  size    = 2
  email   = "abc@xyz.iam.gserviceaccount.com"
  
  providers = {
    google = google
  }
}

Default Image

The default Image used by this module comes from the spacelift-worker-image repository. You can find the full list of AMIs on the releases page.

About

Terraform module deploying a Spacelift worker pool on GCP Compute Engine using an Instance Group Manager

License:MIT License


Languages

Language:HCL 100.0%