# Review your AWS spend

### AWS Cost Explorer <a href="#aws-cost-explorer" id="aws-cost-explorer"></a>

Any EC2 resource launched by IDEA comes with an extensive list of EC2 tags that can be used to get detailed information about your cluster usage. List includes (but not limited to):

* Project Name
* Job Owner
* Job Name
* Job Queue
* Job Id

<figure><img src="https://4178558898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff38qThSa0Aa40txosxbS%2Fuploads%2Fesq0bvKXyCLVVD9pZoFp%2Fbp_bugdet_extags.webp?alt=media&#x26;token=ee76e68d-9df5-430c-aa9a-896124082731" alt=""><figcaption><p>IDEA automatically assign tags. Custom tags can be added as needed</p></figcaption></figure>

{% hint style="info" %}
All IDEA generated tags are prefixed with "**idea:**"
{% endhint %}

#### Step1: Enable Cost Allocation Tags <a href="#step1-enable-cost-allocation-tags" id="step1-enable-cost-allocation-tags"></a>

Click on your account name (top right on the screen) then click "**Billing Dashboard**". Once connected to your Billing dashboard, click "**Cost Allocation Tags**" on the left sidebar.

![Cost Allocation section is available via the left sidebar](https://awslabs.github.io/scale-out-computing-on-aws/imgs/budget-2.png)

Search all "**idea**" tags then click "Activate". Status of each tag should now be changed to "Active".

<figure><img src="https://4178558898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff38qThSa0Aa40txosxbS%2Fuploads%2F1fN9FfyBlzW7MySgtfhx%2Fbp_bugdet_activatetags.webp?alt=media&#x26;token=074e032d-c73c-4f86-9545-1737021c7854" alt=""><figcaption><p>Activate all tags to be usable on Cost Explorer</p></figcaption></figure>

#### Step 2: Query Cost Explorer <a href="#step-2-enable-cost-explorer" id="step-2-enable-cost-explorer"></a>

{% hint style="info" %}
It could take up to 24 hours for the tags to be visible on Cost Explorer.
{% endhint %}

Access "**AWS Cost Explorer**" service via the EC2 console the click "**Cost Explorer**" on the left sidebar.

Open your Cost Explorer tab and specify your filters. In this example I want to get the EC2 cost (1), group by day for my queue named "cpus" (2).

![](https://4178558898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff38qThSa0Aa40txosxbS%2Fuploads%2Fc2g0elT20nQz6JWFx1FT%2Fbp_bugdet_costex1.webp?alt=media\&token=a5683c4d-73b4-45ad-b12f-76341ca4caf1)

To get more detailed information, select 'Group By' and apply additional filters. Here is an example if I want user level information for "cpus" queue Click "Tag" section under "Group By" horizontal label (1) and select "idea:JobOwner" tag. Your graph will automatically be updated with a cost breakdown by users for "cpus" queue

![](https://4178558898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff38qThSa0Aa40txosxbS%2Fuploads%2F7JbiYOit8KoYhC2ZbN4D%2Fbp_bugdet_costex2.webp?alt=media\&token=8b034d24-fb27-4bbf-a9e6-107584a7186f)
