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:
- How are you supposed to implement
bind in IDestination?
- Are there any complete working examples of creating a Firehose to OpenSearch using the non-alpha L1 constructs?