2 Answers
- Newest
- Most votes
- Most comments
0
Hello.
Could you please share the error details?
Also, after executing Lambda, it may be possible to check the API history using CloudTrail etc. to see which IAM policy is missing.
0
Hi, Ricardo
You can check the IAM permissions policies to allow Athena query. Can you check lambda attached roles with the below link? And check the Athena permission if Athena have a permission to write S3 bucket for query result.
https://docs.aws.amazon.com/athena/latest/ug/federated-query-iam-access.html
answered 6 months ago
Relevant content
- asked 5 years ago
- asked 4 months ago
- AWS OFFICIALUpdated 23 days ago
- AWS OFFICIALUpdated 2 months ago
Hi Riku thanks or answering I will eplore cloudtrail, lambda runs ok until the first get_query_execution, the log of athena shows this ; <Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>CX93CATQQ659FSGY</RequestId> <HostId>mslLmZ+dcYi1sP3hnCjKUZk/1wTmnyC5IjhcGFy8hJSr5PoVo3rGrNcwCXA3EfhzZkfCbxakhdA=</HostId> </Error>, the lambda even generates the ID for the job or query.