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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠