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

Unable to proxy reqeust to sagemaker inference endpoint #226

Open
oesni opened this issue Aug 7, 2024 · 0 comments
Open

Unable to proxy reqeust to sagemaker inference endpoint #226

oesni opened this issue Aug 7, 2024 · 0 comments

Comments

@oesni
Copy link

oesni commented Aug 7, 2024

I have launch image with command

docker run --rm -ti \
  -v ~/.aws:/root/.aws \
  -p 8080:8080 \
  -e 'AWS_SDK_LOAD_CONFIG=true' \
  -e 'AWS_PROFILE=my-profile-name' \
  public.ecr.aws/aws-observability/aws-sigv4-proxy:1.9 -v --name sagemaker

and send request

curl --location 'http://localhost:8080/endpoints/<my-endpoint-name>/invocations' \
--header 'host: runtime.sagemaker.us-west-2.amazonaws.com' \
--header 'Content-Type: application/json' \
--data '{"my-json":"payload"}'

and got message from proxy

{
    "message": "Credential should be scoped to correct service: 'sagemaker'. "
}

How Can I proxy my request to sagemaker inference endpoint??

I've tried with options like --host runtime.sagemaker.us-west-2.amazonaws.com --sign-host sagemaker.us-west-2.amazonaws.com, but didn't work.

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