Need cost of Individual EC2 Instance

0

Hello,

I am being tasked to manage a AWS accounts, where ec2's are not tagged. However, now requirement is to have cost report of individual EC2 server on daily/monthly basis. I enabled cost report from billing section( CUR). However, under s3 bucket I can see there are multiple CUR zip files report are generated and I am not able to understand under which file should check the specific EC2. Need help here to get cost report for individual ec2's. either in cost explorer or through CUR. Thanks.

3 Answers
1

To start working with CUR, folks usually use Athena or Athena + Quicksight or some other kind of BI query tool that can see the S3 data. I recommend looking through the Labs that walk you through how to query CUR. There are also sample queries in the Level 300 area of that website. Using those queries, you can query a specific time (day, week, month, etc) or range of time. With that data, then you can calculate the cost per instance (using line_item_resource_id). This is under the expectation that you have enabled Resource IDs to be delivered in the CUR.

profile pictureAWS
EXPERT
answered a year ago
  • Hello Shlomo Dubrowin,

    Thanks for the response. I will need to go through those labs to understand this option. could you please confirm, if it is possible to similar details through cost explorer? There I can see option (drop down) name resources. However, unable to search with instance ID there. Do I need to enable anything on account level?

0

you can follow the below link to enable your Cost and Usage Reports to integrate with Amazon Athena, Amazon Redshift, or Amazon QuickSight.

https://docs.aws.amazon.com/cur/latest/userguide/cur-create.html

Sachin
answered a year ago
0
  1. Follow exactly the steps in this page, if in your previous step you have already done it but not as per what this page - https://www.wellarchitectedlabs.com/cost/100_labs/100_1_aws_account_setup/3_cur/ , you have to create another one as per the instructions.

  2. Give it a few days to allow the data to populate.

  3. Go to AWS Athena console and use this query - https://www.wellarchitectedlabs.com/cost/300_labs/300_cur_queries/queries/compute/#ec2-total-spend

profile pictureAWS
Ray T
answered a year 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.

Guidelines for Answering Questions