Platform · Earlier generation

Five-Minute Customer Onboarding: Forms, Workspaces and a Subnet Allocator

The earlier generation of the pipeline: form submissions picked up by a scheduled workflow that creates workspaces and config per customer.

  • Google Forms
  • Apps Script
  • Python
  • Terraform Cloud
  • Consul/Vault KV
  • GitHub Actions
  • GCP Shared VPC

// Overview

Customer requests are submitted by form, transposed by Apps Script and committed. A scheduled job merges them with standard keys, creates Terraform Cloud workspaces and allocates the first free pre-created subnet from a CSV inventory. Lower auto-applies; upper waits for approval and notifies chat. A clean-up form returns subnets and removes config.

// The problem

Repeatable multi-project customer environments with shared-VPC subnet assignment, with no human in the repetitive path.

// Flow

Five-Minute Customer Onboarding: Forms, Workspaces and a Subnet Allocator flow1. Form submit → 2. Transpose and commit → 3. Scheduled pick-up → 4. Merge → 5. Allocate → 6. Create workspace → 7. Gate: environment policy → 8. Archive → 9. Clean-up form01Form submit02Transpose and commit03Scheduled pick-up04Merge05Allocate06Create workspace07 · GATEGate: environmentpolicy08Archive09Clean-up form
  1. Form submita trigger fires Apps Script
  2. Transpose and commitsheet to rows, pushed to an inputs folder
  3. Scheduled pick-upworkflow every 5 minutes in an active window
  4. Mergecustomer inputs plus standard keys
  5. Allocatefirst available subnet per region from the inventory, marked used
  6. Create workspaceworkspace and config written
  7. Gate: environment policy gatelower auto-applies, upper needs approval
  8. Archiveinputs archived per customer
  9. Clean-up formmesh cleanup, destroy, release subnets, delete config

// Design decisions & guardrails

  • Auto-apply is off in upper environments.
  • Availability flags prevent subnet reuse; the pipeline fails fast if no subnet is free for a region.
  • Clean-up runs in its own window every 15 minutes.
  • Required environment variables are checked at start.

// Outcome

The prototype that proved the model later rebuilt on Azure with stronger gates.

// Related