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

AWS Location Service Endpoints Missing #247

Open
jdhollis opened this issue Nov 27, 2023 · 0 comments
Open

AWS Location Service Endpoints Missing #247

jdhollis opened this issue Nov 27, 2023 · 0 comments

Comments

@jdhollis
Copy link

Ran into an issue using AWS Location Service. It seems that is uses a slightly different endpoint setup than other services. It has sub-services that need to be prepended onto the base region endpoint: https://docs.aws.amazon.com/general/latest/gr/location.html

I looked at endpoints.json, and it doesn’t appear to include any detail for geo below the regional level. So I’m not sure there’s a good way for aws-api to fix this without introducing a special case.

I just wanted to note this here in case anyone else runs into the issue.

The simple fix is to override the endpoint depending on which sub-service you need:

(aws/client {:api :location
             :endpoint-override
             {:hostname "places.geo.us-east-2.amazonaws.com"}})

Dependencies

{:deps {com.cognitect.aws/api       {:mvn/version "0.8.686"}
        com.cognitect.aws/endpoints {:mvn/version "1.1.12.504"}
        com.cognitect.aws/location  {:mvn/version "848.2.1413.0"}
        ,,,}}
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

No branches or pull requests

1 participant