claude-platform-on-aws changedbuild-with-claude/claude-platform-on-aws
Nearest release: v2.1.304, published 6 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+7added
Lines−7removed
From line
207
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits48to this page, all time
The whole hunk
from line 207, old and new numbered
/
from line 207
207207
208208For workloads that need to hand a credential to a separate process (such as an LLM gateway, a serverless function, or a tool that supports bearer-token authentication but not SigV4), generate a short-term API key from your AWS credentials instead of provisioning a long-lived key in the AWS Console.
209209
210AWS publishes token-generator libraries for [JavaScript](https://github.com/aws/token-generator-for-aws-external-anthropic-js), [Python](https://github.com/aws/token-generator-for-aws-external-anthropic-python), and [Java](https://github.com/aws/token-generator-for-aws-external-anthropic-java). Each library reads your AWS credentials through the standard provider chain and returns a time-limited token that works with the `x-api-key` header. Token lifetime defaults to 12 hours and is capped at the lesser of your requested duration, your AWS credentials' expiry, and 12 hours. See the linked repository READMEs for installation and full configuration options.
210AWS publishes token-generator libraries for [JavaScript](https://github.com/aws/token-generator-for-aws-external-anthropic-js), [Python](https://github.com/aws/token-generator-for-aws-external-anthropic-python), and [Java](https://github.com/aws/token-generator-for-aws-external-anthropic-java). Each library reads your AWS credentials through the standard provider chain and returns a time-limited token that you send as `Authorization: Bearer <token>`. Token lifetime defaults to 12 hours and is capped at the lesser of your requested duration, your AWS credentials' expiry, and 12 hours. See the linked repository READMEs for installation and full configuration options.
211211
212212Pass the generated token to the SDK the same way you'd pass an AWS Console-generated API key:
213213
from line 405
405405
406406 ```bash CLI
407407 # Replace us-west-2 with your AWS region
408 # ant reads ANTHROPIC_API_KEY and sends it as x-api-key. Generate a key in the
409 # AWS Console (see API key authentication).
408 # ant reads ANTHROPIC_API_KEY. Generate a key in the AWS Console
409 # (see API key authentication).
410410 export ANTHROPIC_API_KEY="YOUR_AWS_API_KEY"
411411
412412 ant messages create \
from line 629
629629
630630 ```bash CLI
631631 # Replace us-west-2 with your AWS region
632 # ant reads ANTHROPIC_API_KEY and sends it as x-api-key. Generate a key in the
633 # AWS Console (see API key authentication).
632 # ant reads ANTHROPIC_API_KEY. Generate a key in the AWS Console
633 # (see API key authentication).
634634 export ANTHROPIC_API_KEY="YOUR_AWS_API_KEY"
635635
636636 ant messages create \
from line 903
903903
904904 ```bash CLI
905905 # Replace us-west-2 with your AWS region
906 # ant reads ANTHROPIC_API_KEY and sends it as x-api-key. Generate a key in the
907 # AWS Console (see API key authentication).
906 # ant reads ANTHROPIC_API_KEY. Generate a key in the AWS Console
907 # (see API key authentication).
908908 export ANTHROPIC_API_KEY="YOUR_AWS_API_KEY"
909909
910910 # --debug prints the HTTP response, including the X-Amzn-Requestid and
No line in this hunk matches that.