Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change S3 Bucket Storage class to S3 Infrequent Access

I want to change the S3 bucket to have default storage class of Infrequent Access.

So if I upload file to the bucket, it should directly go to Infrequent Access storage.

I don't want to use the Lifecycle

like image 360
kevin peter Avatar asked Sep 08 '17 07:09

kevin peter


People also ask

What is S3 infrequent access?

Amazon S3 Standard-Infrequent Access (S3 Standard-IA) S3 Standard-IA is for data that is accessed less frequently, but requires rapid access when needed. S3 Standard-IA offers the high durability, high throughput, and low latency of S3 Standard, with a low per GB storage price and per GB retrieval charge.

How many days must an object remain in standard infrequent access storage class before transitioning to Glacier storage class?

Before you transition objects from the S3 Standard or S3 Standard-IA storage classes to S3 Standard-IA or S3 One Zone-IA, you must store them at least 30 days in the S3 Standard storage class.


1 Answers

There is no concept of a default storage class for an Amazon S3 bucket.

The storage class is specific to the object and can be specified when the object is created in the bucket.

You will need to change your upload process to specify the storage class at the time of object creation.

You can use the lifecycle rules to later change storage classes based upon the age of the object, which is as close as you'll get to a "default storage class".

like image 105
John Rotenstein Avatar answered Sep 20 '22 13:09

John Rotenstein