Closed fuellbie closed 5 months ago
Hi Michael, thanks for opening an issue. I cannot replicate this on my side - the set up for the "create-alter-athena-view" Lambda function should grant the necessary permissions for it to interact with Athena and the AWS Glue Data Catalog (see CreateAlterAthenaViewFunction starting l. 270 in template.yaml)
Hello, thank you for the quick response! Yes, I can confirm that the error appears for the CREATE DATABASE IF NOT EXISTS carbon_emissions I also can confirm that the permissions are set:
Could it be that the boto3 call start_query_execution takes some default values which may not work in our environment? Since the error mentions lake formation, could it be that something the API call tries to interact with is connected with lake formation? I am not very familiar with the whole Athena/Glue/Lake Formation environment.
Also, what catalog is used by default in this boto3 call?
Error was due to specific lakeformation setup of account. Solved by adding the IAM role used by the "create-alter-athena-view" lambda function to the Database creators in the "Administrative roles and tasks" in Lake Formation. The Athena table was successfully created then.
Hello,
the step function runs successfully. I also don't see any errors in the Lambda execution (since error handling is missing I guess?). However, no Athena Database has been created. In Athena, I see the error under "Recent queries":
Not sure how to fix this. Can anyone help here?