---
title: "AWS Bedrock Claude Setup: Model Access, IAM, and Claude Code"
description: "How to set up AWS Bedrock Claude following AWS docs: enable model access, scope IAM permissions, pick a region, and wire up Claude Code with env vars and a self-check."
url: https://cdnping.org/en/blog/amazon-bedrock-claude-access-guide
language: en
published: 2026-11-11
category: "Relays & gateways"
tags: ["Amazon Bedrock","Claude","IAM","Claude Code","Enterprise compliance"]
source: cdnping.org
license: Free to quote and summarize with a link to the url above.
---
# AWS Bedrock Claude Setup: Model Access, IAM, and Claude Code

Using Claude through Amazon Bedrock comes down to four steps: prepare an AWS account and region, enable access to the Claude models in Bedrock, give the caller the right IAM permissions, and have the client (for example Claude Code) call the models with AWS credentials. It suits teams that already run on AWS and want to keep AWS billing, auditing, and permission management. It is a poor fit for an individual who just wants to try Claude quickly.

This article describes the general AWS Bedrock Claude workflow. Console menu names, available regions, model IDs, quotas, and prices all change, so treat the official AWS and Anthropic documentation as the source of truth. This article deliberately names no specific model versions or prices.

## Who should take the Bedrock route?

Bedrock is AWS's managed model service, and Claude is one of the models you can call through it. Calls are authorized through AWS Identity and Access Management (IAM), charges land on your AWS bill, and logs can flow into AWS tooling such as CloudTrail.

It fits best when:

- Your company already has AWS compliance processes, and procurement, auditing, and data residency requirements are built around AWS.
- You need IAM roles, SCPs (service control policies), and similar mechanisms to control who can call which models.
- You already run workloads on AWS and want model calls to live in the same account structure as your other services.

It fits poorly if you are an individual developer without an AWS account who wants a low-friction trial, or if you would rather not deal with IAM and region configuration. For that case, see [How to start using Claude: the web app, the official API, and third-party gateways](/en/blog/claude-for-beginners-ways-to-use).

## What do you need to do to enable model access?

1. **Choose a region.** Switch regions in the upper-right corner of the Bedrock console. Different regions offer different Claude models, so check the region and model support table in the official docs.
2. **Find the model access entry point.** In the Bedrock console, open the model catalog or the model access page and select Anthropic's Claude family. AWS has changed this flow over time: some models require an explicit request, while others may not need a separate one. Follow what your current console and the docs say.
3. **Fill in the requested information.** The first time you use an Anthropic model, you may be asked for your company name and use case and to accept the terms. Answer honestly.
4. **Confirm the status.** Once the page shows the model as accessible, move on to permissions. If approval takes a long time, ask through the support channels listed in the official docs.

If your enterprise account sits under AWS Organizations, model access may be restricted by organization policy, and an administrator will need to allow it.

## How do you configure IAM permissions?

Calling Claude requires, at minimum, permission for the relevant invoke actions. A common approach is to give a role or user a policy scoped to specific model resources. The example below is a sketch (verify the resource ARNs and action names against the official docs before substituting your own):

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "bedrock:InvokeModel",
        "bedrock:InvokeModelWithResponseStream",
        "bedrock:ListInferenceProfiles"
      ],
      "Resource": [
        "arn:aws:bedrock:*:*:inference-profile/*",
        "arn:aws:bedrock:*:*:foundation-model/*"
      ]
    }
  ]
}
```

A few notes:

- The wildcard scope in this example is broad and is for demonstration only. In production, narrow the regions and models to what you actually use.
- Some Claude models must be called through an "inference profile," which may route requests across regions. If you have data residency requirements, find out which regions the profile you use can route to.
- For individual use, prefer IAM roles or temporary SSO credentials, and avoid writing long-lived access keys into config files.

## How do you connect Claude Code to Bedrock?

Claude Code officially supports running on Bedrock, and the setup comes down to a few environment variables. Variable names are defined by the official Claude Code docs. A common set looks like this:

```bash
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=<the region where you enabled the model>
export AWS_PROFILE=<a configured profile>   # or use another AWS credential source
# Model: use an inference profile ID or model ID available in your account; follow the official docs
export ANTHROPIC_MODEL=<model or profile ID>
```

You can put these in your shell config, or in the env field of Claude Code's settings.json. For layers and precedence, see [Claude Code settings.json: layers, precedence, and env configuration](/en/blog/claude-code-settings-json-guide).

When you run through Bedrock, authentication is handled by AWS credentials, and no Anthropic account login is needed. If you previously signed in with another auth method, you may see a conflict warning; for how to handle it, see [Claude Code auth conflict warning and 401 errors: how to fix them](/en/blog/claude-code-auth-conflict-warning).

## How do you verify the setup?

Check in order, and stop at the first step that fails:

| Step | What to check | Typical symptom |
| --- | --- | --- |
| 1 | `aws sts get-caller-identity` returns an identity | Expired credentials or a misspelled profile name |
| 2 | Region matches the model access status | "Model unavailable" or "no access" messages |
| 3 | IAM policy includes the invoke actions and target resources | AccessDeniedException |
| 4 | Model ID or profile ID is correct | Model not found, parameter validation failure |
| 5 | Network can reach the Bedrock endpoint for that region | Timeouts, certificate or proxy errors |

If step 5 fails with connection problems, see [Claude Code connection timeouts and errors: a four-layer network checklist](/en/blog/claude-code-connection-troubleshooting) and [Claude Code proxy settings not taking effect: step-by-step checks](/en/blog/claude-code-https-proxy-not-working). To quickly see connection times from your browser to various vendors' APIs, use the [cdnping online speed test](/en); for probes of the official Anthropic API entry point, see [/en/status/anthropic](/en/status/anthropic). Note that these pages measure each vendor's own API entry point, not Bedrock endpoints.

## How does Bedrock compare with the other options?

| Option | Billing and account | Best for |
| --- | --- | --- |
| Bedrock | AWS bill, IAM permissions | Enterprises with an existing AWS compliance setup |
| Official Anthropic subscription or API | Official account; must be in a supported region | Individuals and teams that meet the official account requirements |
| Third-party gateway | The gateway's own account and billing | People who want to connect many tools through a custom endpoint URL |

AWS accounts also have their own signup and payment requirements, and both payment methods and Claude availability vary by region. Check AWS's official statements before you start.

## What are the alternatives if you have no AWS account?

If you only want Claude-class models in Claude Code and your company has no AWS footprint, you can look at the custom endpoint approach. AGI Plan is a multi-provider LLM aggregation gateway: monthly subscription, billed in RMB, no overseas credit card needed, and tools such as Claude Code and Codex only need one endpoint URL changed. AGI Plan is a commercial partner of cdnping. Note that AGI Plan is not an officially authorized channel, and some models are available only outside China; see the [models page](https://agiplan.dev/models) for specifics. For getting started, see the [AGI Plan beginner guide](https://agiplan.dev/startup), and for configuration details see [Custom API endpoints for Claude Code, Codex, and OpenCode](/en/blog/configure-custom-api-endpoint-claude-code-codex).

## Next steps

- Enterprise users: have your AWS administrator confirm Claude availability in your target region and any organization policies, then work through the table above item by item.
- Still deciding which route to take: first read [How developers in China can use Claude: comparing several compliant paths](/en/blog/how-to-use-claude-in-china-compliant-options), then decide whether you need Bedrock.
- For all product details, regions, and quotas, refer to the official AWS and Anthropic documentation.
