Search code examples
amazon-web-servicesamazon-s3aws-storage-gateway

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


Solution

  • I found the answer myself.

    Using cli-

    aws s3 cp glacier.png s3://my-lambada-example-thumbnails/ --storage-class STANDARD_IA
    

    So by using --storage-class we could specify the storage class.

    Also when uploading from AWS console we get to specify the storage class.

    Those who are using AWS File Gateway and want to change Storage class from S3 standard to IA can change as shown below.

    enter image description here