Hot AI News

Claude agents can now live in Terraform code, and their prompts in its state file

The beta provider covers Claude workspaces, service accounts, federation rules and Managed Agents, and it reaches into Amazon Bedrock and Google Cloud too.

Claude agents can now live in Terraform code, and their prompts in its state file
Image: Anthropic

Anthropic has released a Terraform provider in beta. Teams can now define Claude organization settings and Claude Managed Agents in configuration files, then create, change and delete them with the same tool many companies already use for cloud infrastructure.

Workspaces, federation rules and agents in one config

The December 3 release notes split the provider into two areas. On the organization side it handles workspaces, service accounts, Workload Identity Federation issuers and federation rules. On the agent side it handles Claude Managed Agents objects: agents, environments, vaults and skills. It is installed from the Terraform Registry under the source address anthropics/anthropic. The project’s GitHub README calls that the only official address for the provider.

Claude agents can now live in Terraform code, and their prompts in its state file
Image: Anthropic

Coverage depends on where Claude runs. According to Anthropic, many of these resources can also be managed on Claude Platform on AWS and on Claude Models on Google Cloud (Anthropic managed). On Claude Managed Agents on Amazon Bedrock, the scope is narrower: agents, memory stores and memories.

The provider’s behavior documentation names resource types such as anthropic_workspace, anthropic_service_account, anthropic_federation_rule, anthropic_beta_agent, anthropic_beta_environment, anthropic_beta_vault and anthropic_beta_deployment. It also lists separate Bedrock resources such as anthropic_beta_bedrock_agent, plus data sources for models, workspaces and rate limits. The beta prefix on most of the agent resources matches the warning in the setup guide: resource types and their arguments may change while the beta lasts.

Advertisements

Prompts and memories end up in plain-text state

Infrastructure-as-code tools are not new. What is new here is the kind of resource being versioned. An agent’s system prompt, its environment and its memory now become lines in a configuration file that can be reviewed, diffed and rolled back like a server definition. That fits the way Anthropic has been building Managed Agents. In the past three weeks, according to the same release notes, the company has launched a self-hosted version of the service (November 12) and a Bedrock version that AWS operates and bills (December 1). That second launch is the one aiholics covered alongside Claude running inside customers’ own data centers through AWS AI Factories. A single tool that can describe agents across several hosts is the logical next layer.

The documentation also shows the trade-offs. Terraform keeps a state file, and Anthropic’s behavior page says this state holds data in plain text, agent system prompts and memory content included. Anyone with access to a team’s state backend can therefore read those prompts and memories. Vault credential secrets are handled differently: they are write-only arguments (token_wo, secret_value_wo). Write-only arguments are a reason the setup guide asks for Terraform 1.11 or later. The GitHub README is looser, listing Terraform 1.0 as the minimum and 1.11 only for setting write-only secrets.

Anthropic has also built in protection against accidental deletion. Deletion protection is on by default, so terraform destroy fails until it is turned off. According to the docs, destroying most resources archives them for good. Credentials have their own split. An Admin API key works for organization resources but not for Managed Agents resources. Those need a login with at least a developer role (ant auth login) or, in pipelines, Workload Identity Federation. The provider’s repository is licensed under Apache 2.0, the same license Anthropic moved its SDKs to in October.

No version history or support terms yet

The announcement does not give a general availability date, a pricing note or any service commitment for the beta. The provider itself appears to be free; Anthropic bills the underlying usage as usual. At the time of writing, the public GitHub repository showed a single commit and no tagged releases. The README’s sample configuration pins version ~> 0.1.0, but the Terraform Registry page did not render a version number when aiholics checked it. Anthropic recommends committing Terraform’s lock file because arguments can still change. That advice means teams adopting the provider now should expect some migration work before it leaves beta.

The Registry listing is not the full picture either. The behavior page notes that it lists more resources than the documentation covers. The docs also do not say whether Microsoft Foundry deployments of Claude will get the same coverage that AWS and Google Cloud have now.

Sign Up for the Daily AI Pulse

One email a day. All the stories that matter.

Leo MartinsAI Tools, Prompts & Practical AI Expert

Leo Martins is the AI Tools & Practical AI Expert at Aiholics, focused on helping readers use artificial intelligence to improve productivity, creativity and everyday work.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like