Tagged

Terraform

Mar 26, 2026 Terraform Agents 9 min read

Terraform for AI Agents (8): End-to-End — research-agent-stack in One Apply

Stitching the seven modules into one repo, running terraform apply once, and watching a complete agent runtime — VPC, ECS, RDS, OpenSearch, OSS, LLM gateway, SLS observability, cost alarms — come up in seven minutes. …

Mar 24, 2026 Terraform Agents 10 min read

Terraform for AI Agents (7): Observability, SLS Dashboards, and Cost Alarms

Logs to SLS, traces to ARMS, metrics to CloudMonitor — all provisioned in HCL so a new env comes pre-instrumented. The four alarms that actually catch real incidents and the SLS-driven cost dashboard that tells you which …

Mar 22, 2026 Terraform Agents 10 min read

Terraform for AI Agents (6): LLM Gateway and Secrets Management

Centralise LLM API access through one gateway: per-agent quotas, request logging, and zero secrets outside KMS. Terraform-provisioned API Gateway plus self-hosted LiteLLM on ECS, with DashScope/OpenAI/Anthropic keys …

Mar 20, 2026 Terraform Agents 9 min read

Terraform for AI Agents (5): Storage — Vector, Relational, and Object Memory

An agent has three kinds of memory and they map onto three Aliyun services: PolarDB/RDS for sessions, OpenSearch (vector edition) or pgvector for embeddings, OSS for artifacts. Real Terraform for each, plus the lifecycle …

Mar 18, 2026 Terraform Agents 9 min read

Terraform for AI Agents (4): Compute — ECS, ACK, or Function Compute?

The three places an agent's main loop can live on Aliyun: a long-running ECS instance with pm2, a Kubernetes pod on ACK, or a Function Compute invocation. The cost-crossover model I use to pick between them, and a real …

Mar 16, 2026 Terraform Agents 10 min read

Terraform for AI Agents (3): A Reusable VPC and Security Baseline

The first reusable module — a three-zone VPC with public/private subnets, NAT egress, security groups layered by tier, and KMS keys per data domain. The same code shows up in every agent stack I've shipped, parameterised …

Mar 14, 2026 Terraform Agents 10 min read

Terraform for AI Agents (2): Provider, Auth, and Remote State on OSS

Pinning the alicloud provider, picking between AK/SK, AssumeRole, and ECS RAM role auth, putting tfstate on OSS with Tablestore locking, and the workspace pattern that keeps dev/staging/prod from stomping each other. …

Mar 12, 2026 Terraform Agents 8 min read

Terraform for AI Agents (1): Why IaC Is the Only Sane Way to Ship Agents

Agent systems are a moving target — new tools, new memory stores, new regions every month. Manual console clicks don't survive the second teammate. This first article makes the case for Terraform on Alibaba Cloud, …