Menu
Amazon Simple Storage Service
Console User Guide

How Do I Configure Storage Inventory?

If you are in the old Amazon S3 console, to use the new console, choose Opt In in the following box, which appears on the old Amazon S3 console home page. Note that Opt In is not available in all Regions.  


                            Opt-in to new Amazon S3 console UI

Amazon S3 inventory is one of the tools Amazon S3 provides to help you manage your storage. You can simplify and speed up business workflows and big data jobs using the Amazon S3 inventory, which provides a scheduled alternative to the Amazon S3 synchronous List API operation. Amazon S3 inventory provides a comma-separated values (.csv) flat-file output of your objects and their corresponding metadata on a daily or weekly basis for an S3 bucket or for objects that share a prefix (objects that have names that begin with the same string). For more information, see Amazon S3 Storage Inventory in the Amazon Simple Storage Service Developer Guide.

To configure inventory

  1. Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.

  2. In the Bucket name list, choose the name of the bucket for which you want to configure storage inventory.

  3. Choose the Management tab, and then choose Inventory.

  4. Choose Add new.

  5. Type a name for the inventory and set it up as follows:

    • Optionally, add a prefix for your filter to inventory only objects whose names begin with the same string.

    • Choose the destination bucket where you want reports to be saved. The destination bucket must be in the same AWS Region as the bucket for which you are setting up the inventory.

    • Optionally, choose a prefix for the destination bucket.

    • Choose how frequently to generate the inventory.

  6. Choose Save.

  7. Create a bucket policy on the destination bucket to grant Amazon S3 permission to write objects to the bucket.

    1. From the Bucket name list, choose the name of the destination bucket. If the bucket is in a different account, sign into that account.

    2. Choose Permissions, and then choose Bucket Policy.

    3. Copy the bucket policy from Granting Permissions for Amazon S3 Inventory and Amazon S3 Analytics in the Amazon Simple Storage Service Developer Guide and paste it into the Bucket policy editor text box.

      In the Bucket policy editor, make the following changes to the example policy:

      • In Resource, replace destination-bucket with the name of the destination bucket that you chose in Step 5. This is the bucket that you're adding the policy to.

      • In Condition - ArnLike, replace source-bucket with the name of the source bucket for the inventory.

      • In Condition - StringEquals, replace 1234567890 with the account number of the source bucket.

    4. Choose Save.

For more information about storage inventories, see Amazon S3 Storage Inventory in the Amazon Simple Storage Service Developer Guide.