# Setting Up Cost Reports Manually

OneLens prefers the IAM role and CUR bucket to be created in us-east-1 region if you have multiple regions active. However if you wish to setup the Role and CUR bucket in a specific region, this document will guide you with the setup process.&#x20;

Its is a two step process:

1. [Setting up the CUR 2.0 report](#setting-up-the-cur-2.0-report)
2. [Creating IAM role for access](#creating-iam-role-for-access)

## Setting up the CUR 2.0 report

Billing service is a global service, which internally served by AWS in `us-east-1` region. We will configure the export via this global service to deliver reports in the S3 bucket created in choice of your region

{% stepper %}
{% step %}

### Initiate Data export

Go to Billing Service and click on[ Data Export](https://us-east-1.console.aws.amazon.com/costmanagement/home?region=ap-south-1#/bcm-data-exports).&#x20;

<figure><img src="/files/3sMNKKbGzMMtm5CVHIZ1" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}

### Create new report

Click on the `Create` button. Provide the Export Name as `OneLens-Standard-CUR-Export` and data export type should be the default, i.e. Standard Data Export.

<figure><img src="/files/XLUkPw7DYn8okSkzoryp" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Configure Table content setting

Select

1. Select report format as `CUR 2.0`
2. In addiotional settings, select both the check boxes
   1. Include Resource Id
   2. Split Cost Allocation Data

<figure><img src="/files/Z42028qePuhfj8lVS50s" alt=""><figcaption></figcaption></figure>

You should see the selection of 125 Columns
{% endstep %}

{% step %}
Configure Storage Settings and Finalize

Configure the S3 setting as per your need. In below screenshots we you see we selected \`ap-south-1\`as preferred region

<figure><img src="/files/Q0pC3IJ1xcI9cuxWHqnx" alt=""><figcaption></figcaption></figure>

Provide the Bucket Name and the region in which you want the bucket to be created

<figure><img src="/files/bEKlAjLwzUZHp9VTZeLb" alt=""><figcaption></figcaption></figure>

Provide the CUR Path as `cur` and hit the Create Button

<figure><img src="/files/YO0QcVdyR0RT1lM0EWub" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

> Note - AWS will take 24-48 Hours to generate the first report.

## Creating IAM role for access

Once the S3 bucket is configured, lets create the IAM Role in the same region where you created the CUR bucket

{% stepper %}
{% step %}

### Create Cloudformation Stack

Go to CFT Service and upload the Stack. You can find the yml file below

{% file src="/files/aISV8co3cUEePFGogVGw" %}

{% endstep %}

{% step %}

### Specify Stack Details

Provide the details as

1. Stack Name - `onelens-cur-role-stack`
2. Role Name - get the unique ID from OneLens Team for your Account.
3. S3 Bucket Name - your S3 bucket name created in previous step

<figure><img src="/files/ShuSaqeptyRWuAP4GsG6" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Configure Stack Options

Click on Next and provide Tags as per your company norms (optional)

<figure><img src="/files/IptFUOPLWIW53OUV1PQj" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Review and create

Acknowledge that you are creating an IAM Role and create the role

<figure><img src="/files/B2bBdt03zEV8mAq9Ehzh" alt=""><figcaption></figcaption></figure>

Click on `Next` and then `Submit`

<figure><img src="/files/1dFhPeWAkKazWPLO2SXn" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

After successful execution, please share the following details with OneLens team

* Your Account ID in which you have run the Stack
* S3 CUR Bucket Name


---

# 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/cloud-and-cost-sources/connect-to-aws/setting-up-cost-reports-manually.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.
