CDK - how to set OpenSearch/Elasticsearch as the destination of a Kinesis Firehose?

0

I am trying to create Data Stream -> Firehose -> OpenSearch infrastructure using the AWS CDK v2.

In my CDK Stack I have created an OpenSearch Domain, and am trying to create a Kinesis Firehose DeliveryStream with that domain as the destination. However, kinesisfirehose-destinations package seems to only have a ready-to-use construct for S3 buckets, so there is no obvious way to do this easily.

I have tried implementing my own IDestination, but I am at a complete loss since I have no idea how to implement bind.

So, my questions are:

  1. How are you supposed to implement bind in IDestination?
  2. Are there any complete working examples of creating a Firehose to OpenSearch using the non-alpha L1 constructs?
1回答
0

Hi, I would like to share my repository: https://github.com/aws-samples/aws-iot-greengrass-v2-using-aws-cdk. In here, I am passing data from Firehorse to ES using CDK ver1 with L1 Construct. https://github.com/aws-samples/aws-iot-greengrass-v2-using-aws-cdk/blob/main/infra/stack/data/data-pipeline-stack.ts

Because this code uses L1 construct(cdk v1) instead of alpha cdk v2, you can apply this code directly in your cdk ver2.

回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ