amazon web services - Configuring AWS Kinesis Firehose to a specific S3 Folder - Stack Overflow

I am trying to configure AWS Firehose to write to a specific s3 directory. For this, in the prefix sect

I am trying to configure AWS Firehose to write to a specific s3 directory. For this, in the prefix section of Firehose console, I gave "Sample/". Attaching the screenshot.

Even after this, in the S3, its creating the folder structure S3bucket/Sample/YYYY/MM/dd/file.json.

Is there a way to omit the expressions (eg.YYYY/MM/dd) and let the firehose use only the prefix, like this => S3bucket/Sample/file.json?

I am trying to configure AWS Firehose to write to a specific s3 directory. For this, in the prefix section of Firehose console, I gave "Sample/". Attaching the screenshot.

Even after this, in the S3, its creating the folder structure S3bucket/Sample/YYYY/MM/dd/file.json.

Is there a way to omit the expressions (eg.YYYY/MM/dd) and let the firehose use only the prefix, like this => S3bucket/Sample/file.json?

Share Improve this question asked Nov 20, 2024 at 15:31 hari krishnanhari krishnan 133 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

One solution is to add lambda function that triggers on S3 events and changes the final file name. In your case removing the date and other stuff and final name like, file.json

You can avoid the default time partitions using the dynamic partitioning. That will override the default partitions.

Only caveat is that the dynamic partitioning should be enabled while creating the firehose stream.

You can refer the documentation on how to enable it. https://docs.aws.amazon/firehose/latest/dev/dynamic-partitioning-partitioning-keys.html

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742349000a4427128.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信