Managing Claude settings as code

Anthropic on Dec. 3 (Dec. 4 Japan time) released in beta a provider, a connector component between Terraform and individual services, that lets "Terraform," a tool for writing and managing infrastructure configuration as code, manage settings on its developer platform, "Claude Platform." The Claude Platform release notes said the provider lets you manage Claude Platform resources as code.

Anthropic's developer account on X, "ClaudeDevs," posted that users can define its AI agent platform "Claude Managed Agents," workspaces and members as code, version them with the rest of their infrastructure, and review each change with "terraform plan." terraform plan is a Terraform command that lists what will be added, changed or deleted before a configuration change is actually applied. The documentation said changes to Claude resources go through the same review, plan and apply workflow as other infrastructure.

Organization resources and agents both covered

According to the release notes, the provider handles two kinds of resources. One is organization resources, for which it named workspaces, service accounts, meaning accounts used by programs rather than people, and the issuers and rules of "Workload Identity Federation," which connects to external authentication systems. The other is Claude Managed Agents resources, for which it named agents, the environments where agents run their tools, vaults that hold credentials, and skills.

The overview documentation on the Terraform Registry also lists workspace members, external keys, telemetry destinations, organization webhooks, permission groups (RBAC) and MCP tunnels as manageable resources in its authentication table. Version 0.1.0 on the Registry includes 33 resources that can be created or changed and 69 read-only data sources.

Many of these resources can also be managed on "Claude Models on Google Cloud (Anthropic managed)" on Google Cloud and on "Claude Platform on AWS" on AWS. On the AWS-operated Bedrock version of Claude Managed Agents, agents, memory stores and memories can be managed. AWS began offering the Bedrock version in preview on Dec. 1 (Dec. 2 Japan time), as ORIENS reported.

Resource types and arguments may change during the beta

The documentation states that the provider is in beta and that resource types and their arguments can change during the beta. It asks users to commit the lock file, which pins the version in use, to version control so they can choose when to adopt the changes. The Registry overview describes the provider as beta pre-release software provided under the user's agreement with Anthropic, such as the Commercial Terms of Service and the Beta Services section of the Service Specific Terms. It also says there may be breaking changes that require updates to configurations as development continues.

The only version published on the Registry is 0.1.0, released on Dec. 3 (3:54 a.m. Dec. 4 Japan time). Anthropic has not announced when the provider will become generally available or plans for the next version.

Providers from other addresses "could read" credentials

Anthropic said "anthropics/anthropic" is the only official source address for the provider. Because the provider runs with access to Anthropic credentials, one installed from any other address could read them, it said.

The Registry overview also lists security cautions. Terraform state files and plan output contain system prompts, tool definitions, memory content and skill files in plain text. Arguments whose names end in "_wo," such as vault credential secrets, are write-only and are not stored in state, but secrets passed through ordinary variables remain in saved plans.

According to the documentation, "deletion protection," which guards against accidental removal, is on by default, and "terraform destroy" stops until it is turned off. When deletion protection is turned off and terraform destroy is run, the environment is deleted and the agent is archived.

Requirements

The documentation lists Terraform 1.11 or later, Anthropic's command-line tool "ant," and, for Managed Agents resources, an organization with access to Claude Managed Agents. The Registry overview says the provider works with Terraform 1.0 or later and that 1.11 or later is needed to set write-only secrets.

The credentials required vary by resource. Workspaces and members require an Admin API key or a profile with organization admin scope, and permission groups and similar features require an admin key for the enterprise plan "Claude Enterprise." Managed Agents resources can be handled with an API key or profile for the workspace. The configuration specifies the organization ID, and the provider stops if the credentials belong to another organization.

No pricing for the provider itself is listed on the official pages (as of Dec. 4).

OpenAI manages organizations with "openai/openai"

OpenAI also carries a guide to its official Terraform provider, "openai/openai," in its developer documentation. According to OpenAI's guide, the provider uses the company's Administration API to manage projects, users, groups, roles, service accounts, certificates, rate limits, spend alerts and more. The guide's sample configuration uses version 1.0.0 or later. The items OpenAI's guide lists are organization and project settings, and agents are not among them. Anthropic's provider covers Managed Agents agents and environments in addition to organization settings.

The ClaudeDevs post

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. Set `anthropics/anthropic` as a provider to try it.