Skip to content

KMS usage cost per service

0

Hi Team,

I want to analyze the kms usage cost per service. I am using redshift, s3, dms and to access these services i am using customer managed kms key. How i can get the kms cost associated with each service.

Thanks in advance.

Regards, Sandeep

1 Answer
0

To analyze KMS usage costs per service, you'll need to understand how AWS KMS charges work and then use AWS tools to track usage by service.

AWS KMS charges consist of two components:

  1. Monthly key storage cost: Each customer managed KMS key costs $1 per month (prorated hourly), regardless of which services use it
  2. API request costs: You're charged for each API request made to your KMS keys (after the free tier of 20,000 requests per month across all regions)

To track KMS costs associated with each service (Redshift, S3, and DMS):

Use AWS CloudTrail: CloudTrail logs all API requests made to your KMS keys, including which service made the request. You can analyze these logs to see which services are making requests to your customer managed keys and how frequently.

Use Amazon Athena: You can query your CloudTrail logs using Amazon Athena to analyze KMS API usage patterns by service. This will help you identify which service is generating the most KMS requests and contributing to your usage costs.

Use AWS Budgets: Configure usage budgets in AWS Budgets to monitor and alert on KMS requests. You can set thresholds to improve visibility into your KMS key storage and usage costs.

Keep in mind that when you use a customer managed key across multiple services, the AWS account making the API request is charged for that key use. The key storage cost ($1/month) applies once per key, regardless of how many services use it, but the API request costs will vary based on each service's encryption/decryption activity.
Sources
Pricing - AWS Key Management Service (KMS)
Cost and billing management best practices for AWS KMS - AWS Prescriptive Guidance
AWS KMS keys - AWS Key Management Service

answered 9 months ago

EXPERT

reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.