By default storage in a bucket is STANDARD. And while pushing each object we can change the storage.
But is there a way to change default storage at Bucket level ( probably through AWS Console) ?
It's technically true that you cannot set the storage class on a per-bucket basis. However, you can specify a lifecycle policy on your bucket to automatically transition new objects to a storage class, as it says here.
The Standard - IA storage class is set at the object level and can exist in the same bucket as Standard, allowing you to use lifecycle policies to automatically transition objects between storage classes without any application changes.
To do this, go to the Management tab for a your bucket and click 'Add lifecycle rule'
Give it a name and click next. For 'Configure transition', select current version. Click Add transition, choose "Transition to Standard-IA after" and choose 30, because 30 is the minimum. Finish your rule and you are all set.
The storage class cannot be set on a per-bucket basis. It must be specified with each upload operation in your client.
It is possible to specify storage class in upload request (PUT Object, POST Object, and Initiate Multipart Upload) via x-amz-storage-class
header.
Additionally, if you want to enforce some storage classes in a bucket, you can do this via Bucket Policy (with s3:x-amz-storage-class
condition key). This way any attempt to upload object with prohibited classes would fail.
Thus, you should do:
x-amz-storage-class
header).s3:x-amz-storage-class
key condition-based Bucket Policy (see example).