2024 Amazon Web Services re:Invent opens on Dec 2 (PST), reserve now to follow frontier technology trends
General
Q: What is Amazon Data Firehose?
Amazon Data Firehose is the easiest way to load streaming data into data stores and analytics tools. It can capture, transform, and load streaming data into Amazon S3, Amazon Redshift, Amazon OpenSearch Service, and Splunk enabling near real-time analytics with existing business intelligence tools and dashboards you’re already using today. It is a fully managed service that automatically scales to match the throughput of your data and requires no ongoing administration. It can also batch, compress, and encrypt the data before loading it, minimizing the amount of storage used at the destination and increasing security.
Q: What does Amazon Data Firehose manage on my behalf?
Amazon Data Firehose manages all underlying infrastructure, storage, networking, and configuration needed to capture and load your data into Amazon S3, Amazon Redshift, or Amazon OpenSearch Service. You do not have to worry about provisioning, deployment, ongoing maintenance of the hardware, software, or write any other application to manage this process. Firehose also scales elastically without requiring any intervention or associated developer overhead. Moreover, Amazon Data Firehose synchronously replicates data across three facilities in an Amazon Web Services Region, providing high availability and durability for the data as it is transported to the destinations.
Q: How do I use Amazon Data Firehose?
After you sign up for Amazon Web Services, you can start using Amazon Data Firehose with the following steps:
- Create an Amazon Data Firehose stream through the Firehose Console or the CreateDeliveryStream operation. You can optionally configure an Amazon Lambda function in your Firehose stream to prepare and transform the raw data before loading the data.
- Configure your data producers to continuously send data to your Firehose stream using the Amazon Kinesis Agent or the Firehose API.
- Firehose automatically and continuously loads your data to the destinations you specify.
Q: What is a source?
A source is where your streaming data is continuously generated and captured. For example, a source can be a logging server running on Amazon EC2 instances, an application running on mobile devices, a sensor on an IoT device, or a Kinesis stream.
Q: What are the limits of Amazon Data Firehose?
For information about limits, see Amazon Data Firehose Limits in the developer guide.
Key concepts
Q: What is a Firehose stream?
A Firehose stream is the underlying entity of Amazon Data Firehose. You use Firehose by creating a Firehose stream and then sending data to it.
Q: What is a record?
A record is the data of interest your data producer sends to a Firehose stream. The maximum size of a record (before Base64-encoding) is 1024 KB.
Q: What is a destination?
A destination is the data store where your data will be delivered. Amazon Data Firehose currently supports Amazon S3, Amazon Redshift, and Amazon OpenSearch Service as destinations.
Creating Firehose streams
Q: How do I create a Firehose stream?
You can create an Amazon Data Firehose stream through the Firehose Console or the CreateDeliveryStream operation. For more information, see Creating a Firehose Stream.
Q: What compression format can I use?
Amazon Data Firehose allows you to compress your data before delivering it to Amazon S3. The service currently supports GZIP, ZIP, and SNAPPY compression formats. Only GZIP is supported if the data is further loaded to Amazon Redshift.
Q: How does compression work when I use the CloudWatch Logs subscription feature?
You can use CloudWatch Logs subscription feature to stream data from CloudWatch Logs to Firehose. All log events from CloudWatch Logs are already compressed in gzip format, so you should keep Firehose’s compression configuration as uncompressed to avoid double-compression.
Q: What kind of encryption can I use?
Amazon Data Firehose allows you to encrypt your data after it’s delivered to your Amazon S3 bucket. While creating your Firehose stream, you can choose to encrypt your data with an Amazon Key Management Service (KMS) key that you own. For more information about KMS, see Amazon Key Management Service.
Q: What is data transformation with Lambda?
Firehose can invoke an Amazon Lambda function to transform incoming data before delivering it to destinations. You can configure a new Lambda function using one of the Lambda blueprints we provide or choose an existing Lambda function.
Q: What is source record backup?
If you use data transformation with Lambda, you can enable source record backup, and Amazon Data Firehose will deliver the un-transformed incoming data to a separate S3 bucket. You can specify an extra prefix to be added in front of the “YYYY/MM/DD/HH” UTC time prefix generated by Firehose.
Q: What is error logging?
If you enable data transformation with Lambda, Firehose can log any Lambda invocation and data delivery errors to Amazon CloudWatch Logs so that you can view the specific error logs if Lambda invocation or data delivery fails. For more information, see Monitoring with Amazon CloudWatch Logs.
Q: What is buffer size and buffer interval?
Amazon Data Firehose buffers incoming streaming data to a certain size or for a certain period of time before delivering it to destinations. You can configure buffer size and buffer interval while creating your Firehose stream. Buffer size is in MBs and ranges from 1MB to 128MB for Amazon S3 destination and 1MB to 100MB for Amazon OpenSearch Service destination. Buffer interval is in seconds and ranges from 60 seconds to 900 seconds. Please note that in circumstances where data delivery to destination is falling behind data writing to Firehose stream, Firehose raises buffer size dynamically to catch up and make sure that all data is delivered to the destination.
Q: How is buffer size applied if I choose to compress my data?
Buffer size is applied before compression. As a result, if you choose to compress your data, the size of the objects within your Amazon S3 bucket can be smaller than the buffer size you specify.
Q: What is the IAM role that I need to specify while creating a Firehose stream?
Amazon Data Firehose assumes the IAM role you specify to access resources such as your Amazon S3 bucket and Amazon OpenSearch Service domain. For more information, see Controlling Access with Amazon Data Firehose in the Amazon Data Firehose developer guide.
Q: What privilege is required for the Amazon Redshift user that I need to specify while creating a Firehose stream?
The Amazon Redshift user needs to have Redshift INSERT privilege for copying data from your Amazon S3 bucket to your Redshift cluster.
Q: What do I need to do if my Amazon Redshift cluster is within a VPC?
If your Amazon Redshift cluster is within a VPC, you need to grant Amazon Data Firehose access to your Redshift cluster by unblocking Firehose IP addresses from your VPC. For information about how to unblock IPs to your VPC, see Grant Firehose Access to an Amazon Redshift Destination in the Amazon Data Firehose developer guide.
Q: Why do I need to provide an Amazon S3 bucket while choosing Amazon Redshift as destination?
For Amazon Redshift destination, Amazon Data Firehose delivers data to your Amazon S3 bucket first and then issues Redshift COPY command to load data from your S3 bucket to your Redshift cluster.
Q: What is index rotation for Amazon OpenSearch Service destination?
Amazon Data Firehose can rotate your Amazon OpenSearch Service index based on a time duration. You can configure this time duration while creating your Firehose stream. For more information, see Index Rotation for the Amazon OpenSearch Service Destination in the Amazon Data Firehose developer guide.
Q: Why do I need to provide an Amazon S3 bucket when choosing Amazon OpenSearch Service as destination?
When loading data into Amazon OpenSearch Service, Amazon Data Firehose can back up all of the data or only the data that failed to deliver. To take advantage of this feature and prevent any data loss, you need to provide a backup Amazon S3 bucket.
Q: Can I change the configurations of my Firehose stream after it’s created?
You can change the configuration of your Firehose stream at any time after it’s created. You can do so by using the Firehose Console or the UpdateDestination operation. Your Firehose stream remains in ACTIVE state while your configurations are updated and you can continue to send data to your Firehose stream. The updated configurations normally take effect within a few minutes.
When delivering to a VPC destination, you can change the destination endpoint URL, as long as new destination is accessible within the same VPC, subnets and security groups. For changes of VPC, subnets and security groups, you need to re-create the Firehose stream.
Q: Can I use a Firehose stream in one account to deliver my data into an Amazon OpenSearch Service domain VPC destination in a different account?
No, your Firehose stream and destination Amazon OpenSearch Service domain need to be in the same account.
Q: Can I use a Firehose stream in one region to deliver my data into an Amazon OpenSearch Service domain VPC destination in a different region?
No, your Firehose stream and destination Amazon OpenSearch Service domain need to be in the same region.
Preparing and transforming data
Q: How do I prepare and transform raw data in Amazon Data Firehose?
Amazon Data Firehose allows you to use an Amazon Lambda function to prepare and transform incoming raw data in your Firehose stream before loading it to destinations. You can configure an Amazon Lambda function for data transformation when you create a new Firehose stream or when you edit an existing Firehose stream.
Q: How do I return prepared and transformed data from my Amazon Lambda function back to Amazon Data Firehose?
All transformed records from Lambda must be returned to Firehose with the following three parameters; otherwise, Firehose will reject the records and treat them as data transformation failure.
- recordId: Firehose passes a recordId along with each record to Lambda during the invocation. Each transformed record should be returned with the exact same recordId. Any mismatch between the original recordId and returned recordId will be treated as data transformation failure.
- result: The status of transformation result of each record. The following values are allowed for this parameter: “Ok” if the record is transformed successfully as expected. “Dropped” if your processing logic intentionally drops the record as expected. “ProcessingFailed” if the record is not able to be transformed as expected. Firehose treats returned records with “Ok” and “Dropped” statuses as successfully processed records, and the ones with “ProcessingFailed” status as unsuccessfully processed records when it generates SucceedProcessing.Records and SucceedProcessing.Bytes metrics.
- data: The transformed data payload after based64 encoding.
Q: What Lambda blueprints are available for data preparation and transformation?
Firehose provides the following Lambda blueprints that you can use to create your Lambda function for data transformation:
- General Firehose Processing: This blueprint contains the data transformation and status model described above. Use this blueprint for any custom transformation logic.
- Apache Log to JSON: This blueprint parses and converts Apache log lines into JSON objects, with predefined JSON field names.
- Apache Log to CSV: This blueprint parses and converts Apache log lines into CSV format.
- Syslog to JSON: This blueprint parses and converts Syslog lines into JSON objects, with predefined JSON field names.
- Syslog to CSV: This blueprint parses and converts Syslog lines into CSV format.
Q: Can I keep a copy of all the raw data in my S3 bucket?
Yes, Firehose can back up all un-transformed records to your S3 bucket concurrently while delivering transformed records to destination. Source record backup can be enabled when you create or update your Firehose stream.
Adding data to Firehose streams
Q: How do I add data to my Amazon Data Firehose stream?
You can add data to an Amazon Data Firehose stream through Amazon Kinesis Agent or the Firehose PutRecord and PutRecordBatch operations. Firehose is also integrated with other Amazon Web Services data sources such as Amazon Kinesis Data Streams, Amazon IoT, Amazon CloudWatch Logs, and Amazon CloudWatch Events.
Q: What is Amazon Kinesis Agent?
Amazon Kinesis Agent is a pre-built Java application that offers an easy way to collect and send data to your Firehose stream. You can install the agent on Linux-based server environments such as web servers, log servers, and database servers. The agent monitors certain files and continuously sends data to your Firehose stream. For more information, see Writing with Agents.
Q: What platforms does Amazon Kinesis Agent support?
Amazon Kinesis Agent currently supports Amazon Linux and Red Hat Enterprise Linux.
Q: Where do I get Amazon Kinesis Agent?
You can download and install Amazon Kinesis Agent using the following command and link:
- On Amazon Linux: sudo yum install –y aws-kinesis-agent
- On Red Hat Enterprise Linux: sudo yum install –y https://s3.amazonaws.com/streaming-data-agent/aws-kinesis-agent-latest.amzn1.noarch.rpm
- From GitHub: awlabs/amazon-kinesis-agent
After installing Amazon Kinesis Agent on your servers, you can configure it to monitor certain files on the disk and then continuously send new data to your Firehose stream. For more information, see Writing with Agents.
Q: What is the difference between PutRecord and PutRecordBatch operations?
PutRecord operation allows a single data record within an API call and PutRecordBatch operation allows multiple data records within an API call. For more information, see PutRecord and PutRecordBatch.
Q: What programming languages or platforms can I use to access Amazon Data Firehose API?
Amazon Data Firehose API is available in Amazon Web Services SDKs. For a list of programming languages or platforms for Amazon Web Services SDKs, see Tools for Amazon Web Services.
Q: How do I add data to my Firehose stream from my Kinesis stream?
When you create or update your Firehose stream through Amazon Web Services console or Firehose APIs, you can configure a Kinesis stream as the source of your Firehose stream. Once configured, Firehose will automatically read data from your Kinesis stream and load the data to specified destinations.
Q: How often does Firehose read data from my Kinesis stream?
Firehose calls Kinesis Data Streams GetRecords() once every second for each Kinesis shard.
Q: From where does Firehose read data when my Kinesis stream is configured as the source of my Firehose stream?
Firehose starts reading data from the LATEST position of your Kinesis data stream when it is configured as the source of a Firehose stream. For more information about Kinesis data stream position, see GetShardIterator in the Kinesis Data Streams Service API Reference.
Q: Can I configure my Kinesis data stream to be the source of multiple Firehose streams?
Yes, you can. However, note that the GetRecords() call from Firehose is counted against the overall throttling limit of your Kinesis shard so that you need to plan your Firehose stream along with your other Kinesis Applications to make sure you won’t get throttled. For more information, see Kinesis Data Streams Limits in the Kinesis Data Streams developer guide.
Q: Can I still add data to Firehose stream through Kinesis Agent or Firehose’s PutRecord and PutRecordBatch operations when my Kinesis data stream is configured as source?
No, you cannot. When a Kinesis data stream is configured as the source of a Firehose stream, the Firehose PutRecord and PutRecordBatch operations will be disabled. You should add data to your Kinesis data stream through the Kinesis Data Streams PutRecord and PutRecords operations instead.
Q: How do I add data to my Firehose stream from Amazon IoT?
You add data to your Firehose stream from Amazon IoT by creating an Amazon IoT action that sends events to your Firehose stream. For more information. See Writing to Amazon Data Firehose Using Amazon IoT in the Firehose developer guide.
Q: How do I add data to my Firehose stream from CloudWatch Logs?
You add data to your Firehose stream from CloudWatch Logs by creating a CloudWatch Logs subscription filter that sends events to your Firehose stream. For more information, see Using CloudWatch Logs Subscription Filters in the Amazon CloudWatch user guide.
Q: How do I add data to my Amazon Data Firehose stream from CloudWatch Events?
You add data to your Firehose stream from CloudWatch Events by creating a CloudWatch Events rule with your Firehose stream as target. For more information, see Writing to Amazon Data Firehose Using CloudWatch Events in the Firehose developer guide.
Data delivery
Q: How often does Amazon Data Firehose deliver data to my Amazon S3 bucket?
The frequency of data delivery to Amazon S3 is determined by the S3 buffer size and buffer interval value you configured for your Firehose stream. Amazon Data Firehose buffers incoming data before delivering it to Amazon S3. You can configure the values for S3 buffer size (1 MB to 128 MB) or buffer interval (60 to 900 seconds), and the condition satisfied first triggers data delivery to Amazon S3. Note that in circumstances where data delivery to the destination is falling behind data ingestion into the Firehose stream, Amazon Data Firehose raises the buffer size automatically to catch up and make sure that all data is delivered to the destination.
Q: How often does Amazon Data Firehose deliver data to my Amazon Redshift cluster?
For Amazon Redshift destination, Amazon Data Firehose delivers data to your Amazon S3 bucket first and then issues Redshift COPY command to load data from your S3 bucket to your Redshift cluster. The frequency of data COPY operations from Amazon S3 to Amazon Redshift is determined by how fast your Redshift cluster can finish the COPY command. If there is still data to copy, Firehose issues a new COPY command as soon as the previous COPY command is successfully finished by your Redshift cluster.
Q: How often does Amazon Data Firehose deliver data to my Amazon OpenSearch Service domain?
The frequency of data delivery to Amazon OpenSearch Service is determined by the OpenSearch buffer size and buffer interval values that you configured for your Firehose stream. Firehose buffers incoming data before delivering it to Amazon OpenSearch Service. You can configure the values for OpenSearch buffer size (1 MB to 100 MB) or buffer interval (60 to 900 seconds), and the condition satisfied first triggers data delivery to Amazon OpenSearch Service. Note that in circumstances where data delivery to the destination is falling behind data ingestion into the Firehose stream, Amazon Data Firehose raises the buffer size automatically to catch up and make sure that all data is delivered to the destination.
Q: How is data organized in my Amazon S3 bucket?
Amazon Data Firehose adds a UTC time prefix in the format YYYY/MM/DD/HH before putting objects to Amazon S3. The prefix translates into an Amazon S3 folder structure, where each label separated by a forward slash (/) becomes a sub-folder. You can modify this folder structure by adding your own top-level folder with a forward slash (for example, myApp/YYYY/MM/DD/HH) or prepending text to the YYYY top-level folder name (for example, myApp YYYY/MM/DD/HH). This is accomplished by specifying an S3 Prefix when creating your Firehose stream.
Q: What is the naming pattern of the Amazon S3 objects delivered by Amazon Data Firehose?
The Amazon S3 object name follows the pattern FirehoseStreamName-FirehoseStreamVersion-YYYY-MM-DD-HH-MM-SS-RandomString, where FirehoseStreamVersion begins with 1 and increases by 1 for every configuration change of the Firehose stream. You can change Firehose stream configurations (for example, the name of the S3 bucket, buffering hints, compression, and encryption) with the Firehose Console or the UpdateDestination operation.
Q: What is the manifests folder in my Amazon S3 bucket?
For Amazon Redshift destination, Amazon Data Firehose generates manifest files to load Amazon S3 objects to Redshift cluster in batch. The manifests folder stores the manifest files generated by Firehose.
Q: How do backed up OpenSearch documents look like in my Amazon S3 bucket?
If “all documents” mode is used, Amazon Data Firehose concatenates multiple incoming records based on buffering configuration of your Firehose stream, and then delivers them to your S3 bucket as an S3 object. Regardless of which backup mode is configured, the failed documents are delivered to your S3 bucket using a certain JSON format that provides additional information such as error code and time of delivery attempt. For more information, see Amazon S3 Backup for the Amazon OpenSearch Service Destination in the Amazon Data Firehose developer guide.
Q: Can a single Firehose stream deliver data to multiple Amazon S3 buckets?
A single Firehose stream can only deliver data to one Amazon S3 bucket currently. If you want to have data delivered to multiple S3 buckets, you can create multiple Firehose streams.
Q: Can a single Firehose stream deliver data to multiple Amazon Redshift clusters or tables?
A single Firehose stream can only deliver data to one Amazon Redshift cluster and one table currently. If you want to have data delivered to multiple Redshift clusters or tables, you can create multiple Firehose streams.
Q: Can a single Firehose stream deliver data to multiple Amazon OpenSearch Service domains or indexes?
A single Firehose stream can only deliver data to one Amazon OpenSearch Service domain and one index currently. If you want to have data delivered to multiple Amazon OpenSearch domains or indexes, you can create multiple Firehose streams.
Q: How does Amazon Data Firehose deliver data to my Amazon OpenSearch Service domain into a VPC?
When you enable Firehose to deliver data to an Amazon OpenSearch Service destination in a VPC, Amazon Data Firehose creates one or more cross account elastic network interfaces (ENI) in your VPC for each subnet(s) that you choose. Amazon Data Firehose uses these ENIs to deliver the data into your VPC. The number of ENIs scales automatically to meet the service requirements.
Troubleshooting and managing Firehose streams
Q: Why do I get throttled when sending data to my Amazon Data Firehose stream?
By default, each Firehose stream can intake up to 2,000 transactions/second, 5,000 records/second, and 5 MB/second. You can have this limit increased easily by submitting a service limit increase form.
Q: Why do I see duplicated records in my Amazon S3 bucket, Amazon Redshift table, Amazon OpenSearch index ot Splunk clusters?
Amazon Data Firehose uses at least once semantics for data delivery. In rare circumstances such as request timeout upon data delivery attempt, delivery retry by Firehose could introduce duplicates if the previous request eventually goes through.
Q: What happens if data delivery to my Amazon S3 bucket fails?
If data delivery to your Amazon S3 bucket fails, Amazon Data Firehose retries to deliver data every 5 seconds for up to a maximum period of 24 hours. If the issue continues beyond the 24-hour maximum retention period, it discards the data.
Q: What happens if data delivery to my Amazon Redshift cluster fails?
If data delivery to your Amazon Redshift cluster fails, Amazon Data Firehose retries data delivery every 5 minutes for up to a maximum period of 60 minutes. After 60 minutes, Amazon Data Firehose skips the current batch of S3 objects that are ready for COPY and moves on to the next batch. The information about the skipped objects is delivered to your S3 bucket as a manifest file in the errors folder, which you can use for manual backfill. For information about how to COPY data manually with manifest files, see Using a Manifest to Specify Data Files.
Q: What happens if data delivery to my Amazon OpenSearch Service domain fails?
For Amazon OpenSearch Service destination, you can specify a retry duration between 0 and 7200 seconds when creating the Firehose stream. If data delivery to your Amazon OpenSearch Service domain fails, Amazon Data Firehose retries data delivery for the specified time duration. After the retrial period, Amazon Data Firehose skips the current batch of data and moves on to the next batch. Details on skipped documents are delivered to your S3 bucket in the OpenSearch_failed folder, which you can use for manual backfill.
Q: What happens if there is a data transformation failure?
There are two types of failure scenarios when Firehose attempts to invoke your Lambda function for data transformation:
- The first type is when the function invocation fails for reasons such as reaching network timeout, and hitting Lambda invocation limits. Under these failure scenarios, Firehose retries the invocation for three times by default and then skips that particular batch of records. The skipped records are treated as unsuccessfully processed records. You can configure the number of invocation re-trials between 0 and 300 using the CreateDeliveryStream and UpdateDeliveryStream APIs. For this type of failure, you can also use Firehose’s error logging feature to emit invocation errors to CloudWatch Logs. For more information, see Monitoring with Amazon CloudWatch Logs.
- The second type of failure scenario occurs when a record’s transformation result is set to “ProcessingFailed” when it is returned from your Lambda function. Firehose treats these records as unsuccessfully processed records. For this type of failure, you can use Lambda’s logging feature to emit error logs to CloudWatch Logs. For more information, see Accessing Amazon CloudWatch Logs for Amazon Lambda.
For both types of failure scenarios, the unsuccessfully processed records are delivered to your S3 bucket in the processing_failed folder.
Q: Why is the size of delivered S3 objects larger than the buffer size I specified in my Firehose stream configuration?
The size of delivered S3 objects should reflect the specified buffer size most of the time if buffer size condition is satisfied before buffer interval condition. However, when data delivery to destination is falling behind data writing to Firehose stream, Firehose raises buffer size dynamically to catch up and make sure that all data is delivered to the destination. In these circumstances, the size of delivered S3 objects might be larger than the specified buffer size.
Q: What is the errors folder in my Amazon S3 bucket?
The errors folder stores manifest files that contain information of S3 objects that failed to load to your Amazon Redshift cluster. You can reload these objects manually through Redshift COPY command. For information about how to COPY data manually with manifest files, see Using a Manifest to Specify Data Files.
Q: What is the OpenSearch_failed folder in my Amazon S3 bucket?
The OpenSearch_failed folder stores the documents that failed to load to your Amazon OpenSearch Service domain. You can re-index these documents manually for backfill.
Q: What is the processing_failed folder in my Amazon S3 bucket?
The processing_failed folder stores the records that failed to transform in your Amazon Lambda function. You can re-process these records manually.
Q: How do I monitor the operations and performance of my Amazon Data Firehose stream?
Firehose Console displays key operational and performance metrics such as incoming data volume and delivered data volume. Amazon Data Firehose also integrates with Amazon CloudWatch Metrics so that you can collect, view, and analyze metrics for your Firehose streams. For more information about Amazon Data Firehose metrics, see Monitoring with Amazon CloudWatch Metrics in the Amazon Data Firehose developer guide.
Q: How do I monitor data transformation and delivery failures of my Amazon Data Firehose stream?
Amazon Data Firehose integrates with Amazon CloudWatch Logs so that you can view the specific error logs if data transformation or delivery fails. You can enable error logging when creating your Firehose stream. For more information, see Monitoring with Amazon CloudWatch Logs in the Amazon Data Firehose developer guide.
Q: How do I manage and control access to my Amazon Data Firehose stream?
Amazon Data Firehose integrates with Amazon Identity and Access Management (IAM), a service that enables you to securely control access to your Amazon Web Services services and resources for your users. For example, you can create a policy that only allows a specific user or group to add data to your Firehose stream. For more information about access management and control of your stream, see Controlling Access with Amazon Data Firehose.
Q: How do I log API calls made to my Amazon Data Firehose stream for security analysis and operational troubleshooting?
Amazon Data Firehose integrates with Amazon CloudTrail, a service that records Amazon API calls for your account and delivers log files to you. For more information about API call logging and a list of supported Amazon Data Firehose API operations, see Logging Amazon Data Firehose API calls Using Amazon CloudTrail.
Pricing and billing
Q: How much does Amazon Data Firehose cost?
Amazon Data Firehose uses simple pay as you go pricing. There is neither upfront cost nor minimum fees and you only pay for the resources you use. Amazon Data Firehose pricing is based on the data volume (GB) ingested by Firehose, with each record rounded up to the nearest 5KB. For delivery to a destination in a VPC, you also pay for each hour that your Firehose stream remains provisioned in each Availability Zone and per GB of data processed to the destination. For more information about Amazon Data Firehose cost, see Amazon Data Firehose Pricing.
Q: When I use PutRecordBatch operation to send data to Amazon Data Firehose, how is the 5KB roundup calculated?
The 5KB roundup is calculated at the record level rather than the API operation level. For example, if your PutRecordBatch call contains two 1KB records, the data volume from that call is metered as 10KB. (5KB per record)
Q: Does Amazon Data Firehose cost include Amazon S3, Amazon Redshift, Amazon OpenSearch Service, and Amazon Lambda costs?
No, you will be billed separately for charges associated with Amazon S3, Amazon Redshift, Amazon OpenSearch Service, and Amazon Lambda usage, including storage and request costs. For more information, see Amazon S3 Pricing, Amazon OpenSearch Service Pricing, and Amazon Lambda Pricing.