- Newest
- Most votes
- Most comments
After paying for the support and waiting for a week, they gave me an answer. Turns out I had to change the trust policy to es.ap-southeast-3.amazonaws.com which was not in any documentation. I really hope they update this.
To resolve the "Authorization error during prediction" issue with the ml_full_access role in Amazon OpenSearch Service, there are several key steps to check:
- Verify Backend Role Mapping: Ensure that you've properly mapped the IAM role to the ml_full_access role in OpenSearch Dashboards:
- Navigate to OpenSearch Dashboards for your domain
- Go to Security > Roles > ml_full_access
- Select Mapped users > Manage mapping
- Under Backend roles, add the ARN of your role (opensearch-bedrock-connector-role)
- Confirm the role appears under Mapped users
-
Check Trust Relationships: The trust policy for opensearch-bedrock-role must allow es.amazonaws.com as a service principal to assume the role, which you've already configured correctly.
-
IAM Permissions: Ensure your opensearch-bedrock-connector-role has:
- iam:PassRole permissions for the opensearch-bedrock-role
- es:ESHttpPost permissions for your OpenSearch domain
- Role Chain Verification: When using multiple roles, ensure the chain of trust is properly established:
- Your user can assume opensearch-bedrock-connector-role
- opensearch-bedrock-connector-role can pass opensearch-bedrock-role
- opensearch-bedrock-role can be assumed by es.amazonaws.com
- Version Compatibility: Since you mentioned this worked previously but stopped after updating to the latest version, check if there are any version-specific requirements or changes in the latest OpenSearch version that might affect role permissions.
If all these configurations are correct, you might need to try creating a new role with a different name to rule out any potential issues with the existing role configuration.
Sources
Amazon OpenSearch Service ML connectors for AWS services - Amazon OpenSearch Service
Build multimodal search with Amazon OpenSearch Service | AWS Big Data Blog
Use DeepSeek with Amazon OpenSearch Service vector database and Amazon SageMaker | AWS Big Data Blog
Use DeepSeek with Amazon OpenSearch Service vector databases and Amazon SageMaker | AWS Big Data Blog
Relevant content
- asked 3 years ago

I'm guessing the P4 patch is messing with everything? the good patch was P2 or P3