Platform · Customer onboarding
Subscription Factory: Customer Onboarding That Starts by Minting Subscriptions
The customer chain provisions isolated lower and upper environments, creating cloud subscriptions first because every other resource needs their ids.
// Overview
The Vault-population workflow has three jobs: populate Vault (defaults, then CSV overwrite, then archive), create subscriptions with Terraform, then trigger onboarding. Onboarding fetches subscription ids, deploys lower and upper in parallel, and a post-apply job configures the mesh gateway on each cluster. The subscription module can adopt pre-existing subscriptions.
// The problem
Each customer needs isolated subscriptions per environment plus consistent networking and Kubernetes, and subscriptions must exist before anything else.
// Flow
- Form and Apps Scriptresponses transposed and pushed as a CSV
- Populate Vaultstandard defaults then CSV overwrite; CSV archived with a timestamp
- Create subscriptionsone Terraform state for both environments; ids stored in Vault
- Trigger onboardingcalled natively with customer and environment
- Prepareresolve environments and fetch subscription ids
- Deploy lower and uppernetwork with hub peering, subnets, cluster with mesh, managed identity (parallel)
- Branch: HA gateHA customers get two regions, two clusters and cross-region peering
- Configure clusterper-cluster gateway and internal load balancer
// Design decisions & guardrails
- The subscription module can adopt an existing subscription under a distinct alias and import its management-group association.
- Docs call out that dropping an environment already in state plans a destroy of that subscription.
- Documented caveat: whoever deploys a subscription first becomes its Owner.
- Hub-and-spoke: every VNet is peered to a hub.
- Offboarding mirrors the build: destroy, cancel subscriptions, release network, archive Vault config last.
// Outcome
Isolated customer environments in minutes of pipeline time instead of days of tickets; 3 jobs for populate, 5 for onboarding.