CDK constructs for Kinesis Delivery stream to consume from MSK topic

0

As of Sept, 2023 kinesis firehose supports creating delivery stream to consume MSK Topic data and store that into s3 with partitioning. https://aws.amazon.com/about-aws/whats-new/2023/09/amazon-msk-data-s3-kinesis-data-firehose/ Is there a way to configure this in CDK as well ? Looking for some examples. Thanks

질문됨 3달 전344회 조회
1개 답변
0

Create a MSK cluster using the MskConstruct:

const cluster = new Msk.Cluster(this, 'MyCluster', {
  // configuration 
});
Create a Firehose delivery stream using the FirehoseConstruct and specify the MSK cluster as the source:

const stream = new Firehose.CfnDeliveryStream(this, 'MyStream', {
  deliveryStreamType: 'KinesisStreamAsSource',
  kinesisStreamSourceConfiguration: {
    kinesisStreamArn: cluster.kinesisStreamArn,
    roleArn: // IAM role 
  }
});

Specify the S3 destination configuration for the stream.

Add appropriate IAM permissions and roles.

Deploy the CDK app.

profile picture
전문가
답변함 3달 전
  • There is no property in MSK cluster called :- cluster.kinesisStreamArn

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

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

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

관련 콘텐츠