问题
I'm processing an XML file added to S3 and writing the results to a firehose, and storing the results on the same S3 bucket, but the destination filename has to be in a specific format. I've examing the documentation and I can't see any way to set the format of the filename. The closest I can find is in the firehose FAQ
Q: What is the naming pattern of the Amazon S3 objects delivered by Amazon Kinesis Data Firehose?
The Amazon S3 object name follows the pattern DeliveryStreamName-DeliveryStreamVersion-YYYY-MM-DD-HH-MM-SS-RandomString, where DeliveryStreamVersion begins with 1 and increases by 1 for every configuration change of the delivery stream. You can change delivery stream configurations (for example, the name of the S3 bucket, buffering hints, compression, and encryption) with the Firehose Console or the UpdateDestination operation.
回答1:
If you are using static naming, you can specify it through Firehose Console or the UpdateDestination operation.
But if you are looking for some dynamic naming, unfortunately, currently it is not possible. Refer to this question for detail answering - Storing Firehose transfered files in S3 under custom directory names
来源:https://stackoverflow.com/questions/49514613/how-can-i-set-the-destination-filename-for-aws-firehose-on-s3