Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Error upload lambda function to AWS #94

Closed
tomshabtay opened this issue Dec 28, 2017 · 3 comments
Closed

Error upload lambda function to AWS #94

tomshabtay opened this issue Dec 28, 2017 · 3 comments

Comments

@tomshabtay
Copy link

Hello,

I was trying to write AWS Lambda function in Eclipse using this tutorial:
http://docs.aws.amazon.com/toolkit-for-eclipse/v1/user-guide/lambda-tutorial.html

When i tried to upload the function to aws, the dialog in eclipse showed me this error:

Failed to load iam role in US East (Virginia): com.amazonaws.services.identitymanagement.model.AmazonIdentityManagementException: Credential should be scoped to a valid region, not 'us-east-2'. (Service: AmazonIdentityManagement; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: e1a33c7c-ebd8-11e7-ab2c-af22232
c632aa4a6).

aws-error

Everything else is working great, i can see S3 buckets and EC2 machines.

Thanks,
Tom

@zhangzhx
Copy link
Contributor

Thanks for reporting this to us. I can reproduce this issue when choosing a region other than us-east-1. The reason is because IAM is using a global endpoint whose signing region is always us-east-1.

I will submit a fix in the next release.

@tomshabtay
Copy link
Author

Thank you for the quick response! looking forward for the fix.

@zhangzhx
Copy link
Contributor

zhangzhx commented Jan 5, 2018

This fix has been included in the release. Thanks for the request.

@zhangzhx zhangzhx closed this as completed Jan 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants