---
title: "Find Size of Amazon S3 Bucket"
canonical: "https://techwiki.co.uk/cloud/find-size-of-amazon-s3-bucket"
author: "Adam Birds"
article_type: "documentation"
published: "2026-08-10T23:29:25.351Z"
updated: "2026-08-10T23:29:25.352Z"
categories: ["Cloud"]
tags: []
---**To find the size of an Amazon S3 Bucket use the following command:**

```

aws s3api list-objects --bucket bucketname --output json --query "[sum(Contents[].Size), length(Contents[])]"

```

This requires you to first run:

```

aws configure

```

To set up your account credentials with the api.
