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

Credential should be scoped to a valid region #15

Open
benjamin-issa opened this issue Jun 6, 2019 · 2 comments
Open

Credential should be scoped to a valid region #15

benjamin-issa opened this issue Jun 6, 2019 · 2 comments

Comments

@benjamin-issa
Copy link

I always receive the following error:

{"message":"Credential should be scoped to a valid region, not 'eu-west-1'. "}

I've confirmed that my aws cli is configured correctly:

$ aws sts get-caller-identity --profile <profile name>
{
    "UserId": "",
    "Account": "",
    "Arn": "arn:aws:iam:::user/"
}
$ aws-es-curl --profile <profile name> -X GET https://<endpoint>.<region>.es.amazonaws.com
{"message":"Credential should be scoped to a valid region, not 'eu-west-1'. "}
$

Has anyone else seen this?

@anuras
Copy link

anuras commented Jul 10, 2019

Try running with --region your-region?

@walsw
Copy link

walsw commented Aug 24, 2020

Alternatively you can set the AWS_DEFAULT_REGION environment variable in your shell to the region you wish to use.

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

3 participants