Athena to Timestream Connector problem

0

Hi

I have configured the Athena with a data source to query data from Timestream tables. It created the Lambda function as a connector. Athena Datasource Lambda as connector The Lambda function uses a role that has all the permissions. Permissions

But, eventually I am getting the following error when querying the timeseries db table from Athena. Athena query

GENERIC_USER_ERROR: Encountered an exception[java.lang.RuntimeException] from your LambdaFunction[arn:aws:lambda:eu-central-1:289301669695:function:timestream-catalog] executed in context[retrieving meta-data] with message[spill_bucket: "tspill" not found under your account. Please make sure you have access to the bucket and spill_bucket input has no trailing '/']

Appreciate if you can help please. It does not seem to access to the spill bucket (tspill) provided when the Lambda connector is configured. But it has all the permissions to access to S3 to create it. What am I missing?

Thanks CK

已提问 1 年前394 查看次数
1 回答
1

Hello, thank you for reaching out.

This error signifies that there is no bucket named “timestreamspill” under your account to be used as spill_bucket.

SpillBucket is an Amazon S3 bucket in your account to store data that exceeds Lambda function response size limits.

Note, that this bucket does not get created automatically when you use the default Lambda connector.

To solve the error, you will have to edit the Lambda function and add an existing bucket name in the parameter spill_bucket. You can do this in 2 ways:

  • Create a new S3 bucket [1] and then mention its name in spill_bucket parameter, or
  • Use an already existing bucket name in spill_bucket parameter.

Ref.: [1] https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html

The above information will provide you with details to triage the issue. However, please note this is general guidance only. In order to understand the issue fully, we require details that are non-public information. Please open a support case with AWS using the following link.

As always, Happy Cloud Computing.

AWS
支持工程师
AnushaG
已回答 1 年前
AWS
专家
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则