最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论