scenarios/features/firehose/SPECIFICATION.md
Create a robust, production-grade script demonstrating how to use Amazon Data Firehose to put individual records (PutRecord) and batches of records (PutRecordBatch) to a delivery stream.
To implement this specification, you will need to follow the setup steps outlined in the README.md.
delivery_stream_name, region, batch size, and logging configurations.The following two functions will be implemented by the script, in sequence. For example, when the script it run it will use the PutRecord API implementation to process a default of 100 records, then use the BatchPutRecord API implementation to process the remaining 5,450 records, for a grand total of 5,550 records processed.
First, the script will implement a function that puts a single record into the Firehose stream from the provided data file.
Next, the script will implement a function to put a batch of records into the Firehose stream.
IncomingBytes and IncomingRecords metrics to ensure there is incoming traffic.FailedPutCount for batch operations._