aws-signing-proxy
aws-signing-proxy copied to clipboard
error: "credential should be scoped to correct service"
After setting environment variables:
export AWS_ACCESS_KEY_ID=XXX
export AWS_SECRET_ACCESS_KEY=YYY
export AWS_REGION=us-west-2
export AWS_DEFAULT_REGION=us-west-2
and running the proxy:
aws-signing-proxy -target https://batch.us-west-2.amazonaws.com -port 8081
I hit it in another window and get the following error:
$ curl -X POST http://localhost:8081/v1/describecomputeenvironments
{"message":"Credential should be scoped to correct service: 'batch'. "}
I don't think credentials are the problem because in the first window, after setting environment variables, I can call the API directly:
$ aws batch describe-compute-environment
... successful output omitted ...
This is likely because the current version hardcodes "es" as the service when doing the signing. I just merged https://github.com/cllunsford/aws-signing-proxy/pull/20. Please try again with master passing -service batch
to see if this resolves the issue. Thanks!