Unable to proxy reqeust to sagemaker inference endpoint
oesni opened this issue · 0 comments
oesni commented
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.