Skip to content

Commit b4226f2

Browse files
committed
Add bedrock Workaround comments.
1 parent 1e5235c commit b4226f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contract-tests/images/applications/botocore/botocore_server.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ def _handle_kinesis_request(self) -> None:
209209
set_main_status(404)
210210

211211
def _handle_bedrock_request(self) -> None:
212+
# Localstack does not support Bedrock related services.
213+
# we inject inject_200_success and inject_500_error directly into the API call
214+
# to make sure we receive http response with expected status code and attributes.
212215
bedrock_client: BaseClient = boto3.client("bedrock", endpoint_url=_AWS_SDK_ENDPOINT, region_name=_AWS_REGION)
213216
bedrock_agent_client: BaseClient = boto3.client(
214217
"bedrock-agent", endpoint_url=_AWS_SDK_ENDPOINT, region_name=_AWS_REGION

0 commit comments

Comments
 (0)