Run aws Athena query by Lambda: error name 'response' is not defined
I create an AWS lambda function with python 3.9 to run the Athena query and get the query result import time import boto3 # create Athena client client = boto3.client(‘athena’) # create Athena query varuable query = ‘select * from mydatabase.mytable limit 8’ DATABASE = ‘mydatabase’ output=’s3://mybucket/’ def lambda_handler(event, context): # Execution response = client.start_query_execution(… Read More Run aws Athena query by Lambda: error name 'response' is not defined