Skip to content

Instantly share code, notes, and snippets.

@jflasher
Created February 1, 2019 15:21
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jflasher/1a97b9f3f7e2bbf232086e3ca31119e1 to your computer and use it in GitHub Desktop.
Save jflasher/1a97b9f3f7e2bbf232086e3ca31119e1 to your computer and use it in GitHub Desktop.
Instructions for setting up a lifecycle policy for S3 Intelligent-Tiering

Amazon S3 now supports a new storage class called Intelligent Tiering. This will be a very attractive option for many customers who have datasets that are accessed in unpredictable patterns. You can set this storage class when uploading any new data. However, the below instructions will allow you to set up a lifecycle policy that will change the storage class of data that already exists in your bucket.

To set up a lifecycle policy to change the storage class of the data currently stored in your Amazon S3 bucket, follow the below steps.

  1. Visit the S3 console and go to your bucket of interest.

  2. Click on the Management tab at the top and select + Add lifecycle rule.

  3. Enter a rule name of your choice (e.g., Convert to Intelligent Tiering storage class). Unless you want to filter which data is converted to the new storage class, you can leave the prefix/tag filter field empty.

  4. Click Next.

  5. Select the Current Version checkbox unless you have previously enabled versioning. Click the + Add transition link that appears.

  6. Select Transition to Intelligent-Tiering after in the dropdown box. You can leave the Days after creation value at its default of 0.

  7. Click Next.

  8. We do not need to set any expirations at this time. Click Next.

  9. You can review your settings and if all looks well, click Save.

You now have a lifecycle policy in place that will move any existing data (and new data that comes in) to the Intelligent-Tiering storage class.

@qinjie
Copy link

qinjie commented Sep 20, 2022

@HiteshGupta41420, it is most likely because life cycle policy is not applied in real time. Give it around 48 hours before you check again. Life cycle policy performs rules valuation in UTC midnight, then perform transition in the next UTC midnight.

@whiplash98
Copy link

I have my existing s3 bucket and i added lifecycle policy for intelligent tier with 0 days delay. but still my objects showing as standard tier why ?

@MrCsabaToth
Copy link

Is it possible to configure Intelligent Tiering to only go as far as Archive Instant Access (AIA) and don't move stuff to higher latency Archive tiers? If yes where?

@jflasher
Copy link
Author

jflasher commented Mar 5, 2024

Hi @MrCsabaToth I'd recommend checking out the docs or re:Post. This is not something I've looked into for quite some time at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment