Claude Platform Docs
AdminCustomer-owned storage

Set up customer-owned storage

Create a bucket in your own cloud account, connect it in the Claude Console, and confirm that your Sealed Safety Data arrives in it.

Amazon S3Google Cloud Storage
Amazon S3Google Cloud Storage
Claude ConsoleAdmin API
Claude ConsoleAdmin API

With Enterprise Frontier Safeguards (EFS), customer-owned storage keeps a workspace’s Sealed Safety Data in a bucket in your own cloud account.

Set up customer-owned storage on Amazon S3

To set up your storage in Amazon S3, create the resources in your own cloud account, then connect them in the Claude Console:

  1. Update your cloud organization’s policies to allow access from select external accounts.
  2. Create your bucket and its encryption key.
  3. Create the roles that give Anthropic access to your bucket.
  4. Connect your bucket in the Claude Console, and test the setup.

Once the test passes, you can use your bucket in a workspace.

The Connect storage dialog gives you the setup file and tests your setup.

You can use the Admin API to register, check, and attach your Amazon S3 bucket for customer-owned storage. The Admin API is useful if you want to script your setup or manage many workspaces. Although you can handle most steps through the API, you still need to get a setup file from the Claude Console, as Get your setup file describes.

In the API, an External Storage is Anthropic’s record of your bucket, not your bucket itself.

Before you begin

Make sure that you have the following:

  • An Organization Admin in the Claude Console, who gets the setup file and connects your bucket.
  • Access to Enterprise Frontier Safeguards. If your organization has it, the Programs page in the Claude Console shows it with a Configure button.
  • A cloud account for your bucket. Anthropic recommends a dedicated account that holds only this bucket and that no other Anthropic organization has used for customer-owned storage. You can also use an account that holds other buckets.
  • No automation that deletes your bucket, its key, or the roles. Check with the team that manages the cloud account, because some test accounts have a cleanup job. If something deletes one of them, your bucket stops working.
Using a bucket ties it to one Anthropic organization

The first time you use a bucket, you tie the bucket, its name, its key, and its roles to this organization. That first use is when you select the bucket for a workspace and save, or create a workspace with it (in the API, the first attach request that succeeds). Treat the tie as permanent. Don’t plan on another Anthropic organization using the bucket, its name, its key, or its roles for customer-owned storage.

Authenticate your requests

Every request on this page sends anthropic-version: 2026-10-21 and anthropic-beta: efs-2026-10-01. Send one of these credentials with each request:

  • An OAuth bearer token with the org:admin scope: Every request on this page takes one in the authorization: Bearer header. To get one, see OAuth bearer token. The examples read it from $ANTHROPIC_AUTH_TOKEN. The token is short-lived: if a request returns a 401 error, get a new one.
  • A personal key or service account key: Every request on this page takes one in x-api-key. Use a key that isn’t scoped to a workspace (see Key types). The Admin API refuses a key that’s scoped to a workspace, even for requests on that workspace.
  • An Admin API key: It can’t attach or detach storage: those requests return a permission error. The External Storage requests take one in x-api-key. To get one, see Create an Admin API key.

For a token or a personal or service account key, the account must have the admin role. To use a key, replace the authorization header in each example with x-api-key: $ANTHROPIC_API_KEY.

Register your bucket

You can register your bucket before you create it. The Claude Console uses the details that you register to fill in your setup file.

Tell Anthropic which bucket you plan to use:

cURL
curl https://api.anthropic.com/v1/organizations/external_storage \
  -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
  -H "anthropic-version: 2026-10-21" \
  -H "anthropic-beta: efs-2026-10-01" \
  -H "content-type: application/json" \
  -d '{
    "display_name": "Claude retention",
    "provider_config": {
      "type": "aws",
      "account_id": "111122223333",
      "bucket_name": "acme-claude-retention",
      "region": "us-east-2"
    }
  }'

provider_config identifies your bucket. Before you send the request, check each field against its constraint:

  • type: aws.
  • account_id: the 12-digit ID of the AWS account that owns your bucket. Create and connect your bucket outlines when an account can hold more than one bucket.
  • bucket_name: globally unique, 3 to 63 lowercase letters, digits, and hyphens, starting and ending with a letter or digit, with no dots. If the setup file creates your bucket, don’t reuse the name of a bucket that you already own.
  • region: the AWS region your bucket is in, one of the regions that Anthropic supports. If your bucket isn’t in the region you give, activating your bucket fails.

The response looks like this:

{
  "type": "external_storage",
  "id": "estrg_01SDCCSbTxrXDpWc1phhtcfK",
  "display_name": "Claude retention",
  "provider_config": {
    "type": "aws",
    "account_id": "111122223333",
    "bucket_name": "acme-claude-retention",
    "region": "us-east-2"
  },
  "status": {
    "type": "pending_configuration"
  },
  "setup_template_version": null,
  "created_at": "2026-10-08T17:00:00Z",
  "updated_at": "2026-10-08T17:00:00Z"
}

Keep your bucket’s id, which starts with estrg_, for use in later steps.

The request can fail for reasons such as these:

  • Your organization isn’t approved: If your organization can make these requests but Anthropic hasn’t approved it to use customer-owned storage, the response tells you to contact your Anthropic account team.
  • Your organization isn’t eligible: If error.details.error_code is organization_not_eligible, customer-owned storage isn’t available to your organization.
  • The bucket is already registered: Anthropic refuses a second registration of the same bucket. To find the existing one, list your External Storage with GET /v1/organizations/external_storage.

Create and connect your bucket

To set up customer-owned storage, you need to create three things in your AWS account: your bucket, a KMS key, and IAM roles. With CloudFormation or Terraform, one file creates all of them. With your own tooling, you create each one yourself.

You can put more than one bucket in the same AWS account, even if the buckets belong to different Anthropic organizations. If you do, or if other teams work in the account, keep the following in mind:

  • Separate resources: Each organization needs a bucket and a KMS key of its own, and each bucket needs a stack of its own or, with Terraform, a folder of its own.
  • Who else works in the account: Anyone in the AWS account who can create IAM roles, or who has wide Amazon S3 and AWS KMS permissions, can read your Transcripts and Safety Case files, delete files, and cut off Anthropic’s access.

1. Update your AWS organization’s policies

In this step, you add an exception for Anthropic’s AWS account to your AWS organization’s policies, so that Anthropic can reach your bucket. You need this step only if your AWS organization has a resource control policy (RCP) that denies AWS STS actions to principals outside the organization. If you skip the change under a policy like that, Test setup fails at the IAM roles. Another team often makes the change, so it makes sense to ask for it early.

Anthropic reaches your bucket through IAM roles that you create in a later step. It assumes those roles from its AWS account, 804820989669, and works in Amazon S3 and AWS KMS as those roles. Under an RCP of that kind, AWS refuses Anthropic’s requests to assume the roles, whatever the roles’ trust policies say.

Find out whether the step applies

If you created your AWS account with Sign up for AWS (new), the step applies. That account belongs to an AWS organization whose policies AWS manages, and those policies include an RCP of this kind. The policy is ManagedAccountResourceControlPolicy, and the statement is DenyAnyoneOutsideMyOrgAndAWS. Before you try to change the policy, read Managed policies for your organization in AWS’s documentation.

For any other account, ask the team that manages your AWS organization’s policies whether an RCP denies AWS STS actions to principals outside the organization. If none does, skip this change and go to step 2.

Add Anthropic’s AWS account to the policy

Ask the team that manages your AWS organization’s policies to add Anthropic’s AWS account to the statement that denies outside principals. In this example, the added line is aws:PrincipalAccount, beside the organization ID:

{
  "Sid": "EnforceOrgIdentities",
  "Effect": "Deny",
  "Principal": "*",
  "Action": ["sts:*", "s3:*", "kms:*"],
  "Resource": "*",
  "Condition": {
    "StringNotEqualsIfExists": {
      "aws:PrincipalOrgID": "o-exampleorgid",
      "aws:PrincipalAccount": "804820989669"
    },
    "BoolIfExists": { "aws:PrincipalIsAWSService": "false" }
  }
}

If your own statement already lists accounts under aws:PrincipalAccount, add 804820989669 to that list instead of adding a second line.

If a workspace on Claude Platform also uses a customer-managed encryption key in AWS KMS, Anthropic calls that key from account 915198916910. If your statement denies AWS KMS actions, add that account too.

The added line in the example exempts every principal in Anthropic’s AWS account, for every action and every resource that the statement covers. A narrower exception should be enough, but Anthropic has seen Test setup pass only with the account-wide exception. For what a narrower exception has to allow, see Template reference.

Check that it worked

To check the change, run Test setup in step 4. If a policy blocks Anthropic, the test shows several failed checks.

2. Create your bucket and its KMS key

In this step, you create the bucket that holds your data, along with its KMS key. The KMS key is the bucket’s default encryption key, so it encrypts what Anthropic writes there. This key is separate from the customer-managed key you attach to a workspace.

Create your bucket and its KMS key in one of these AWS regions: us-east-2, us-east-1, us-west-2, eu-central-1, eu-west-1, ap-northeast-1, or ap-southeast-2. You can’t change a bucket’s region later. Your bucket’s region determines where your cloud provider stores the bucket’s objects. It doesn’t change where model inference runs or where Anthropic processes your data. Anthropic recommends us-east-2 because Anthropic reads and writes your bucket from us-east-2.

The setup file creates the key and the bucket with these settings:

ResourceSettings
KMS keyA single-region key in the same AWS account and region as the bucket, with rotation on. Your account administers it. Its policy names neither Anthropic nor the roles.
BucketVersioning on. Default encryption with the KMS key, named by its key ARN, with S3 Bucket Key on. Public access blocked. ACLs off (BucketOwnerEnforced). S3 Object Lock off.
Lifecycle rulesThe next table lists what they do.
S3 InventoryDaily reports for slab/ and media/. Amazon S3 delivers them under inventory/ in the same bucket. Two more reports cover the same prefixes under safeguards-data/ and go under safeguards-data/inventory/.
Bucket policyIt denies permanent deletes of object versions under slab/, refuses requests without TLS, and lets Amazon S3 deliver the inventory reports. It also refuses every IAM role whose name starts with anthropic-efs-, except this setup’s.

Keep anthropic-efs- out of your own roles’ names and paths, including the role that deploys the file, because the bucket policy refuses those roles.

The lifecycle rules do the following:

What the lifecycle rules act onWhat they do
Old versions under slab/ and media/Delete them after 3 days
Incomplete multipart uploadsStop them after 7 days
Inventory reportsExpire them after 14 days
Leftover delete markersRemove them
Transcripts and Safety Case summariesExpire them after 28 days, and delete their earlier versions 3 days later
Other Safety Case files, your team’s responses includedExpire them after 2,555 days (about 7 years), and keep each earlier version for the same number of days after it stops being current

Get your setup file

Get the setup file and its commands from the Create in AWS step of the Connect storage dialog. If the dialog isn’t open, open it as step 4 describes, enter your bucket’s details, and stop at Create in AWS. Save the file and commands, because the Claude Console doesn’t show them after the test passes. If someone else runs the file in AWS, send them the file and commands, and click Test setup when they’ve finished.

Get the setup file and its commands from the Claude Console, which fills in your values. As an Organization Admin, open the Data retention page and select Organization at the top. Click Finish setup beside the bucket you registered, and stop at Create in AWS. Run the file as Create your bucket and its KMS key describes. You can also create the same resources another way, as long as they match the file.

Create everything in the region that you entered in the dialog, even if the file’s header names us-east-2. For a new bucket, run only the file that the dialog gives you, which creates seven roles. If you already ran an earlier file that creates roles with fixed names, see “Test setup says that Anthropic could not assume the verify role” in Troubleshooting.

Don’t run a seven-role file over a setup with fixed role names

If you have a setup that passed Test setup and its roles have fixed names, such as anthropic-efs-ingest, leave that setup and its storage destination as they are. In that setup’s Terraform folder, don’t apply a file that creates seven roles, because the apply deletes the fixed-name roles and cuts off Anthropic’s access.

Deploy the CloudFormation stack

  1. Check the AWS account. Save the file in an empty folder. From that folder, run aws sts get-caller-identity and check that it shows the AWS account for your bucket.
  2. Deploy the stack. In the same terminal, run the dialog’s deploy command as shown, which has your values filled in. Don’t change the stack’s name, anthropic-storage-<RoleDigest>, because the template refuses any other. RoleDigest is a 20-character value that’s already in the command.

Check that it worked. The command prints Successfully created/updated stack and your stack’s name. If the deploy fails, see Troubleshooting.

3. Create the IAM roles

This step covers the seven IAM roles that give Anthropic access to your bucket. Each role allows one kind of work. Each role’s name is anthropic-efs-<RoleDigest>-<ending>, where RoleDigest is a 20-character value that’s specific to this setup.

Role name ends inWhat Anthropic does through itWhat it can do with your bucket’s KMS key
ingestWrites your Sealed Safety Data under slab/ and media/.kms:GenerateDataKey and kms:Decrypt
readReads under slab/, media/, and slab-manifest/, and lists those three prefixes.kms:Decrypt
maintenanceReads and writes objects under slab/, media/, and slab-manifest/, and adds delete markers to them. Reads the inventory reports under inventory/ and the bucket’s configuration. Lists slab/, media/, slab-manifest/, and inventory/. Can list unfinished multipart uploads anywhere in the bucket. It never removes an object version.kms:GenerateDataKey and kms:Decrypt
media-erasureLists media/ and permanently deletes object versions under it, and nothing else.Nothing
verifyWrites, reads, and deletes test objects and their versions under verify/, and lists object versions there. Reads the bucket’s configuration. Can read the inventory report manifests under inventory/, and list inventory/.kms:GenerateDataKey, kms:Decrypt, and kms:DescribeKey
transcriptsWrites Transcripts under transcripts/. Lists and permanently deletes their versions. It can’t read a Transcript.kms:GenerateDataKey and kms:Decrypt
reviewWrites, reads, and lists Safety Cases under review-cases/. Writes summaries and Safety Notices under review-summaries/ and review-notices/. Reads and lists your team’s responses under review-responses/. Can permanently delete cases, summaries, and Safety Notices. It can’t read a Transcript, or write, change, or delete a response.kms:GenerateDataKey and kms:Decrypt

Each role trusts only roles in Anthropic’s AWS account, 804820989669, whose names start with anthropic-storage-broker- (for the review role, anthropic-review-broker-). The caller must be in Anthropic’s AWS organization. Each role also requires your external ID and a source identity from that role’s permitted set. Your setup file has each role’s full policy.

For each of the first five roles in the table, the permissions also apply to the same prefixes under safeguards-data/, such as safeguards-data/slab/. The lifecycle rules and the bucket policy cover those prefixes too. What protects object versions in your bucket says what Anthropic’s roles can’t delete.

Use the roles from the CloudFormation stack

The stack you deployed in step 2 created all the roles, so there’s nothing to run here.

Leave the bucket and the roles as they are

After you create your bucket and the roles, don’t change the bucket, its bucket policy, its KMS key’s policy, or the roles. The one change that you can make is to set ReviewExpiryDays. If Anthropic’s checks find any other change, they fail.

4. Connect your bucket in the Claude Console

Sign in to the Claude Console in the Anthropic organization whose workspaces will use your bucket, because the roles accept only that organization’s ID.

On the Data retention page, select Organization at the top. Under Storage destinations, click Connect storage, or click Finish setup if you already started the dialog. A storage destination is the Claude Console’s record of your bucket.

Select your provider

Select Amazon S3, then click Continue.

Enter your bucket details

Enter the AWS account ID and AWS region where you’ll create your bucket. Under New bucket name, enter the name you’ll give your new bucket. Don’t reuse the name of a bucket that you already own.

Create in AWS

If you’ve already run this step’s file, go to Test setup. If you haven’t, select CloudFormation, Terraform, or Your own tooling, then follow steps 1 to 3.

Test the setup

Click Test setup. Anthropic checks your bucket, its key, and the roles for Sealed Safety Data, and lists anything to fix. If the test fails, see Troubleshooting.

4. Activate your bucket

Ask Anthropic to check your setup. The request has no body:

cURL
curl -X POST https://api.anthropic.com/v1/organizations/external_storage/estrg_01SDCCSbTxrXDpWc1phhtcfK/activate \
  -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
  -H "anthropic-version: 2026-10-21" \
  -H "anthropic-beta: efs-2026-10-01"

Anthropic checks your bucket, its KMS key, and the roles for Sealed Safety Data while the request runs. If everything passes, the status becomes available and your bucket is ready to attach. If a check fails, see Troubleshooting on Manage customer-owned storage.

Use your storage destination in a workspace

Once your bucket passes its test, select it for each workspace that should use it. Do this before the workspace carries traffic that you need stored in your bucket, because the change doesn’t take effect right away. If your organization has a Legacy Zero Data Retention (ZDR) arrangement, select the Enterprise Frontier Safeguards card and your bucket as you create the workspace. Follow the Legacy ZDR steps in Set up Enterprise Frontier Safeguards on Claude Platform on AWS.

Anthropic strongly recommends a customer-managed key for a workspace that uses customer-owned storage, but doesn’t require one. Before you decide, read what a customer-managed key adds beyond your bucket’s own KMS key.

On the workspace’s Data retention page, select the Enterprise Frontier Safeguards card, then select your bucket under Sealed Safety Data storage. Also select your bucket under Safety Case and Transcript storage.Safety Case and Transcript storage is optional. Without a bucket under it, your team gets Safety Cases only if your organization has access to the Safety Cases API. You can select your bucket under it if your bucket can receive Transcripts and Safety Cases.

Then, save the workspace. If Anthropic refuses your bucket when you save, see Troubleshooting.

Saving turns Anthropic Human Review off, which can take up to 2 hours. To check that your save worked, make sure that Case review by reads My organization in the workspace’s side panel on the Workspaces page. If Case review by doesn’t read My organization, open the workspace on the Data retention page and click Save again, even if you’ve changed nothing. If you can’t, or Case review by still doesn’t read My organization, contact your Anthropic account team before you send real traffic.

Attach your bucket to a workspace

Attach your bucket to each workspace that should use it. Attaching tells Anthropic to store that workspace’s Sealed Safety Data in your bucket.

In an organization with a Legacy Zero Data Retention (ZDR) arrangement, don’t attach your bucket to a workspace that has data retention off. Create a workspace with your bucket already attached instead.

To attach your bucket, update the workspace with POST /v1/organizations/workspaces/{workspace_id} and set inference_data_privacy.safeguards_storage to type external with your bucket’s ID. This field is the Claude Console’s Sealed Safety Data storage.

cURL
curl https://api.anthropic.com/v1/organizations/workspaces/wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ \
  -H "authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
  -H "anthropic-version: 2026-10-21" \
  -H "anthropic-beta: efs-2026-10-01" \
  -H "content-type: application/json" \
  -d '{
    "inference_data_privacy": {
      "safeguards_storage": {
        "type": "external",
        "external_storage_id": "estrg_01SDCCSbTxrXDpWc1phhtcfK"
      },
      "human_review": {
        "type": "disabled"
      }
    }
  }'

When the request succeeds, your bucket’s status becomes active. The example request also sets inference_data_privacy.human_review to type disabled, because in the Admin API an attach alone doesn’t turn Anthropic Human Review off. With Enterprise Frontier Safeguards (EFS), Anthropic Human Review is always off and your own team reviews the workspace’s Safety Cases.

An attach doesn’t take effect right away. Until it does, Sealed Safety Data from a workspace that had no safety data bucket might go to Anthropic-managed storage. Until 10 minutes after the first new object arrives, send only test requests with no sensitive data, because Anthropic’s servers don’t all pick up the change at once. To confirm that the attach has taken effect, watch for new objects arriving under slab/ or safeguards-data/slab/ in your bucket. Neither the active status nor reading the workspace back shows that the attach has taken effect. If another workspace already sends data to this bucket, new objects don’t show it either, so ask your Anthropic account team before you send real traffic.

To move a workspace to another bucket, follow Change your bucket. At step 1, register and activate your new bucket. At step 2, send the attach request with the new bucket’s ID instead. If transcripts_storage names your old bucket, set it to the new bucket’s ID in the same request. Don’t detach first, or new Sealed Safety Data can go to Anthropic-managed storage.

The attach request can return errors such as these:

  • human_review_on_with_external_storage: Anthropic can return this if you leave human_review out while Anthropic Human Review is on.
  • approval_required: Your organization doesn’t have Anthropic’s approval to turn off Anthropic Human Review. The request changes nothing.
  • workspace_policy_violation: Your organization’s policy refuses the request, for example because it requires Anthropic Human Review.
  • transcripts_storage_required: Nothing changes. Set transcripts_storage too in the same request.

For more on attach errors, see Troubleshooting on Manage customer-owned storage.

Send Transcripts and Safety Cases to a bucket

To send Transcripts and Safety Cases to your bucket, set inference_data_privacy.transcripts_storage to type external with the same ID as safeguards_storage. This field is the Claude Console’s Safety Case and Transcript storage. You can set both storage fields in the same request. If a check fails on either field, Anthropic stops the whole request. Transcripts and Safety Cases in your bucket says which buckets can receive them.

Create a workspace with your bucket already attached

To create a workspace with your bucket already attached, send the same inference_data_privacy settings to POST /v1/organizations/workspaces. The attach still doesn’t take effect right away. In an organization with a Legacy ZDR arrangement, data retention can be off for the new workspace. If it’s off, nothing goes to your bucket until you turn it on. To turn it on, open the workspace’s Data retention page in the Claude Console, click Finish switching, and then click Accept. The workspace starts to keep Sealed Safety Data at Accept, so allow time for the attach to take effect first. Send only test requests until 10 minutes after the first new object arrives.

If the create request returns approval_required, grant_required, authorization_check_unavailable, human_review_on_with_external_storage, or transcripts_storage_required, the workspace isn’t created.

Approval for chosen workspaces can’t cover a workspace that doesn’t exist yet. If the create request returns grant_required in an organization with a Legacy ZDR arrangement, don’t create the workspace without your bucket. Contact your Anthropic account team. In any other organization, create the workspace without inference_data_privacy, ask your Anthropic account team to have the workspace approved, and then attach your bucket as Attach your bucket to a workspace describes.

For the full steps, including the workspace’s other settings, see Set up Enterprise Frontier Safeguards on Claude Platform.

For the full steps, including the workspace’s other settings, see Set up Enterprise Frontier Safeguards on Claude Platform on AWS.

You can use a policy for new workspaces to require customer-owned storage for every new workspace that keeps Sealed Safety Data.

Confirm that the change took effect

Before the workspace carries traffic that you need stored in your bucket, send test requests with no sensitive data until new objects arrive under slab/ or safeguards-data/slab/. Then, wait 10 more minutes, because Anthropic’s servers don’t all pick up the change at once. Until that wait ends, send only test requests, because your Sealed Safety Data might go to Anthropic-managed storage. If another workspace already sends data to this bucket, new objects don’t show that this change took effect, so ask your Anthropic account team before you send real traffic. If no new objects have appeared under slab/ or safeguards-data/slab/ 4 hours after you make the change, contact your Anthropic account team.

The change doesn’t take effect right away. While you wait, the following are expected, even when setup succeeded:

  • The wait. When a new workspace, or one on Anthropic-managed storage, starts to use your bucket, the change usually takes effect within 10 minutes, but it can take longer.
  • No new objects. Until the change takes effect, your Sealed Safety Data from that workspace’s requests might go to Anthropic-managed storage, and new objects might not appear under slab/ or safeguards-data/slab/.
  • An Active status with no objects. Your bucket can show as Active in Storage destinations before the change takes effect, so Active doesn’t mean that objects are arriving.
  • Anthropic Human Review. If the change also turns off Anthropic Human Review, that can take up to 2 hours. Until then, Anthropic’s review team might still review the workspace’s data.

If you later move a workspace to a different bucket or off EFS, that move doesn’t take effect right away either. After a move between two Amazon S3 buckets in one save or request, new Sealed Safety Data can still go to your old bucket for a while. That move doesn’t by itself send new data to Anthropic-managed storage. Keep your old bucket, and Anthropic’s access to it, as Change or stop using your bucket describes.

Transcripts and Safety Cases in your bucket

To receive a workspace’s Transcripts and Safety Cases in your bucket, check that the bucket can receive them, then select it for the workspace. Transcripts and Safety Cases go to the same bucket, and you can’t choose one without the other.

Set up Enterprise Frontier Safeguards on Claude Platform on AWS has the steps for Safety Case and Transcript storage.

Set up Enterprise Frontier Safeguards on Claude Models on Google Cloud (Anthropic managed) has the steps for Safety Case and Transcript storage.

To find out whether a bucket can receive Transcripts and Safety Cases, look at the names of its roles:

  • Names that start with anthropic-efs-<RoleDigest>-: The bucket can receive Transcripts and Safety Cases.
  • Fixed names, such as anthropic-efs-ingest: The bucket can’t receive them. To receive them, change to a new bucket and select it under both storage settings.

If the bucket can receive them, open the workspace’s Data retention page. If it shows Safety Case and Transcript storage, select the same bucket under that setting and under Sealed Safety Data storage. If you select a different bucket, it might not receive Transcripts and Safety Cases, even if the save succeeds. When you save, Anthropic checks that the bucket is set up for Transcripts and Safety Cases. If Anthropic refuses the bucket, the whole save stops. To fix it, see Troubleshooting. If the page doesn’t show Safety Case and Transcript storage with the Enterprise Frontier Safeguards card selected, contact your Anthropic account team.

Each kind of file has its own prefix:

PrefixWhat’s thereWho writes it
transcripts/TranscriptsAnthropic
review-cases/, review-summaries/, and review-notices/Safety Case filesAnthropic
review-responses/Your team’s responsesYour team. No Anthropic role can write, change, or delete them.

The setup file’s lifecycle rules expire all of these files after the number of days set for each.

Give your team access to the bucket

To give your team access, add the following permissions to your own users’ IAM policies. Nothing that the setup file creates needs to change.

  • To read Transcripts and Safety Cases: allow s3:GetObject under transcripts/ and the review prefixes (review-cases/, review-responses/, review-summaries/, and review-notices/), s3:ListBucket on the bucket with an s3:prefix condition that limits it to those prefixes, and kms:Decrypt on the key. Don’t grant S3 access to any other prefix.
  • To read a file’s earlier versions: also allow s3:GetObjectVersion and s3:ListBucketVersions, with the same limits.
  • To write responses under review-responses/: also allow s3:PutObject on review-responses/* and kms:GenerateDataKey on the key. Write responses with the bucket’s default encryption, because Anthropic can’t read a response under another KMS key.

For the review process, see Review Safety Cases.

Troubleshooting

Template reference

Review the CloudFormation template or Terraform file that the Create in AWS step gives you before you run it. The file has each role’s full policy, with every action and condition.

To change when Safety Case files and your team’s responses expire, set ReviewExpiryDays (in Terraform, review_expiry_days), the one value that you can set yourself. It’s the number of days after which those files expire, up to 9,999. The default is 2,555, about 7 years. These rules apply, so read them before you change it:

  • A summary expires after 28 days if that’s sooner.
  • A file expires even if its review isn’t complete, so ask your Anthropic account team before you set a low number.
  • A new number also applies to the files already in your bucket, so a lower number can expire older files and remove earlier versions.
  • An expired, replaced, or deleted file stays as an earlier version for the same number of days again, or at most 3 days for a summary. To remove a file at once, delete all its versions.
  • With Terraform, pass review_expiry_days on every apply. An apply without it goes back to the default.

Next steps

Check your bucket’s status, fix a bucket that stops working, and change or stop using it.

Select your storage destination for a workspace, then check your setup.

Select your storage destination for a workspace, then check your setup.

Encrypt your data using a key you hold in your own key management service.

Set up customer-owned storage on Google Cloud Storage

A Google Cloud Storage bucket in your own cloud account keeps a workspace’s Sealed Safety Data. To set up the bucket, create it with Terraform and connect it in the Claude Console. Your team can’t read Sealed Safety Data. Before you start, read Use your Cloud Storage bucket in a workspace.

Setup has three parts:

  1. Check your Google Cloud organization policies.
  2. Create and test the bucket.
  3. Use your Cloud Storage bucket in a workspace.

Before you begin

Make sure that you have the following:

  • Access to Enterprise Frontier Safeguards. If your organization has it, the Programs page in the Claude Console shows it with a Configure button.
  • A way to connect your bucket. On Claude Platform, check that you can select Google Cloud Storage under Connect storage. Connect storage is on the Data retention page in the Claude Console, with Organization selected at the top. If you can’t select Google Cloud Storage, contact your Anthropic account team before you start part 1.
  • An Organization Admin in the Claude Console, who gets the setup file and connects your bucket. On Claude Models on Google Cloud (Anthropic managed), that’s someone with roles/claude.admin on the Google Cloud project whose organization will use this bucket.
  • A Google Cloud project where no automation removes custom roles, grants, or buckets.
  • Tools: Terraform 1.9 or later and the Google Cloud CLI.
  • Roles on the project: Project Owner or all of roles/storage.admin, roles/cloudkms.admin, roles/iam.roleAdmin, and roles/serviceusage.serviceUsageAdmin.
  • A role for policy changes: roles/orgpolicy.policyAdmin on the Google Cloud organization. Project Owner doesn’t include it.

1. Check your Google Cloud organization policies

In this step, you make sure that your Google Cloud organization’s policies let the setup file create its resources and give Anthropic access to your bucket.

Allow the accounts

To let the setup file grant access to Anthropic, allow the following accounts if domain-restricted sharing is on. It’s the default in Google Cloud organizations created on or after May 3, 2024, and it allows IAM grants only to your organization’s members. If you don’t allow the accounts, the apply stops with an error such as “One or more users named in the policy do not belong to a permitted customer.”

The last account is your project’s own Cloud Storage service agent, which uses the bucket’s key:

  • anthropic-efs-ingest@anthropic-storage-us.iam.gserviceaccount.com
  • anthropic-efs-read@anthropic-storage-us.iam.gserviceaccount.com
  • anthropic-efs-maintenance@anthropic-storage-us.iam.gserviceaccount.com
  • anthropic-efs-media-erasure@anthropic-storage-us.iam.gserviceaccount.com
  • anthropic-efs-verify@anthropic-storage-us.iam.gserviceaccount.com
  • anthropic-efs-transcripts@anthropic-storage-us.iam.gserviceaccount.com
  • anthropic-efs-review@anthropic-storage-us.iam.gserviceaccount.com
  • service-123456789012@gs-project-accounts.iam.gserviceaccount.com, with your project’s number

In a policy, write serviceAccount: before each address. Change each constraint that applies to this project:

  • constraints/iam.managed.allowedPolicyMembers lists single accounts. Add them all.
  • constraints/iam.allowedPolicyMemberDomains lists whole organizations only. Choose one of these options:
    • On this project, enforce constraints/iam.managed.allowedPolicyMembers with your own organization and these accounts, then override constraints/iam.allowedPolicyMemberDomains.
    • Take the constraint off this project, apply, and put it back (forcing account access). Repeat at any later apply that adds or replaces a grant.

Allow up to 15 minutes for a policy change to take effect.

Check your other policies

Check that your organization’s other policies give the setup what it needs:

PolicyWhat the setup needs
constraints/cloudkms.allowedProtectionLevelsAllows HSM
constraints/gcp.resourceLocationsAllows your bucket’s region
constraints/storage.softDeletePolicySecondsAllows 0
constraints/gcp.restrictCmekCryptoKeyProjectsAllows this project
constraints/storage.retentionPolicySecondsDoesn’t apply to this project
VPC Service Controls perimeterAn ingress rule admits Anthropic’s accounts, from any source, to storage.googleapis.com
IP filtering or an IAM deny policyDoesn’t reach Anthropic’s accounts

2. Create and test the bucket

In this step, you download a Terraform file from the Claude Console, apply it, and test the result. The file creates the bucket, an HSM Cloud KMS key that encrypts it, custom roles, and grants to Anthropic’s accounts. It also prepares the bucket to hold Transcripts and Safety Cases.

The bucket’s own lifecycle rules delete each object of Sealed Safety Data after it’s 28 days old and permanently remove it at least a day later.

  1. On the Data retention page in the Claude Console, select Organization at the top and click Connect storage. Make sure that you’re in the Anthropic organization whose workspaces will use this bucket.
    • On Claude Models on Google Cloud (Anthropic managed): The dialog doesn’t ask for a provider, and it fills in the number of the project whose organization will use this bucket. If it does otherwise, you’re in the wrong organization. Open the Claude Console from that project.
    • On Claude Platform: Select Google Cloud Storage.
    • If Connect storage is missing or unavailable, or Google Cloud Storage shows Not available yet, contact your Anthropic account team.
  2. Enter your project’s number, or check it if the dialog has filled it in. Then, enter a new bucket name that’s unlikely to be in use. Under Google Cloud region, keep us-east5 or select another region. After you click Continue, you can change these three values only by deleting the storage destination and connecting it again.
  3. Select Terraform, enter your project’s ID, and download customer-bucket-setup-gcs.tf to an empty folder.
  4. In that folder, run the following commands. The dialog shows the two terraform commands with your own values.
gcloud auth login
gcloud auth application-default login
gcloud services enable storage.googleapis.com --project acme-claude-storage
gcloud services enable cloudkms.googleapis.com --project acme-claude-storage
gcloud services enable iam.googleapis.com --project acme-claude-storage

terraform init
terraform apply \
  -var "project_id=acme-claude-storage" \
  -var "project_number=123456789012" \
  -var "organization_id=8a3f2c1e-5b7d-4e9a-a1c6-2f4e8d0b7c35" \
  -var "bucket_name=acme-claude-retention" \
  -var "region=us-east5"

On your first apply, at Enter a value:, answer yes only if the plan shows Plan: 42 to add, 0 to change, 0 to destroy. If it doesn’t, answer no, download the file again over the old one, and run both terraform commands again. If the plan still differs, contact your Anthropic account team.

Keep the whole folder and the apply command. The Claude Console doesn’t show the command again once the test passes.

After the apply, wait 10 minutes for the grants to take effect, then click Test setup and wait for Ready.

Leave what the file created as it is

If you change what the file created, you can lose data or end Anthropic’s access to your bucket.

In particular, don’t:

  • Add a lifecycle rule that deletes objects.
  • Turn off versioning.
  • Change or remove the file’s rules, roles, grants, or labels.
  • Turn on soft delete, a retention policy, object retention, a default hold, or Requester Pays.
  • Change the bucket’s default key.
  • Disable or destroy the key or its versions, or remove its grant to Cloud Storage. Objects would become unreadable.
  • Change, move, delete, or add objects in the folder named after your Anthropic organization ID. The exception is your team’s response files, which go under review-responses/ in that folder.
  • Remove prevent_destroy from the file.
  • Run terraform taint or terraform apply -replace=... on a grant.

Supported regions

You can use any region in the dialog’s Google Cloud region list. Anthropic recommends us-east5 because Anthropic reads and writes your bucket from us-east5. A bucket in another region can affect your network transfer costs. Your bucket’s region determines where your cloud provider stores the bucket’s objects. It doesn’t change where model inference runs or where Anthropic processes your data.

If an apply or Test setup fails

To fix a failure, find it in this table and do what it says. For any other failure, apply again from the same folder with the same values.

What you seeWhat to do
In a new project, Google Cloud refuses a grant or the bucket.Wait 10 minutes, then apply again.
Google Cloud refuses a grant to an Anthropic account or to Cloud Storage.Allow the accounts, then apply again.
An organization policy refuses the key or the bucket.Check your other policies, then apply again.
“Instance cannot be destroyed.” or “organization_id differs from the value that Terraform’s state keeps”Pass the first apply’s values. If its organization_id was wrong, change nothing and contact your Anthropic account team.
A grant “is tainted, so must be replaced.”Don’t apply the plan. If the grant is in Google Cloud, run terraform untaint with its address. If not, run terraform state rm with its address and apply again.
The bucket’s name is already taken.Delete the storage destination, then start again from Create and test the bucket with a new name and a new empty folder. The first apply’s key and roles stay in your project.
Test setup says that another organization has used this bucket.Delete the storage destination, then start again from Create and test the bucket with a new bucket name and a new empty folder. The first apply’s bucket, key, and roles stay where they are.

Update a bucket from an earlier setup file

If Test setup says that the bucket comes from an earlier setup template, update the bucket with the current file:

  1. Wherever you listed Anthropic’s accounts, add any that are new in Allow the accounts.
  2. Click Finish setup, enter your project’s ID, and download the file over the old one in your folder.
  3. Run terraform init, then your apply command with the same values. If the plan fails or would destroy or replace anything, answer no and contact your Anthropic account team.
  4. Wait 10 minutes, then click Test setup.

Delete a storage destination

To delete a storage destination that shows Needs setup or Ready, select Delete in its row menu under Storage destinations. The bucket and Anthropic’s grants stay in your project.

3. Use your Cloud Storage bucket in a workspace

Once your bucket passes its test, select it for each workspace that should use it. If your organization has a Legacy Zero Data Retention (ZDR) arrangement, select the Enterprise Frontier Safeguards card and your bucket as you create the workspace.

With EFS, Anthropic Human Review is always off, so reviewing Safety Cases is your own team’s job.

Before you select the bucket, check that you’re in the Anthropic organization whose workspaces will use it. Once you save or create a workspace with the bucket selected, you can’t delete the storage destination. After that, no other Anthropic organization can use the bucket for customer-owned storage.

Attaching a customer-managed key to the workspace is permanent. Use a different key from the bucket’s own key.

On the workspace’s Data retention page, select the Enterprise Frontier Safeguards card, then select your bucket under Sealed Safety Data storage. Under Safety Case and Transcript storage, you select the bucket for Transcripts and Safety Cases in a form that your team can read. If the page shows that setting, you can select the same bucket. Your save fails if you don’t select a bucket under that setting. If the page doesn’t show the setting, contact your Anthropic account team before you save. Then, save the workspace. If Anthropic refuses your bucket when you save, contact your Anthropic account team before you connect another bucket. For the full steps, see Set up Enterprise Frontier Safeguards on Claude Platform.For the full steps, see Set up Enterprise Frontier Safeguards on Claude Models on Google Cloud (Anthropic managed).

Saving turns Anthropic Human Review off, which can take up to 2 hours. To check that your save worked, make sure that Case review by reads My organization in the workspace’s side panel on the Workspaces page. If it doesn’t read My organization, open the workspace on the Data retention page and click Save again, even if you’ve changed nothing. If you can’t, or Case review by still doesn’t read My organization, contact your Anthropic account team before you send real traffic.

In your bucket, the files that Safety Case files describes go in the folder named after your Anthropic organization ID, such as <organization ID>/review-cases/<id>.json and <organization ID>/review-responses/<case_id>.json.

To review Safety Cases in your bucket, your team needs to list and read the files under transcripts/, review-cases/, review-summaries/, review-notices/, and review-responses/ in your organization’s folder. To respond, your team also needs to create files under review-responses/. The setup file doesn’t give your team this access, so grant it yourself in Google Cloud IAM. Limit read access to these folders, and limit create access to review-responses/.

Confirm that objects arrive

Before the workspace carries traffic that you need stored in your bucket, confirm that new objects arrive. Then, wait 10 more minutes, because Anthropic’s servers don’t all pick up the change at once. Until then, send only test requests, because the workspace’s Sealed Safety Data might go to Anthropic-managed storage. If another workspace already sends data to this bucket, new objects don’t show that this change took effect, so ask your Anthropic account team before you send real traffic.

Send test requests with no sensitive data to that workspace. Use a credential for that workspace. Then, list slab/ with your apply command’s bucket_name and organization_id:

gcloud storage ls gs://acme-claude-retention/8a3f2c1e-5b7d-4e9a-a1c6-2f4e8d0b7c35/safeguards-data/slab/

The Active status can show before objects arrive, so don’t rely on it. If the command still stops with “One or more URLs matched no objects.”, contact your Anthropic account team. Objects under slab/ show that Sealed Safety Data arrives. They don’t show that Transcripts or Safety Cases arrive.

If your bucket stops working

To avoid losing data, restore a bucket that stops working as soon as you can. If a write to your bucket fails, Anthropic retries it, then deletes the data about a day after the request. Nobody can recover that data, and it doesn’t go to Anthropic-managed storage.

To notice a failure, watch for new objects under slab/. Don’t rely on an email or on the bucket’s status to warn you. If you notice a failure, tell your Anthropic account team as soon as you can.

To restore your bucket, do what fits the change:

  • Grants or settings: Apply again with the same values. The plan should destroy nothing.
  • A deleted custom role: Run gcloud iam roles undelete within 7 days. An apply doesn’t restore it.
  • A disabled key version: Run gcloud kms keys versions enable, after restore if it’s scheduled for destruction.
  • Anything else: Contact your Anthropic account team.

Stop using your bucket

To stop using your bucket, follow these steps in order, or you can lose data. Follow them before you cancel your subscription or delete your project. Neither action takes a workspace off the bucket.

Before you change or remove a workspace’s bucket, respond to its open Safety Cases and wait until they close. If you change or remove the bucket first, Anthropic might not read your response file.

Keep the setup file with its state

Without the file, Terraform plans to destroy everything still in the state, and prevent_destroy no longer stops it.

  1. Take every workspace off the bucket. On each workspace’s Data retention page, select another bucket under Sealed Safety Data storage. Or, select the Anthropic managed card or, if listed, the Legacy ZDR card. Talk to your Anthropic account team before you select another bucket. If Safety Case and Transcript storage still shows this bucket, change that setting too. Then, save.
    • If you can’t select the Anthropic managed card, first change your organization’s policy for new workspaces.
    • Either card takes the workspace off EFS, and the Anthropic managed card can turn Anthropic Human Review back on. To use EFS again after Legacy ZDR, create a new workspace on the Enterprise Frontier Safeguards card.
  2. Send test requests with no sensitive data from each workspace and run the list command with --recursive --long until no new objects arrive. The Draining status can show early and has no end date, so don’t rely on it.
  3. Stop any pipeline from applying the file, because a terraform apply creates Anthropic’s grants again. Then, talk to your Anthropic account team and wait for their answer. Anthropic still needs its access after it stops writing, to read what’s stored and to delete what has expired. Once the team confirms that Anthropic has stopped using the bucket, remove only Anthropic’s grants with your last apply’s values:
terraform destroy \
  -target=google_storage_bucket_iam_member.object \
  -target=google_storage_bucket_iam_member.list \
  -target=google_storage_bucket_iam_member.bucket \
  -target=google_storage_bucket_iam_member.review_object \
  -target=google_storage_bucket_iam_member.review_bucket \
  -var "project_id=acme-claude-storage" \
  -var "project_number=123456789012" \
  -var "organization_id=8a3f2c1e-5b7d-4e9a-a1c6-2f4e8d0b7c35" \
  -var "bucket_name=acme-claude-retention" \
  -var "region=us-east5"

The plan must add and change nothing, and destroy only google_storage_bucket_iam_member resources. Disabling the key doesn’t end Anthropic’s access, because the accounts can still list and delete.

Was this page helpful?