Applies to:
Summary
AWS Bedrock AI secrets in Braintrust can be updated programmatically using the partially update AI secret endpoint. This enables credential rotation for temporary AWS credentials or updating permanent access keys without recreating the entire AI secret configuration.Resolution Steps
If updating temporary credentials
Step 1: Get the AI secret ID
List your AI secrets to find the Bedrock secret ID you want to update.Step 2: Update with new temporary credentials
Use the partially update endpoint to replace the temporary AWS credentials including the session token.If updating permanent credentials
Step 1: Update access keys only
Update permanent credentials by omitting theaws_session_token field.