# S3 Optimization

## Overview

S3 Optimization gives you complete visibility into your Amazon S3 bucket costs and helps identify opportunities to reduce storage expenses. You can explore usage patterns, compare current and past costs, and evaluate storage policies across all visible buckets.

## Conditions for Bucket Visibility

A bucket will appear in the S3 Optimization dashboard only if the following conditions are met:

1. The bucket is in an **active state** (not deleted).
2. The **total cost exceeds $20** over the **last 30 days**.

Buckets that do not meet these criteria will be excluded from the analysis.

## Exploring S3 Dashboard

To access the S3 Optimization dashboard:

1. Log in to the OneLens UI.
2. In the left sidebar, navigate to **S3 Optimization**.

Here is how the main page will look:

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

### Customize View

You can tailor the dashboard view to focus on specific data:

#### View Options

You can start with pre-saved views or customize your own using filters.

<figure><img src="/files/4Zp6cTii1XcXsImSkt8A" alt="" width="355"><figcaption></figcaption></figure>

{% hint style="success" %}

## Tip&#x20;

To learn how to save a customized view, [click here](/observe-visibility-and-insights/cost-reporting/cost-atlas/saved-views.md#how-to-save-a-view).
{% endhint %}

#### Date Range&#x20;

* **Predefined Range:** Quickly access relevant cost data by selecting a range such as “**Last 2 Weeks**” or “**Month-to-Date**”.&#x20;
* **Custom Range**: If you need to analyze costs over a specific period, define a custom date range to focus on the exact time frame.&#x20;

<figure><img src="/files/U0WeNx4HcDSqdapp6KgA" alt="" width="375"><figcaption></figcaption></figure>

### Key Metrics

After customizing the view using filters and date range, you can view the following metrics:

* **Total S3 Buckets** – Number of buckets visible under current filters.
* **Total S3 Cost** – Aggregate cost of the visible buckets for the selected period.

### Table Representation

The table presents detailed cost and usage data for each visible bucket. The following columns are included:

| **Column Name**      | **Description**                                                 |
| -------------------- | --------------------------------------------------------------- |
| **Bucket Name**      | Name of the S3 bucket.                                          |
| **Account**          | AWS account to which the bucket belongs.                        |
| **Total Cost**       | Total cost incurred for the selected time range.                |
| **Previous Cost**    | Cost for the previous period of the same duration.              |
| **Delta**            | Change in cost compared to the previous period.                 |
| **Total Size**       | Total storage used in the bucket.                               |
| **Total Objects**    | Number of objects stored in the bucket.                         |
| **Storage Class**    | Predominant storage class in use (e.g., Standard, IA, Glacier). |
| **Storage Cost**     | Cost directly attributable to storage use.                      |
| **Lifecycle Policy** | Number of lifecycle policies associated with the bucket.        |
| **Versioning**       | Indicates whether versioning is enabled or disabled.            |

{% hint style="success" %}

#### Access Insights

Each row includes an **Insight** button. Clicking it takes you directly to the **Insights** page for deeper analysis.

To learn more about the kinds of insights available, [click here](/optimize-cost-savings-and-recommendations/s3-optimization/s3-insights.md).
{% endhint %}

## View Bucket Details

To view detailed information for a specific bucket, you can either:

* Click directly on the **bucket name** in the table, or
* Select **View Details** from the three horizontal dots at the end of the bucket row.

<figure><img src="/files/Vv8Nqst6xheWjUutvse0" alt="" width="80"><figcaption></figcaption></figure>

For a complete breakdown of what is available in the detailed view, see the[ Bucket Details page.](/optimize-cost-savings-and-recommendations/s3-optimization/detailed-view-of-buckets.md)


---

# 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/optimize-cost-savings-and-recommendations/s3-optimization.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.
