Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specify the region when accessing AWS resources #304

Merged
merged 4 commits into from
May 13, 2024

Conversation

GitSumito
Copy link
Contributor

@GitSumito GitSumito commented May 13, 2024

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

python tests/test_repositories/test_conversation.py

AsIs:

    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)

ToBe:

Ran 4 tests in 30.375s

OK

@GitSumito GitSumito changed the title Issues/289 specify the region when accessing AWS resources May 13, 2024
@statefb
Copy link
Contributor

statefb commented May 13, 2024

LGTM, Thank you for your contribution!

@statefb statefb merged commit 0330b15 into aws-samples:main May 13, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants