With Amazon MSK, you pay only for what you use. There are no minimum fees or upfront commitments. You pay for the time your broker instances run, the storage you use monthly, and standard data transfer fees for data in and out of your cluster. You do not pay for Apache ZooKeeper nodes that Amazon MSK provisions for you, or data transfer that occurs between brokers and nodes within clusters.
Broker instance pricing
HOURLY INSTANCE USAGE
You pay for Apache Kafka broker instance usage on an hourly basis (billed at one second resolution), with varying fees depending on the size of the Apache Kafka broker instance and active brokers in your Amazon MSK clusters. See the Broker Instance Pricing Tables for details.
Broker storage pricing
With Amazon MSK, you pay for the amount of storage you provision in your cluster. This is calculated by adding up the GB per broker each hour and dividing by the number of hours in the month, resulting in a value in "GB-Months," as shown in the pricing example. See the Broker Storage Pricing Tables for details.
Data transfer fees
You are not charged for data transfer between brokers or between Apache ZooKeeper nodes and brokers. You will pay standard AWS data transfer charges for data transferred in and out of Amazon MSK clusters.
If two kafka.t3.smalls are active in the US East (N. Virginia) AWS Region, and your brokers use 50GB of storage* for 31 days in March, you would pay the following for the month:
Broker instance charge
Instance usage (in hours) = 31 days x 24 hrs/day x 2 brokers = 1,488 hours x $0.0456 (price per hour for a kafka.t3.small) = $67.85
Storage usage in GB-Hours = 50 GB x 1 month = 50 GB-Months x $0.10 (the price per GB-Month in US East region) = $5
Total charge = $67.85 (broker instance charge) + $5 (storage charge) = $72.85, which is $2.35/day.
*This workload represents a 100KB/s ingest rate with 24 hour retention and replication factor of 2. Data transfer charges apply and are estimated to be $5/month for this workload.
If three kafka.m5.larges are active in the US East (N. Virginia) AWS Region, and your brokers use 1TB of storage for 15 days in March and 2TB of storage for the final 16 days in March, you would pay the following for the month:
Broker instance charge
Instance usage (in hours) = 31 days x 24 hrs/day x 3 brokers = 2,232 hours x $0.21 (price per hour for a kafka.m5.large) = $468.72
Storage usage in GB-Hours = [1000 GB x 15 days x (24 hrs/day)] + [2000 GB x 16 days x (24 hrs/day)] = 1,128,000 GB-Hours
Convert GB-Hours to GB-Months to calculate the monthly charge:
1,128,000 GB-Hours / 24 hrs / 31 days = 1,516.13 GB-Months x $0.10 (the price per GB-Month in US East region) = $151.61
Total charge = $468.72 (broker instance charge) + $151.61 (storage charge) = $620.33