ghdna / athena-express

Athena-Express can simplify executing SQL queries in Amazon Athena AND fetching cleaned-up JSON results in the same synchronous or asynchronous request - well suited for web applications.
https://www.npmjs.com/package/athena-express
MIT License
181 stars 70 forks source link

What IAM roles needed in lambda environment? #13

Closed Stdev17 closed 5 years ago

Stdev17 commented 5 years ago

First I've run the query in local with serverless-offline, It worked perfectly fine. However, It gives me an empty error after I deployed lambda function with no athena history left. I couldn't figure it out because the caught error is literally empty.

It seems to be an IAM issue, but I've add athena: and glue: to IAM role and still no progress. Maybe this is not an IAM issue. Are there any possibilities?

Stdev17 commented 5 years ago

I've just add s3:* and solved permission issue, but there maybe security vulnerabilities...