Skip to content

Add bedrock endpoints to gov cloud partition #1147

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jasonlatta
Copy link

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

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.

1 participant