AWS Builder Center
Claude Code and Cowork on Bedrock, Part 1: The AWS Foundation

Claude Code and Cowork on Bedrock, Part 1: The AWS Foundation

Part 1 of a four-part enterprise playbook for running Claude Code and Cowork on Bedrock. Set up a dedicated inference account, lock zero data retention with SCPs (including bedrock-mantle projects), grant access through IAM Identity Center, and choose models and geo inference profiles for data residency. Verified November 2026.

Series: Claude Code and Cowork on Bedrock (4 articles)

  1. 1
    Claude Code and Cowork on Bedrock, Part 1: The AWS Foundation This article
Senior Solutions Architect Startups - AWS

Claude Code and Cowork on Bedrock, Part 1: The AWS Foundation

Last verified November 11, 2026, against Claude Code v2.1.322, Claude Desktop v5.1231.0, and the current Amazon Bedrock documentation. Configuration keys in this space change monthly, so check the linked references before you deploy.
The series
  • Part 1: The AWS foundation. Accounts, data retention, identity, and models (you are here)
  • Part 2: Claude Code managed settings and hardening
  • Part 3: Claude Desktop and Cowork managed settings
  • Part 4: Cost, spend controls, and observability
Developers want Claude Code in their terminal. Knowledge workers want Claude Desktop and Cowork. Security wants every prompt to stay in your AWS account. Finance wants to know who spent what. IT wants one configuration they can push to every laptop and forget about.
This series shows how to meet all five needs with Amazon Bedrock as the inference provider. It's written for organizations with real compliance obligations: healthcare, financial services, and the public sector. Throughout, it calls out the settings that look right but silently do nothing.
Part 1 builds the AWS side that every later part depends on. You'll set up:
  • One dedicated Bedrock account that serves all Claude traffic
  • Zero data retention, locked by SCP at both the account and the project scope
  • Single sign-on through IAM Identity Center, so every request in CloudTrail and on your bill maps to a named person
  • A model and Region strategy that matches your data-residency requirements
Time: half a day, plus your change-management process for SCPs.



Architecture

AWS Organizations
├── Management account ── SCPs (lock data retention), billing, CUR 2.0 export
├── IAM Identity Center ── federated from Okta / Entra ID
└── Bedrock account (dedicated)
├── Claude model access + geo inference profiles (us./eu./jp./au./global. …)
├── Application inference profiles per team (cost tags) → Part 4
├── Invocation logging → CloudWatch Logs + S3 → Part 4
└── Permission set: ClaudeBedrockUser
▲
│ SSO (browser)
Developer laptop ┴────────────────────────────────────────
Claude Code (terminal) Claude Desktop / Cowork
com.anthropic.claudecode com.anthropic.claudefordesktop
+ /etc/aws/config + in-app AWS sign-in
└──────────── both pushed by Jamf / Intune / Kandji ────┘
Part 2 Part 3

Design principles

  • One account for all inference. This isolates cost cleanly and lets you set up logging and SCP guardrails once.
  • Identity, not keys. Users sign in through IAM Identity Center. There are no shared API keys.
  • Managed settings win. Users can't override configuration pushed by MDM.
  • Explicit model allowlists. Pinning models prevents surprise cost or behavior changes when a new model ships.
  • Plugins for customization. Skills, hooks, and MCP servers all ship as versioned, managed plugins.

Why a dedicated account?

  • Clean cost boundary. Every Bedrock charge in the account is Claude usage, so there's nothing to untangle from other workloads.
  • Guardrails in one place. You apply the data-retention SCP, invocation logging, quotas, and alarms once.
  • Smaller blast radius. The  ClaudeBedrockUser  permission set grants model invocation in an account that holds nothing else.
  • Independent quotas. Bedrock tokens-per-minute quotas apply per account and Region. A coding-assistant rollout won't throttle your production generative AI workloads, and they won't throttle it.

Before you start

Record these values. You'll need them for the AWS setup here and for the MDM profiles in Parts 2 and 3:
Value
Example
SSO start URL
 https://<your-subdomain>.awsapps.com/start 
SSO Region
 us-east-1 
Bedrock account ID
 111122223333 
Bedrock Region(s) you'll call from
 us-east-1  (plus each Region in your geo profile)
Permission set name
 ClaudeBedrockUser 
Plugin marketplace repo
 your-org/claude-plugins 



Step 1: Create the Bedrock account and enable Claude

  1. In AWS Organizations, create an account such as  ai-bedrock-prod  under an  AI-Services  OU.
  1. Submit the Anthropic use-case form once. In an Organization, call   PutUseCaseForModelAccess   from the management account. The approval extends to child accounts automatically, but only when you submit it through the API ( Simplified model access in Amazon Bedrock ).
  1. Have an admin invoke each model once. The first invocation subscribes the account through AWS Marketplace, and the caller needs  aws-marketplace:Subscribe  and  aws-marketplace:ViewSubscriptions  to do it. After that, roles in the account can invoke the model without Marketplace permissions, so end users never need them ( Request access to models ).



Step 2: Lock zero data retention

Bedrock controls retention with a mode, not an on/off switch ( Amazon Bedrock data retention ):
Mode
What it means
 none 
Zero data retention. Nothing is written to durable storage or shared with the model provider.
 default 
The model's own retention policy applies. AWS may retain data for abuse detection; the provider doesn't receive it.
 aws_review 
Inputs and outputs are retained (up to 30 days, inside the AWS boundary) so AWS can perform human review where a provider requires it.
 provider_data_share 
Legacy. Today it behaves like  aws_review . New configurations should use  aws_review .
 inherit 
No opinion at this scope; defer to the broader one. This is the default for new accounts and projects.
Three details matter for an enterprise rollout:
  • The setting is per Region. It doesn't propagate. A Region you never configure stays at  inherit  and falls back to each model's default. Set  none  in every Region you call from, and with cross-Region inference that includes the destination Regions.
  • There are two scopes. The account level (per Region) applies to both the  bedrock-runtime  and  bedrock-mantle  endpoints. Mantle also has projects, and a project setting overrides the account setting. The effective mode is the first non- inherit  value in project → account → model default.
  • At launch there's no console UI. Set and check retention with the API or the SDK, for example  put_account_data_retention(mode='none')  in boto3 (  PutAccountDataRetention  ).

Enforce it with an SCP

Apply this  service control policy  from the management account. It's the pattern from the  Bedrock data retention documentation : anyone may set the mode, but only to  none . It also covers mantle projects, which a policy on  PutAccountDataRetention  alone would miss.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "RequireZeroDataRetentionMantle",
"Effect": "Deny",
"Action": [
"bedrock-mantle:PutAccountDataRetention",
"bedrock-mantle:CreateProject",
"bedrock-mantle:UpdateProject"
],
"Resource": "*",
"Condition": {
"StringNotEquals": { "bedrock-mantle:DataRetentionMode": "none" }
}
},
{
"Sid": "RequireZeroDataRetentionControlPlane",
"Effect": "Deny",
"Action": "bedrock:PutAccountDataRetention",
"Resource": "*",
"Condition": {
"StringNotEquals": { "bedrock:DataRetentionMode": "none" }
}
}
]
}
If your policy accepts retention for abuse detection but not human review, use the documentation's alternative instead. It denies the same actions when the mode is  aws_review  or  provider_data_share  ( ForAnyValue:StringEquals ).
Covered models need a decision from legal first. Claude Fable 5, 5.1, and 5.2 require  aws_review  ( data retention ,  Introducing Claude Fable 5.2 on AWS ). Under  none  or  default ,  bedrock-runtime  rejects them with a  ValidationException , and mantle lists them as  unavailable . That's expected, not a bug. Anthropic also designates the Mythos-class models (such as Claude Mythos 5.2) as covered models that require retention. Check each model card for the mode it needs. Retained data stays inside the AWS boundary, in the Region that processed the request, and isn't shared with Anthropic. Some customers are eligible to use Fable 5.2 with zero data retention until Enterprise Frontier Safeguards is available; ask your AWS account team. Keep covered models out of your allowlists (Parts 2 and 3) until legal has reviewed the AWS data-retention documentation and Anthropic's  Data retention practices for Covered Models .



Step 3: IAM Identity Center permission set

Create a  permission set  named  ClaudeBedrockUser  with an 8–12 hour session, and assign it to the Bedrock account for your user groups.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "InvokeClaude",
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel",
"bedrock:InvokeModelWithResponseStream"
],
"Resource": [
"arn:aws:bedrock:*:*:inference-profile/us.anthropic.claude-*",
"arn:aws:bedrock:*:*:application-inference-profile/*",
"arn:aws:bedrock:*::foundation-model/anthropic.claude-*"
]
},
{
"Sid": "DiscoverProfiles",
"Effect": "Allow",
"Action": [
"bedrock:ListInferenceProfiles",
"bedrock:GetInferenceProfile"
],
"Resource": "*"
}
]
}
A few details are easy to get wrong:
  • The Converse API needs no separate action. Converse is authorized by  bedrock:InvokeModel , and ConverseStream by  bedrock:InvokeModelWithResponseStream . There is no  bedrock:Converse*  action ( Service Authorization Reference: Amazon Bedrock ).
  •  ListInferenceProfiles  doesn't support resource-level permissions. It needs  "Resource": "*" .
  • The policy scopes to one geography. If you use  global.  profiles, add  inference-profile/global.anthropic.claude-*  and allow the Region-less foundation-model ARN  arn:aws:bedrock:::foundation-model/anthropic.claude-* . The  global cross-Region inference  documentation shows the recommended three-statement policy, including the  aws:RequestedRegion: unspecified  condition.
  • To use another geography, swap the prefix. For example, use  eu.  for EU data residency.
  • The model allowlist belongs in the client settings, not here. This policy permits any Claude model. Parts 2 and 3 restrict which models users can pick. If you need a hard IAM boundary as well, for example to exclude covered models, list specific profile IDs here instead of  claude-* .

Shared AWS config file

Deploy this file to  /etc/aws/config  with MDM. The format is the standard  AWS CLI IAM Identity Center configuration :
[profile claude-code]
sso_session = corp
sso_account_id = 111122223333
sso_role_name = ClaudeBedrockUser
region = us-east-1

[sso-session corp]
sso_start_url = https://<your-subdomain>.awsapps.com/start
sso_region = us-east-1
sso_registration_scopes = sso:account:access
Why  /etc/aws/config  and not  ~/.aws/config ? The Claude Code permission rules in Part 2 deny Claude any access to  ~/.aws/** . A root-owned, read-only shared config file gives every user the SSO profile without exposing their credential cache, and users can't edit it. Claude Code points at it with  AWS_CONFIG_FILE . Claude Desktop doesn't use this file; it signs in to AWS in the app with the same start URL and role (Part 3).



Step 4: Choose models and Regions

Model
Geo profile ID (US)
Role
Claude Sonnet 5.5
 us.anthropic.claude-sonnet-5-5 
Default. Everyday coding and chat
Claude Opus 5.5
 us.anthropic.claude-opus-5-5 
Hard reasoning and architecture
Claude Haiku 5.5
 us.anthropic.claude-haiku-5-5 
Background and subagent work
See the model cards for  Sonnet 5.5 ,  Opus 5.5 , and  Haiku 5.5 .
Claude Code's built-in Bedrock default is Opus 5.5 ( Claude Code on Amazon Bedrock ). If you want Sonnet to be the cost-conscious default, set it explicitly, as the profiles in Parts 2 and 3 do. On Bedrock, Claude Code uses the 1M-token context window by default for Sonnet 5 and later, Opus 4.7 and later, and the Fable models.

Geography and data residency

Geo profiles keep processing inside a geography ( cross-Region inference ):
Prefix
Routes within
 us. 
United States commercial Regions
 eu. 
EU Regions
 jp. 
Japan
 au. 
Australia
 in. 
India
 ca. 
Canada (Haiku 5.5)
 us-gov. 
AWS GovCloud (US)
 global. 
Any commercial Region. Best throughput, no residency guarantee
 apac.  is a legacy prefix, so don't build new configurations on it. In-Region Claude is also available in some Regions, such as Seoul and Singapore.
Not every model exists in every geography. On November 10, 2026, for example, the  jp.  geography offered Opus 5.5 and Haiku 5.5 but not Sonnet 5.5. Before you finalize the allowlist, run  aws bedrock list-inference-profiles --type-equals SYSTEM_DEFINED  in each Region you plan to use.
Claude Code can switch geographies without pinning every model:   ANTHROPIC_BEDROCK_REGION_PREFIX   (v2.1.224 and later;  us ,  eu ,  apac ,  jp ,  au ,  global ) sets the prefix it tries first. It's ignored in GovCloud Regions.

Service tiers

Claude Code sends  ANTHROPIC_BEDROCK_SERVICE_TIER  ( default ,  flex , or  priority ) as the  X-Amzn-Bedrock-Service-Tier  header. Desktop's  inferenceBedrockServiceTier  accepts only  flex  or  priority ; leave it unset for on-demand. Tier availability varies by model and Region ( service tiers ).



Compliance notes for regulated industries

  • HIPAA. Amazon Bedrock is  HIPAA eligible , so Claude traffic is covered under your AWS Business Associate Addendum. Anthropic's own  HIPAA setup guide  covers Claude Enterprise and lists Bedrock as out of scope for that configuration; on Bedrock, the AWS BAA governs. Your own controls still apply. In particular, invocation logs (Part 4) and local transcripts (Parts 2 and 3) can contain PHI.
  • Data residency. Pick the narrowest geo prefix that meets your requirement, and avoid  global.  for regulated workloads. Remember that retained data for covered models is stored in the Region that processed the request.
  • Audit. With IAM Identity Center, every  InvokeModel  call in CloudTrail carries the user's identity, and IAM principal cost allocation (Part 4) puts the same identity on the bill.
  • No shared credentials. Users never hold long-lived keys. Sessions expire with the permission set's session duration, and Claude Code refreshes them through SSO (Part 2).

Verify the foundation

aws sts get-caller-identity --profile claude-code # SSO works, and the role is ClaudeBedrockUser
aws bedrock list-inference-profiles --type-equals SYSTEM_DEFINED \
--profile claude-code --query "inferenceProfileSummaries[?contains(inferenceProfileId,'claude')].inferenceProfileId"
Then confirm data retention in each Region you call from. It should return  none :
for r in us-east-1 us-east-2 us-west-2; do
python3 -c "import boto3; print('$r', boto3.client('bedrock', region_name='$r').get_account_data_retention()['mode'])"
done

What's next

Part 2 turns this foundation into a locked-down Claude Code deployment: the managed-settings plist, model allowlists that new releases can't slip through, the OS sandbox, plugins, and hooks.



References

Amazon Bedrock
AWS identity, governance, and compliance
Blogs and announcements
Anthropic
Opinions are my own. Configuration keys and model IDs change frequently; verify against the documentation above before deploying.

Series: Claude Code and Cowork on Bedrock (4 articles)

  1. 1
    Claude Code and Cowork on Bedrock, Part 1: The AWS Foundation This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article