You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created aws lambda handler using athena-express.
import{AthenaExpress}from'athena-express';import*asAWSfrom'aws-sdk';constATHENA_WORK_GROUP_NAME=process.env.ATHENA_WORK_GROUP_NAME||'';constGLUE_DATABASE_NAME=process.env.GLUE_DATABASE_NAME||'';constSOURCE_GLUE_TABLE=process.env.SOURCE_GLUE_TABLE||'';AWS.config.update({region: 'ap-northeast-1'});constathenaExpress=newAthenaExpress({aws: AWS,workgroup: ATHENA_WORK_GROUP_NAME,});exportconsthandler=async(): Promise<void>=>{const sqlQuery =`SELECT * FROM ${GLUE_DATABASE_NAME}.${SOURCE_GLUE_TABLE}`;constresults=awaitathenaExpress.query(sqlQuery);console.log(results);};
But, execution of this lambda ends with below error.
{"errorType": "Error","errorMessage": "InvalidRequestException: Bucket name should not contain uppercase characters","trace": ["Error: InvalidRequestException: Bucket name should not contain uppercase characters"," at AthenaExpress.query (/var/task/index.js:8023:17)"," at processTicksAndRejections (internal/process/task_queues.js:95:5)"," at async Runtime.handler (/var/task/index.js:8058:19)"]}
I created aws lambda handler using athena-express.
But, execution of this lambda ends with below error.
version info:
The text was updated successfully, but these errors were encountered: