Http 403 is an authorization problem: your requester must be authorized to call the Bedrock API.
As you don't use the Java SDK but work at REST level , the probable source of your problem is an incorrect SigV4 signature of your request.
SigV4 is detailled here: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
Getting the code to sign right is not easy: I'll suggest you to copy / paste such code from the AWS Java SDK with is OSS.
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- How do I troubleshoot HTTP 403 Forbidden errors when using a Lambda authorizer with an API Gateway REST API?AWS OFFICIALUpdated a year ago
- EXPERTpublished 2 months ago