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

error: "credential should be scoped to correct service" #25

Open
dtenenba opened this issue May 13, 2018 · 1 comment
Open

error: "credential should be scoped to correct service" #25

dtenenba opened this issue May 13, 2018 · 1 comment
Assignees

Comments

@dtenenba
Copy link

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 ...
@cllunsford
Copy link
Owner

This is likely because the current version hardcodes "es" as the service when doing the signing. I just merged #20. Please try again with master passing -service batch to see if this resolves the issue. Thanks!

@cllunsford cllunsford self-assigned this Jun 12, 2018
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

2 participants