Thank you for the details. Since your AWS Bedrock key works directly but fails via OpenRouter with "Provider returned error" and "Operation not allowed," here’s what’s relevant from the documentation:
-
The minimum required configuration is:
{
"accessKeyId": "your-aws-access-key-id",
"secretAccessKey": "your-aws-secret-access-key",
"region": "your-aws-region"
}
The region should match your deployed model (you set us-east-1, which is correct for many Bedrock models).
-
The IAM policy must include:
bedrock:InvokeModel
bedrock:InvokeModelWithResponseStream
Example policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel",
"bedrock:InvokeModelWithResponseStream"
],
"Resource": "*"
}
]
}
Source: BYOK Setup Guide
Since your config and permissions are already correct and the key works outside OpenRouter, this could be an OpenRouter-side validation or integration issue. I recommend:
- Double-checking that the key and region are correctly entered in your OpenRouter Integrations.
- If everything is correct and the error persists, contact the OpenRouter support team for further investigation.
For account or billing issues, email [email protected]. If it is urgent, reach out to the mods in this Discord server.
Full setup details are in the BYOK Setup Guide.
-# This is an automated response powered by Answer HQ. Use !mute to stop the bot from responding.