Skip to content

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

License

Notifications You must be signed in to change notification settings

spacelift-io/terraform-google-spacelift-workerpool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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   = "[email protected]"
  
  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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages