---
title: "Infra at Scale: Agents, Tools and Infra-as-Code"
description: "Benchling uses scheduled AI agents (Cursor Cloud Agents) to roll out routine updates to 30+ Kubernetes cluster components (Helm charts, AMIs, container images) through dev, staging and prod, while keeping a human approval on every PR."
url: "https://swe.quest/articles/infra-at-scale-agents-tools-and-infra-as-code-f9ec6b6391330427"
canonical: "https://benchling.engineering/infra-at-scale-agents-tools-and-infra-as-code-105645ea7b58"
source: "Benchling Engineering"
published: "2026-11-06"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["infrastructure-as-code","ai-agents","deployment","kubernetes"]
---

# Infra at Scale: Agents, Tools and Infra-as-Code

A post on [Benchling Engineering](https://swe.quest/sources/benchling.md), published 2026-11-06, 8 min read, Case study. Original: [https://benchling.engineering/infra-at-scale-agents-tools-and-infra-as-code-105645ea7b58](https://benchling.engineering/infra-at-scale-agents-tools-and-infra-as-code-105645ea7b58)

## Summary

Benchling uses scheduled AI agents (Cursor Cloud Agents) to roll out routine updates to 30+ Kubernetes cluster components (Helm charts, AMIs, container images) through dev, staging and prod, while keeping a human approval on every PR. Component versions live in per-stage constants files compiled into per-cluster Terraform variables, so each stage upgrade is a one-line change. Per-component rollout configs tell the agent where to find releases, what to check in release notes, how to verify in dev and how long to bake. A stateless tick derives its position from those files and git history. Reviewers pre-approve Terraform runs via "plan matcher" expressions in the PR, which a Reviewer service checks before auto-applying. The result is hundreds of merged PRs at roughly five times the previous cadence, and in one case the agent caught a breaking default-value change in a network controller.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md) (Infrastructure)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)

## Prerequisites

- Terraform workflows ([easy posts on Infrastructure as code](https://swe.quest/tags/infrastructure-as-code.md?difficulty=easy))
- Kubernetes cluster components ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- staged deployments

## Keywords

Terraform Cloud, Cursor Cloud Agents, Helm, Karpenter, Argo CD, Datadog, AWS

## Related posts

- [Agentic Coding on Railway: A Practical Guide for 2026](https://swe.quest/articles/agentic-coding-on-railway-a-practical-guide-for-2026-dae3c2957727f1b2.md): Railway · 2026-05-25 · Medium · 10 min read · AI agents, AI for coding, Deployment, Cloud platforms
  Railway's official MCP server, per-PR preview environments with isolated databases, one-call rollback, environment promotion and per-environment secrets let agents like Claude Code, Cursor and Codex deploy, debug and validate their own PRs without leaving the loop.
- [Shipping huggingface\_hub every week with AI, open tools, and a human in the loop](https://swe.quest/articles/shipping-huggingface-hub-every-week-with-ai-open-tools-and-a-human-in-the-loop-beb8acfe6f6762ac.md): Hugging Face · 2026-06-23 · Medium · 10 min read · CI/CD, Deployment, AI agents, Supply chain security, Python
  huggingface\_hub moved from releases every 4-6 weeks to weekly releases driven by a single GitHub Actions workflow that automates versioning, tagging, PyPI publishing, downstream test branches, post-release bumps and Slack reporting, with an open-weights model (GLM via HF Inference Providers, run through OpenCode) drafting release notes and announcements.
- [Under the River](https://swe.quest/articles/under-the-river-4570734a0df8615c.md): Shopify Engineering · 2026-05-28 · Medium · 10 min read · AI agents, Developer productivity, System design, AI for coding, Build systems
  Shopify's Slack-native agent River co-authors one in eight merged PRs, and it rests on two 2024 bets: a single monorepo (World) and Nix-built reproducible environments across dev, CI and production.
- [How We Use Terraform At Slack](https://swe.quest/articles/how-we-use-terraform-at-slack-a1596aae0a45b4a5.md): Slack Engineering · 2022-10-25 · Medium · 14 min read · Infrastructure as code, Cloud platforms, CI/CD, Developer tools
  Slack 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.
- [Onboarding yourself as an engineer at incident.io](https://swe.quest/articles/onboarding-yourself-as-an-engineer-at-incident-io-0fce0735d9296049.md): incident.io · 2024-07-05 · Medium · 4 min read · Infrastructure as code, Engineering culture, Developer productivity
  New engineers at incident.io onboard themselves by opening a PR to the infrastructure repo that adds them as a user, puts them on a team in a Jsonnet config, and defines a Spacelift dev stack.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
