Anthropic’s Terraform Provider for Claude Agents: What Ends Up in Your State

Anthropic's Terraform provider puts Claude Managed Agents, workspaces and service accounts under code review. We installed version 0.1.0: 33 resource types, deletion protection on 16 of them, only eight write-only secrets, and system prompts and agent memory stored in plain-text state. Five things to settle before the first apply.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 5 min read
Share
An engineer's hands on a laptop keyboard next to a printed sheet with handwritten review notes.
Image: AI-generated, i10X
On this page
  1. What the provider covers
  2. Our test: what is in version 0.1.0
  3. Five things to settle before the first apply
  4. Credentials decide what you can manage
  5. i10x Perspective
  6. What is still open

Anthropic has put a Terraform provider for the Claude Platform into public beta. It lets teams define Claude Managed Agents, their environments, vaults, skills and memory stores, plus workspaces, service accounts and encryption keys, as code that goes through the usual review, terraform plan and apply cycle. That is good news for anyone running more than a handful of agents. It also means that system prompts, tool schemas and agent memory now end up in a Terraform state file, and many teams treat that file far more casually than an API key. We installed the provider to see what it actually contains.

Claude Developers @ClaudeDevs

The Anthropic Terraform provider is now in public beta.

Define Claude Managed Agents, workspaces, and members as code, version them with the rest of your infrastructure, and review each change with terraform plan.

What the provider covers

Version 0.1.0 appeared on the Terraform Registry on December 3 at 19:54 CET and needs Terraform 1.11 or later plus Anthropic’s ant command line tool for sign-in. It works against the Claude API and, through extra provider arguments, against Claude on Amazon Bedrock and Google Cloud. The docs pitch it for the moment when agents stop being experiments: the same agent definition can move from a development workspace to production, every change shows up as a diff, and a rollback is a revert in Git.

Each agent change publishes a new server-side version, and the provider exports that version number, so a pipeline can pin a deployment to a known agent configuration instead of whatever was last clicked together in the Console.

Our test: what is in version 0.1.0

On December 4 we ran terraform init with Terraform 1.17.3 in an empty directory, using a minimal configuration with one sandbox environment and one agent. The provider downloaded without an account (about 82 MB), terraform validate passed, and we read the full schema with terraform providers schema -json. Without credentials, terraform plan stopped before touching anything and listed the four places it had looked for a key.

What we checkedResult
Version and release0.1.0, on the Terraform Registry since December 3, 19:54 CET
Minimum Terraform version1.11 (we tested 1.17.3)
Resource types33
Data sources (read only)69
Types with deletion protection on by default16
Write-only secret arguments (never stored in state)8
Platforms in the provider blockClaude API, Amazon Bedrock, Google Cloud
Download size of the providerabout 82 MB

Source: our own terraform init, validate and providers schema run on December 4, 2026, and the Terraform Registry entry. Counts are ours.

Two details stood out. Deletion protection is switched on by default for 16 resource types, including agents, environments, vaults, skills, workspaces and service accounts, so a careless terraform destroy fails instead of wiping production. And only eight arguments in the whole schema are write-only secrets that Terraform never stores: the vault credential tokens and client secrets, a deployment’s GitHub token and telemetry headers. Everything else you configure is kept in state.

Five things to settle before the first apply

  • State is now sensitive. Anthropic’s behavior page says state holds agent system prompts, custom tool schemas, memory content and inline skill files in plain text, and plan output shows the same values in CI logs and pull request comments. Use an encrypted remote backend with access limits, and keep plan output out of public CI logs.
  • Pass secrets only through write-only arguments. Declare their variables as ephemeral = true. Terraform cannot see when such a value changes, so to rotate a token you bump the matching _wo_version argument.
  • Pin the organization and unset stray keys. The provider block requires organization_id on the Claude API and refuses to plan if the credentials belong to another organization. An exported ANTHROPIC_API_KEY still beats your login profile in the lookup order, so unset it before running against production.
  • Know what destroy means. Destroying an agent archives it permanently together with its deployments, and destroying a workspace archives the workspace and its Developer API keys. Deletion protection only delays that by one extra apply.
  • Commit the lock file. During the beta, resources and arguments can change, and Anthropic warns that some breaking changes can ship in a minor release. The lock file decides when you take them.

A minimal guard for prompts that you do not want in the repository looks like this:

Hcl
variable "support_prompt" {
  type      = string
  sensitive = true   # hidden in plan output, but still stored in state
}

The comment is the point: sensitive keeps the prompt out of logs, not out of state.

Credentials decide what you can manage

Managed Agents resources need a credential that acts inside one workspace, such as a workspace-scoped Developer API key, a normal login or a federation rule with the workspace:developer scope. Organization resources such as workspaces and members need an Admin API key or an org:admin login. No single key does both, so teams that want one repository for everything will end up with two provider blocks and two identities. For pipelines, Anthropic points to workload identity federation instead of long-lived keys. Existing agents and workspaces can be adopted with import blocks and terraform plan -generate-config-out, which writes the matching resource code for you.

If you run agents through Amazon Bedrock, the same provider can manage the Bedrock version of Managed Agents that Anthropic and AWS launched this week. For how agent configuration layers fit together on the coding side, see our explainer on CLAUDE.md, skills, hooks and subagents. All our Claude coverage is on the Claude product page.

How we checked

Checked on 4 December 2026, 08:37 CET.

  • Anthropic’s Terraform docs: getting started, authentication, operations and behavior pages, read December 4, 2026
  • Terraform Registry entry for anthropics/anthropic 0.1.0 and the provider schema from our own terraform init with Terraform 1.17.3
  • The resource counts, the 16 deletion-protected types and the eight write-only arguments are our own count from that schema
  • We did not apply anything against a live Claude organization

i10x Perspective

Agents are turning into infrastructure, and this provider makes that official. That is mostly positive: reviewable diffs and pinned versions are exactly what long-running agents have lacked. But it moves the most valuable part of an agent, its prompt and memory, into a file that DevOps teams have spent years treating as a technical byproduct. Teams that adopt the provider should review their state backend with the same care as their secrets manager, because for agents the state file is close to being one.

What is still open

Anthropic has not said when the provider leaves beta, whether the Claude Console will show which resources are managed by Terraform, or how drift is handled when a colleague edits an agent in the Console. The Registry also lists the provider in its community tier, so the only reliable check is the exact source address anthropics/anthropic. We will update this article when the beta ends.

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Timeline

What happened before

  1. Release

    Claude Haiku 5.5

    1M context · $0.1 / $0.5 per 1M tokens

    support.claude.com (source, opens in a new tab)
  2. Release

    Claude Sonnet 5.5

    1M context · $2 / $10 per 1M tokens

    support.claude.com (source, opens in a new tab)
  3. Release

    Claude Opus 5.5

    1M context · $4 / $20 per 1M tokens

    First model of the Claude 5.5 family; performs at the level of Claude Fable 5.1 on most work and costs 40% less to run than Opus 5.

    anthropic.com (source, opens in a new tab)
  4. Release

    Claude Fable 5.1 & Mythos 5.1

    1M context · $10 / $50 per 1M tokens

    Anthropic's most advanced models for coding and knowledge work. Price/context shown for Claude Fable 5.1 (models overview).

    support.claude.com (source, opens in a new tab)
  5. Release

    Claude Opus 5

    1M context · $5 / $25 per 1M tokens

    support.claude.com (source, opens in a new tab)
Full Claude timeline ›

Editor's picks

  1. Anthropic’s Terraform Provider for Claude Agents: What Ends Up in Your State
  2. DoorDash breach: AI tools exposed names, addresses and phone numbers of users
  3. Hacked Next.js servers lose AI, cloud and crypto keys in React2Keys campaign
  4. Gemini API Now Changes Agent Rules Mid-Session Without Breaking the Cache
  5. FLUX 3.1 Image Costs Less Than Half of Nano Banana 2.1 at 1K: Price Check