Terraform module deploying a Spacelift worker pool on Google Cloud Platform using an Instance Group Manager.
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
}
}
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.