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

With IAM Authentication not able to pass region #25

Open
megha4thcloud opened this issue Nov 8, 2022 · 1 comment
Open

With IAM Authentication not able to pass region #25

megha4thcloud opened this issue Nov 8, 2022 · 1 comment

Comments

@megha4thcloud
Copy link

I am not able to pass region for AWS IAM Authentication. Without that I am getting error
StatusCodeError: 400 - {"errors":["error making upstream request: received error code 403 from STS: <ErrorResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">\n \n Sender\n SignatureDoesNotMatch\n Credential should be scoped to a valid region. \n

Please tell me how to pass regoin: 'eu-central-1'

@megha4thcloud megha4thcloud changed the title With IAM Authentication not able pass region With IAM Authentication not able to pass region Nov 8, 2022
@giulianisanches
Copy link

I'm having this exactly same issue in my lambda. I don't think i have issues with the region where my code runs, as it's a lambda. So far i have:

  • Tried to update the STS endpoints to regional using AWS.config.update({stsRegionalEndpoints: "regional"})
  • Set the variable AWS_STS_REGIONAL_ENDPOINTS=regional

Without success.

The issue seems to happen in the VaultIAMAuth.js at the _authenticate method.

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