How do I view S3 usage and cost in cost explorer ?

0

I am able view cost of S3 in cost explorer but I would like to see it against data size and number request was charged. In the billing dashboard I could see usage against cost but not in cost explorer.

Amudhan
demandé il y a un an2060 vues
3 réponses
2
Réponse acceptée

To see cost AND usage in Cost Explorer, you can filter out specific usage types. There are several charges under S3 service, and they will have different pricing units. For example, the actual storage is charged Gb per month; the API calls (like PUT, COPY, GET) are charged for X number of calls; then there may be data transfer (traffic charges) that will also be charged Gb per month. Because of the different pricing units, when you simply look at the total cost for S3, you won't get the usage graph.

I see on the screenshot you are grouping your cost by API operation. To see both cost (top graph) and usage (bottom graph), associated with each individual usage type, you would have to apply additional filters, and look ONLY at the usage types that have the same pricing units. For example... let's say I want to see how much I pay for Standard Storage in S3, the actual Gb/month of storage. I would then apply Usage Type filter, and search for anything that looks like "TimedStorage-ByteHrs" S3-standard-storage-usage-type

Alternatively, for some services, there are pre-defined groups of usage types already in the "Usage Type Group" filter. Those are essentially usage types for particular services / features, that are billed with the same pricing unit (like Gb-month for storage or traffic; or Hours for compute usage), grouped for convenience. If you filter with the Usage Type Group, it will output both cost and usage graphs.

profile pictureAWS
EXPERT
répondu il y a un an
profile picture
EXPERT
vérifié il y a 3 mois
1

Hi,

This blog post will show you how to use cost allocation tags with Cost Explorer to separate S3 costs per bucket: https://aws.amazon.com/blogs/mt/using-aws-cost-explorer-and-cost-allocation-tags-to-view-amazon-s3-costs-by-bucket/

It's close to this guidance: https://repost.aws/knowledge-center/s3-find-bucket-cost

The official doc about S3 cost allocation tags is here: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html

Best,

Didier

profile pictureAWS
EXPERT
répondu il y a un an
profile picture
EXPERT
vérifié il y a 3 mois
  • Actually, I am not looking for individual bucket usage. I want the cost explorer to include data like ex.: S3 standard 100GB usage cost 100$. Right now in cost explorer it's just giving out only the amount but not the usage.

1

Hello.
It is better to activate Storage Lens than Cost Explorer to see the exact number of requests to S3, etc.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html

It is also possible to see how much is being charged for any given request in Cost Explorer.
s3

profile picture
EXPERT
répondu il y a un an
profile picture
EXPERT
vérifié il y a 3 mois
  • Hi, Yeah, cost explorer is giving out cost but I am looking for the usage which was billed against. Like displayed in billing dashboard.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions