Timestream access from Appsync API using an HTTP resolver?

0

Is there a way to query Timestream from an Appsync API using an HTTP resolver? Is there any examples of setting that up using the cdk?

1 個回答
1

AWS AppSync supports AWS Lambda, Amazon DynamoDB, relational databases (Amazon Aurora Serverless), Amazon OpenSearch Service, and HTTP endpoints as data sources as mentioned in the documentation here:

[+] https://docs.aws.amazon.com/appsync/latest/devguide/tutorials.html

Unfortunately, it is not possible to use HTTP resolver to query Timestream, as at this point of time HTTP resolver supports public endpoints. Also, currently AWS Timestream is not supported as a native integration with AppSync. However, there is an existing feature request in the backlog to support the Timestream as a native Database:

[+] https://github.com/aws/aws-appsync-community/issues/136

While I am unable to comment on if/when this feature may get released, I request you to keep an eye on the Github issues page or our What's New and Blog pages for any new feature announcements.

As a workaround, you can use Lambda resolver to perform the query to the Timestream Database. A similar approach is described in this blog where you can use Amazon Timestream as a data source instead of Amazon ElastiCache and Amazon Neptune. You can find more details and sample code regarding Lambda's interaction with Timestream here.

AWS
Jyoti
已回答 1 年前

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

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

回答問題指南