Open bneigher opened 4 years ago
Hi there, thanks for raising this issue. Just to confirm, you're saying that from the lambda function, you can perform operations with aws.s3
but not with aws.lambda
? If so, I'm slightly puzzled as to what is going on.
I suspect the requirement for specifying the region comes about from aws.signature
not reading .aws/config
to get config settings, but I don't see why that would cause an auth issue if the region is otherwise specified.
Can you try running with options(verbose = TRUE)
, preferably before any aws.*
packages are loaded, so there are some messages on how/where its getting credentials from, please?
I'm using the aws.lambda package INSIDE an aws lambda (custom R runtime) and I'm seeming to have difficulties invoking a lambda getting: UnrecognizedClientException The security token included in the request is invalid
I believe it has something to do with aws.signature rather than aws.lambda since locate_credentials is happening here.
I can manually provide:
But I am getting the UnrecognizedClientException even though my role is allowed to Invoke my target lambda.
Session Info:
Note that communication to aws.s3 works great and so I know the correct roles are being assumed.
This works fine when running on my local machine which makes me think there is something wrong with how this package performs specifically when running on the aws lambda runtime environment