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 年前檢視次數 499 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南