Fix to explicitly specify the region when accessing DynamoDB resources. This ensures consistency with IAM role policies and eliminates AccessDeniedException.
raise error_class(parsed_response, operation_name)
botocore.errorfactory.ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the PutItem operation: Requested resource not found
----------------------------------------------------------------------
Ran 4 tests in 3.216s
FAILED (errors=4)
Issue
Fix to explicitly specify the region when accessing DynamoDB resources. This ensures consistency with IAM role policies and eliminates AccessDeniedException.
Description of changes:
just add
region_name
test result
The following commands must be executed as a prerequisite https://github.com/aws-samples/bedrock-claude-chat/blob/main/backend/README.md
test command
AsIs:
ToBe: