What We Learned from Building GovSlack
Standing up GovSlack on AWS GovCloud took Slack's Cloud Foundations team nearly two quarters, mostly spent adapting tooling to partition differences. GovCloud accounts have no billing and must be created through the commercial Organizations API (create-gov-cloud-account), which also spawns a linked shell commercial account. GovDev and GovProd run as fully separate AWS organizations with disconnected Nebula meshes so only US personnel can reach production. Workarounds covered missing public Route53 zones (public records and ACM DNS validation live in a restricted commercial account), no cross-partition role assumption (artifacts are pulled into GovCloud with stored IAM credentials), and partition-aware ARNs via a small Terraform `aws_partition` module, plus uneven VPC endpoint coverage and adopting AWS SSO permission sets.
Related posts
- Building the Next Evolution of Cloud Networks at Slack – A Retrospective
Slack Engineering mediumAdeptA year after launching Whitecastle, its AWS network redesign built on Transit Gateway, Slack found that proxy environment variables (http_proxy/no_proxy) were the biggest migration drag. Languages honor them inconsistently: Java ignores them, and CIDR support differs between Ruby, Go and Python. Partial migrations pushed huge, bursty traffic through Transit Gateway, which required CloudWatch attachment-level monitoring and help from AWS to scale. The team replaced VPC peering with Transit Gateway without downtime by adding a less-specific 10.0.0.0/8 route before deleting the peering routes. Later improvements included multiple workload VPCs per region, cross-account private Route53 zone associations, a self-discovering network tester backed by DynamoDB, and a Slack bot for looking up network details.
- Slack AI: The Path to Multi-Cloud
Slack Engineering mediumAdeptSlack AI's LLM serving evolved over three years through four phases: self-managed AWS SageMaker endpoints in an escrow VPC, Amazon Bedrock Provisioned Throughput, a hybrid of Provisioned Throughput and On-Demand with spillover routing, and finally a multi-cloud setup adding GCP Vertex AI. Each move addressed a concrete pain point: GPU scarcity and scaling latency, model availability lag, idle capacity from workday traffic peaks, multi-month commitment lock-in, and single-provider concentration risk. The Bedrock migration had zero customer-facing incidents, achieved through load tests to size Model Units, shadow requests, A/B quality checks and feature-flag rollouts. Per-feature model fallback hierarchies and telemetry-based cross-provider routing then delivered about 10% quality gains on reasoning tasks and about 67% lower latency on low-token workloads.
- How We Use Terraform At Slack
Slack Engineering mediumAdeptSlack runs roughly 1,400 Terraform state files across AWS, GCP, DigitalOcean and NS1, split per account, region and large service so each change touches fewer resources. State lives in a versioned S3 backend with DynamoDB locking and is deployed by Jenkins plan/apply pipelines chained through sandbox and dev before production, while engineers plan safely from read-only "Ops" boxes. After a painful quarter-long 0.11→0.12 upgrade, the team built a wrapper that installs multiple Terraform and provider versions and picks one per state file from versions.tf. They also wrote a Go-based upgrade tool that checks remote-state dependencies and plans after upgrading. Modules moved from relative paths and git refs to an internal S3-backed catalog of versioned tarballs, which state files pin via vendored_modules.
- How we built multi-region support for Linear
Linear mediumAdept
Linear added an EU region by replicating its entire production deployment per region rather than sharding the database, keeping each region isolated and letting engineers keep writing against a single Postgres instance. The work came in three phases: Terraforming the previously hand-managed GCP infrastructure into region-parameterized modules, extracting a global authentication service that owns users, workspaces and their region mapping, and putting a Cloudflare Workers proxy in front of all traffic to route requests to the right region with a signed JWT. Shared records are created and deleted in the auth service first so uniqueness holds globally, updates propagate asynchronously through the sync engine, cross-service calls flow one way (auth to regions via Pub/Sub), and background jobs reconcile the two sides. Fallbacks and feature flags kept cut-overs late and mostly invisible to users.
- How Country Road Group built a pattern-driven integration solution on AWS
AWS Architecture Blog mediumAdeptCountry Road Group replaced 21 BizTalk Server interfaces on VMware with a declarative, pattern-driven integration platform on AWS, where each interface is composed from standard enterprise integration patterns provisioned by pre-built Terraform modules. Traffic flows through four lanes (batch/SFTP, API, JDBC, event). Lambda handles short jobs, Apache Camel on ECS Fargate handles long-running or stateful flows, and EventBridge serves as the canonical bus. A shared Error Management System stores failure metadata in DynamoDB and payloads in S3, so L1 operators can resubmit failed transactions idempotently. Annual integration costs fell from about $300K to $60K, three middleware tools were consolidated into one, and an open-source CDK library of 29 integration-pattern constructs is released alongside AI agent skills for pattern selection.