Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Slack Engineering 13 min read Case study mediumAdept

Shipyard: How We Built Slack’s Next-Generation EC2 Platform

Shipyard is Slack's EC2 platform that replaces continuously Chef-converged, long-lived instances with immutable, layered AMIs deployed through progressive, metric-gated rollouts. A shared hardened base image, slack-zero, is built with AWS Image Builder and published via SSM parameters, and EventBridge and Lambda trigger rebuilds of service images layered on top. Heavy work happens at bake time and only secrets and environment config are applied at boot, so instances come up in seconds. The Gondola orchestrator rolls out AMI plus versioned Chef artifacts through ASG Instance Refresh or Karpenter executors with automatic rollback. Instances are short-lived and regularly rotated, secrets refresh via Consul Template from Vault, and a Peekaboo inventory built on EventBridge, OpenSearch and Lambda gives near real-time fleet visibility.

Related posts

  • BuildRock: A Build Platform at Slack

    Slack Engineering mediumAdept

    Slack consolidated its sprawling, hand-managed "snowflake" Jenkins clusters into BuildRock, a build-as-a-service platform. Jenkins controllers run statelessly on Kubernetes, configured through the Configuration-as-Code (casc) plugin and Jinja2 templates, and every change flows through GitOps, so a cluster can be rebuilt identically from Git. State such as build history lives on EFS with automated backups, plugins come from central storage, vulnerability scanning runs on every build, and test and pre-staging clusters catch problems before production. Rollout was incremental: controllers moved to Kubernetes before agents, with static EC2 agents alongside ephemeral pods, and old clusters were kept on standby for fast rollback under a shared ownership model with service teams.

  • Advancing Our Chef Infrastructure

    Slack Engineering mediumAdept

    Slack evolved its Chef setup for tens of thousands of EC2 instances from a single stack, where every cookbook change hit all environments at once on the hour, into multiple sharded Chef stacks with versioned cookbook rollouts. New nodes are assigned to shards via Route53 weighted CNAMEs. Chef search for node discovery was replaced with Consul lookups run inside ruby_block resources and lazy evaluation, which breaks a circular dependency on the Nebula overlay network. A fan-out search service (Shearch) and a Go Knife replacement (Gnife) restore fleet-wide queries, and a new Chef Librarian service uploads timestamp-versioned cookbooks to all stacks and promotes them environment by environment, with state tracked in DynamoDB.

  • Advancing Our Chef Infrastructure: Safety Without Disruption

    Slack Engineering mediumAdept

    Slack split its single production Chef environment into six AZ-mapped environments (prod-1 to prod-6) so newly provisioned nodes no longer pull a possibly bad config from one shared source during scale-outs. prod-1 acts as an hourly canary taking the latest cookbook artifact, while prod-2 through prod-6 advance on a release train where a new version starts only after the previous one reaches prod-6. Because rollout timing is now variable, fixed cron-scheduled Chef runs were replaced by Chef Summoner, an on-node service that polls S3 signals written by Chef Librarian, applies a configurable splay, and still forces a run every 12 hours for compliance. The tradeoff is slower fleet-wide propagation in exchange for a smaller blast radius per AZ. Slack chose this over migrating to Chef Policyfiles to avoid making dozens of teams rewrite their cookbooks.

  • Remote Development at Slack

    Slack Engineering mediumAdept

    Slack moved webapp development off laptops (where Hack/HHVM, a 30-minute clone and Docker-based setups were slow and brittle) onto short-lived AWS EC2 remote environments accessed through VSCode Remote SSH. A warm pool kept in an Auto Scaling Group syncs with master periodically. A `slack remote-dev -b <branch>` CLI command reserves an instance, detaches it from the ASG, checks out the branch and syncs personal dotfiles from `~/.remote-dev-home`, producing a ready environment in under 90 seconds instead of roughly 12 minutes of bootstrap. Instances terminate on detach or when the branch merges. Upgrading from C5.2xlarge to C5.4xlarge took a single config change, and over 90% of webapp engineers adopted the workflow within months of its October 2021 GA.

  • How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline

    Grab Engineering mediumAdept

    Grab's ADW team rebuilt Scarlet, its Slack-based data-pipeline agent, around a short core prompt plus a versioned library of Markdown skills (platform, routing, repository, workflow) loaded on demand, shrinking the prompt about 25x and letting new teams onboard by adding one reviewed repository skill. Platform tools sit behind two-tool MCP bridges, data-platform actions run under the requester's short-lived token, and sign-in pauses use LangGraph interrupts to resume runs. Scarlet now validates the data its changes produce by comparing CI candidate output against production (schema, counts, keys, nulls, stats, row diffs), with inconclusive treated as failure and verdicts bound to commits. Deterministic scaffolds replaced model guesses for predictable config, and after rollout the merge rate rose from about 50% to over 85% while repositories served grew about fourfold.

The quest for software engineering knowledge.

Look:
Layout: