Skip to content

Conversation

jasonlatta
Copy link
Contributor

Discovered that bedrock service was not included in the aws-us-gov partition of endpoint.exs when we got the error bedrock-runtime not found in partition aws-us-gov.

To resolve, copied the bedrock service definitions from the AWS Standard partition, replacing the standard region endpoints with gov ones. Also copied over the fips version of endpoints from the gov cloud dynamodb service definition, updating hostname to match the services to avoid this issue in the future if someone tries to use fips versions of he bedrock services.

Steps taken to verify PR:

  • Tested usage of the bedrock-runtime in us-gov-west-1 through successful usage of the converse stream api. Operation:
%ExAws.Operation.JSON{
        data: body,
        headers: @json_request_headers,
        http_method: :post,
        path: "/model/#{model_id}/converse-stream",
        service: :"bedrock-runtime"
      }
  • Ran mix format
  • Ran mix dializer
Screenshot 2025-06-27 at 2 00 28 PM - Ran `mix test` Screenshot 2025-06-27 at 1 54 00 PM

@bernardd
Copy link
Contributor

Thanks @jasonlatta!

@bernardd bernardd merged commit ada48d0 into ex-aws:main Aug 11, 2025
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.

2 participants