# Enable Split Cost Allocation for EKS

To view pod-level EKS costs in OneLens, you need to enable split cost allocation from two places in your AWS account:

1. **CUR Preferences** – to include split cost allocation data in the Cost and Usage Report (CUR).

{% hint style="success" %}
The **Split Cost Allocation Data option in CUR preferences** is already enabled for you during onboarding through CloudFormation Templates (CFTs).
{% endhint %}

2. **Cost Management Preferences** – to opt in to EKS cost allocation.

{% hint style="danger" %}

### Warning: Require Payer and Regular Account Access

Split cost allocation must be configured from a **Payer and Regular account** in AWS Cost Management Preferences. If you do not have access to the payer account or if it is managed by an external third-party provider, **please raise a ticket** with **Payer Account Owner or the provider** to enable split cost allocation.

When using an unsupported account, you'll see the following message:

![](/files/dAzUlLPF1ftV9Ppj3N8i)
{% endhint %}

## Step-by-Step Guide

{% stepper %}
{% step %}

### **Enable EKS Split Cost Allocation**

1. Open the [**AWS Cost Management Console**](https://us-east-1.console.aws.amazon.com/costmanagement/home#/home).
2. In the left menu, select <kbd>**Cost Management Preferences**</kbd>.
3. Under **Split cost allocation data**:
   1. Select <kbd>**Amazon Elastic Kubernetes Service**</kbd>
   2. Choose <kbd>**Resource Requests**</kbd>

<figure><img src="/files/1qp95EB0pIaXvLh34Lfj" alt="" width="563"><figcaption></figcaption></figure>

4. Click <kbd>**Save Preferences**</kbd> at the bottom right.
   {% endstep %}

{% step %}

### Ensure Required Tags Are Enabled

After enabling split cost allocation, AWS automatically creates and activates the following cost allocation tags **in your payer account**:

* `aws_eks_cluster_name`
* `aws_eks_namespace`
* `aws_eks_node`
* `aws_eks_workload_type`
* `aws_eks_workload_name`
* `aws_eks_deployment`

These tags must remain enabled for OneLens to attribute pod-level costs accurately.

{% hint style="warning" %}

## **Note**

If any of the AWS-generated EKS tags were previously disabled in your account, enabling split cost allocation will **not** automatically reactivate them. You must manually enable those tags from the [**Cost Allocation Tags**](https://us-east-1.console.aws.amazon.com/costmanagement/home#/tags) page in the Billing Console.
{% endhint %}

**To verify:**

1. Go to [**Cost Allocation Tags**](https://us-east-1.console.aws.amazon.com/costmanagement/home#/tags) in the AWS Billing Console.
2. Open the <kbd>**AWS-Generated Tags**</kbd> tab.
3. Filter by **`eks`.**
4. Ensure all required tags are enabled and active.

   <figure><img src="/files/etgp7BsRzMYLG1JXaH3k" alt="" width="563"><figcaption></figcaption></figure>

{% endstep %}
{% endstepper %}

After the setup, your CUR will start including pod-level cost breakdowns. OneLens will use this data to provide deeper visibility into your EKS costs.

## Additional Cost for Split Allocation in EKS

There is **no direct AWS fee** for enabling this feature. However, you may incur an estimated <kbd>**$2.73/month per 10,000 pods**</kbd> due to increased CUR data size and processing overhead.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onelens.cloud/integrations/kubernetes/enable-split-cost-allocation-for-eks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
