How to Create Cost Reports

A step-by-step guide to create cost reports in AWS

The Cost reports help in understanding the cloud cost for using the Atlan product.

They can prove helpful in the following ways πŸ‘‡

  1. Identify cost for individual components like query, data quality, etc inside Atlan.

  2. Calculate Atlan's cost specifically if you are running stack in a shared account.

  3. Forecast and plan the budget for Atlan.

πŸ“œ Prerequisites

  • The current AWS user should have Billing IAM permission.

πŸ› οΈ A Step-by-Step Guide for Creating Cost Reports in AWS

PART 1: Activate β€œstack:name” tag in "Cost Allocation Tags" section

Follow the pointers given below to activate the "stack:name" tag.

  • Log in to AWS, search for billing, and select it.

AWS Management Console Search Billing
  • Click on the "Cost allocation tags" option given on the left menu to navigate to that section.

AWS Billing Dashboard
  • Search for the tag "stack: name" under the "User-fefined cost allocation tags" section and activate it. The tag is already active in the image shown below.

Cost Allocation Tags Section

PART 2: Cost Report Creation

  • Post 24 hours from activation of the "stack:name" tag, log into AWS. Search for "cost explorer" and select it.

AWS Management Console Search Cost Explorer
  • Click on the Reports option on the left menu to navigate to the section.

AWS Cost Management Dashboard
  • To create a new report, click on the orange button "Create new report" on the top right.

Reports Section
  • Select "Cost and Usage" as report type, and click on the "Create Report" orange button given at the bottom right.

Create New Cost Report
  • Modify the duration as per requirement.

Change Report Duration
  • For example, click on the MTD option from the drop-down to select the Month to Date (MTD) format.

Duration: MTD
  • You can also select last week (7D) by clicking on 7D.

Duration: 7D
  • Similarly, you can choose to see just yesterday's data by clicking 1D.

Duration: 1D
  • You can also change the granularity i.e. the frequency of the graph. The option to do that is given just next to the time drop-down.

Change Report Granularity
  • For daily data, select granularity as "Daily".

Granularity: Daily
  • Group costs by Service.

Group by: Service
  • Uncheck "Show forecasted values" under "ADVANCED OPTIONS".

Uncheck Show forecasted values
  • You can also change the costs and choose from the drop-down "Show costs as".

Change Report Costs
  • Let's select "Blended costs" from the drop-down as an example.

Blended costs
  • Click on the filter: Tag

Click on Tags
  • Type "stack:name" in the search under Tag and select it.

Search "stack:name"
  • Under the "stack:name" tag, search the name of Atlan's CloudFormation stack (here we use "infrapoc"), select it, and click on the "Apply filters" button in blue.

Search CF Stack name
  • Save the report by clicking the "Save as..." button on the top left.

Save the Report
  • Enter the report's name and click on the "Save Report".

Enter Report name and save it

πŸŽ‰ Your report is now ready.

PART 3: Access and download report

  • After saving the report, go to the "Reports Section" from the left menu.

To the Reports Section
  • Search for the newly created report using the report name.

Search for Report
  • Click on the report to view the report and download the report by clicking on Download CSV.

Download as CSV
  • The report will be downloaded as a file named 'costs.csv'.

CSV downloaded as costs.csv
  • The downloaded CSV will have 'Services' as columns and 'Dates' as rows.

CSV File

You can now easily share this file with requisite people on your team πŸ€“