Last active
July 4, 2020 07:19
-
-
Save djm/1af7dec88fb24bd73188 to your computer and use it in GitHub Desktop.
Node Lambda Upload Error: "Cross-account pass role is not allowed"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reading zip file to memory | |
Uploading zip file to AWS Lambda eu-west-1 with parameters: | |
{ FunctionName: 'xxx-staging-1-0-0', | |
FunctionZip: <Buffer 50 478 0b 00 ...>, | |
Handler: 'index.handler', | |
Mode: 'event', | |
Role: 'arn:aws:iam::xxx:role/xxx', | |
Runtime: 'nodejs', | |
Description: 'Resizes images for the xxx project.', | |
MemorySize: '512', | |
Timeout: '60' } | |
{ [AccessDeniedException: Cross-account pass role is not allowed.] | |
message: 'Cross-account pass role is not allowed.', | |
code: 'AccessDeniedException', | |
time: Mon Jul 27 2015 12:10:03 GMT+0100 (BST), | |
statusCode: 403, | |
retryable: false, | |
retryDelay: 30 } |
The other handy thing here may be to set AWS_PROFILE
in your environment to the profile containing the right set of credentials.
Thanks for the hint, BTW, I wouldn't have found that without a lot more digging!
thanks!
Still helpful ๐
Thank you!!
great
I didn't have those variables, but by moving my profile variables to [default], I was able to work around the problem. +1
thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! ๐ Me too!