Skip to content

Generate short-lived AWS Bedrock API keys from your AWS credentials for bearer token authentication

License

Notifications You must be signed in to change notification settings

artyom/bedrock-api-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bedrock-api-key

Generate short-lived AWS Bedrock API keys that can be used as bearer tokens for authentication.

Overview

This tool creates presigned AWS Bedrock API tokens that are valid for 12 hours and can be used in place of direct AWS credential-based authentication.

Inspired by aws-bedrock-token-generator-python. See Bedrock documentation for more details.

Usage

Ensure your AWS credentials are configured (via environment variables, AWS credentials file, or IAM role). Then run:

bedrock-api-key

The token command outputs on stdout can be used as AWS_BEARER_TOKEN_BEDROCK environment variable value for Claude Code running on Amazon Bedrock.

About

Generate short-lived AWS Bedrock API keys from your AWS credentials for bearer token authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages