To predict costs and better understand your AWS bill, you might want to know how often Amazon SQS uses your CMK.
Note: Although the following formula can give you a very good idea of expected costs, actual costs might be higher because of the distributed nature of Amazon SQS.
To calculate the number of API requests per queue (R), use the following formula:
R = B / D * (2 * P + C)
B is the billing period (in seconds)
D is the data key reuse period (in seconds)
P is the number of producing principals that send to the Amazon SQS queue.
C is the number of consuming principals that receive from the Amazon SQS queue.
Important: In general, producing principals incur double the cost of consuming principals. For more information, see How Does the Data Key Reuse Period Work? in the Amazon SQS Developer Guide.
If the producer and consumer have different IAM users, the cost increases.
For more information, see How Do I Estimate My AWS KMS Usage Costs? in the Amazon SQS Developer Guide