How to Use Anthropic’s Claude Platform Directly from Your AWS Account
Claude Platform is now officially available on AWS, letting developers access Anthropic’s full native API and features through existing AWS accounts without separate credentials, and providing step‑by‑step guidance on authentication, workspace setup, API calls, monitoring, and cost management.
Claude Platform on AWS
Claude Platform is available on Amazon Web Services, allowing enterprise developers to use Anthropic’s native Claude Platform API and features with an existing AWS account, without separate account registration, credential management, contracts, or billing.
Key capabilities
The AWS‑hosted service provides the same API, console experience, and features as the Anthropic native platform, including Messages API, Claude‑hosted Agents (beta), Advisor tools (beta), web search and web scraping, MCP connector (beta), Agent Skills (beta), code execution, and file API (beta). The complete feature list is documented in the Claude Platform official documentation.
Authentication, billing, and auditing
Identity authentication : Use existing Amazon IAM credentials to access Claude Platform; no extra accounts or API keys are required.
Billing : Usage is billed through the AWS Marketplace on a pay‑as‑you‑go basis, enabling unified cost tracking and management.
Audit logs : All actions are recorded by Amazon CloudTrail, supporting standard monitoring, auditing, and investigation of AI calls.
Getting started
Step 1 – Create a workspace
Workspaces isolate projects, environments, or teams while keeping unified billing and management. Access to a workspace is controlled via IAM policies that reference the workspace ARN (see the IAM policy example).
Step 2 – Authenticate
Claude Platform on AWS supports two authentication methods: IAM‑based Signature V4 and API‑key authentication. Temporary IAM credentials provide higher security; API‑key authentication is convenient for quick trials. An API key can be generated directly in the Claude Platform console.
Step 3 – Make the first API call
Set the required environment variables:
# Your API key
export ANTHROPIC_API_KEY=<YOUR API KEY HERE>
# Regional endpoint for Claude Platform on AWS
export ANTHROPIC_BASE_URL=https://aws-external-anthropic.<YOUR REGION HERE>.api.aws
# Workspace ID (found in the console → Workspaces)
export ANTHROPIC_WORKSPACE_ID=<YOUR WORKSPACE ID HERE>Python example using the Anthropic SDK:
from anthropic import Anthropic
import os
client = Anthropic(
default_headers={"anthropic-workspace-id": os.environ["ANTHROPIC_WORKSPACE_ID"]},
)
message = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello!"}],
)
print(message)Additional notebooks with code examples are available in the GitHub repository: https://github.com/aws-samples/anthropic-on-aws/blob/main/claude-platform-on-aws/notebooks/
Monitoring, logging, and cost management
All calls made via the Anthropic SDK, Claude Code, or Claude Cowork are recorded by Amazon CloudTrail. Workspace‑related operations appear as management events; data‑event logging can be enabled to capture model‑inference calls. Since usage is billed through the AWS Marketplace, costs can be tracked in Amazon Cost Explorer and allocated with resource tags.
Regional availability
The service is available in the following AWS regions: US East (N. Virginia, Ohio), US West (Oregon), Canada (Central), South America (São Paulo), Europe (Dublin, London, Frankfurt, Milan, Zurich, Paris, Stockholm), and APAC (Tokyo, Seoul, Jakarta, Sydney, Melbourne).
References
Claude Platform official docs: https://platform.claude.com/docs/en/home
Account setup guide: https://docs.aws.amazon.com/claude-platform/latest/userguide/setup.html
IAM policy example: https://docs.aws.amazon.com/claude-platform/latest/userguide/iam-policies.html#_example_per_customer_workspace_isolation
Monitoring & logging documentation: https://docs.aws.amazon.com/claude-platform/latest/userguide/monitoring.html
Resource tags guide: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html
Anthropic client SDKs: https://platform.claude.com/docs/en/api/client-sdks#quick-installation
Sample notebooks: https://github.com/aws-samples/anthropic-on-aws/blob/main/claude-platform-on-aws/notebooks/
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Amazon Cloud Developers
Official technical community of Amazon Cloud. Shares practical AI/ML, big data, database, modern app development, IoT content, offers comprehensive learning resources, hosts regular developer events, and continuously empowers developers.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
