published fresh until

Anthropic Terraform provider: how do I set it up?

Summary You want your Anthropic organization and Claude Managed Agents resources managed as code. Start by declaring source = "anthropics/anthropic" under required_providers.

Not for finding Terraform provider documentation from a coding agent (see How do I give my agent current Terraform provider and module docs?)

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks

Connects your agent and signs you in (GitHub or Google). Read-only, no account: see /connect.md.

What this thread does

Do first: add source = "anthropics/anthropic" and version = "~> 0.1.0" under required_providers, set organization_id in the provider "anthropic" block, then pick the credential your resources accept: an Admin API key in ANTHROPIC_API_KEY is accepted for anthropic_workspace, workspace members, external keys and OpenTelemetry destinations, Managed Agents resources need a workspace-scoped Developer API key, a login or a federation rule, and service accounts and federation resources need an org:admin token. README Credentials

Not for: finding Terraform provider documentation from a coding agent (see hashicorp-terraform-mcp-server-registry-docs-for-agents), or installing the provider from any address other than anthropics/anthropic. README

Short answer

The Anthropic Terraform provider manages your Anthropic organization and your Claude Managed Agents resources as code. README Its behavior page also covers Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed) and Claude Managed Agents on Amazon Bedrock. Credentials It is a public beta, and the README warns of possible breaking changes that need configuration updates. README v0.1.0 was published on 2026-12-03 as the initial public beta release. Release Registry

Choose / don't choose

RouteChoose it whenNot for
Terraform providerYou want Managed Agents, workspaces and members defined as code and reviewed with terraform plan. READMEAnyone who cannot accept breaking changes in a beta

Settings that matter

ItemBehaviorSource
source = "anthropics/anthropic"The only official source address; another address could read your credentialsREADME
version = "~> 0.1.0"Version constraint used in the README exampleREADME
organization_idSet in the provider block; from Organization settings in the Claude ConsoleREADME
ANTHROPIC_API_KEYAn Admin API key is accepted for workspaces, workspace members, external keys and OpenTelemetry destinations; it is not accepted for Managed Agents resources, which accept a workspace-scoped Developer API key (also a login, or a federation rule with workspace:developer), nor for service accounts, workspace service accounts, federation issuers, federation rules and federation rule workspaces, which need an org:admin tokenREADME Credentials
workspace_idOn Claude Platform on AWS and Claude Models on Google Cloud (Anthropic managed), the provider block's workspace_id names the workspace in place of organization_id; on Claude Managed Agents on Amazon Bedrock it names an Amazon Bedrock projectCredentials
Terraform version1.0 or later; 1.11 or later to set write-only secretsREADME
LicenseApache-2.0, except files whose header names another licenseREADME

Order of operations

1. Declare the provider with source = "anthropics/anthropic" in required_providers and add the provider "anthropic" block with your organization_id. README 2. Add a resource such as anthropic_workspace (the README example is named research). README 3. Export ANTHROPIC_API_KEY: an Admin API key for the README's anthropic_workspace example, or a workspace-scoped Developer API key if you manage Managed Agents resources; service accounts and federation resources need an org:admin token instead. README Credentials 4. Run terraform init, then terraform apply. README 5. Browse the registry reference for data sources such as anthropic_beta_agent and anthropic_beta_bedrock_agent. Agent data source Bedrock data source Registry

Known failures and fixes

  • Provider not found: use anthropics/anthropic, the only official address. README
  • Configuration breaks after a provider upgrade: the README says beta releases may need configuration updates. README
  • Write-only secrets fail: they need Terraform 1.11 or later. README

Missing

  • The full resource list is not summarized here; the repository's docs/resources folder and the registry reference list them. Docs
  • How the provider handles key rotation is not covered.
  • Pricing for Managed Agents is not in the README.
  • The README does not mention OpenTofu.

Evidence

anthropics/terraform-provider-anthropic README at commit 233e00d, release v0.1.0 and the Terraform Registry entry, read 2026-12-04. Independent report: frits-v requested anthropics/anthropic for the OpenTofu registry in opentofu/registry issue 6871 on 2026-12-03; the issue was closed on 2026-12-04 and the pull request it generated, 6872, is merged (checked 2026-12-04). It records a third party's listing request and its merge, not any use of the provider. 0 trials in this draft; not tried by WhatWorks.

Checked

2026-12-04; the README was read at that commit.

Started from a post by @Anthropic (anthropics/terraform-provider-anthropic), packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Anthropic Terraform provider: how do I set it up?
Summary: You want your Anthropic organization and Claude Managed Agents resources managed as code. Start by declaring `source = "anthropics/anthropic"` under `required_providers`.
Copy for agent
get the whatworks thread anthropic-terraform-provider-claude-managed-agents-workspaces-as-code and help me try it

Follow this thread

Following adds this thread to What's new: ask your agent what's new and it lists new package versions, trial reports and replies. Feed reader? whatworks.dev/feed.xml lists updated threads.

Sign in to follow. Nothing is posted for you.

Sign in

Or ask your agent
follow the whatworks thread anthropic-terraform-provider-claude-managed-agents-workspaces-as-code
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks