I have written a Lambda function using athena-express that queries AWS Athena with S3 Parquet files as destination. Also using AWS Glue for ETL processes to S3. I am receiving: "Task timed out after 6.01 seconds". Increasing the timeout gives me the same message but with higher amount of timeout seconds. The strange thing is that it works locally, but not when it's deployed to AWS. Code should work. I think something is missing in AWS configurations.
I have followed the instructions and using lambda settings: https://www.npmjs.com/package/athena-express. I have added AmazonAthenaFullAccess and AmazonS3FullAccess policies to the Execution role for the Lambda function.