AWS Solutions Architect Associate Certification
Services Storage
S3 Storage Classes Demo
This guide demonstrates how to set and modify the storage class for files in Amazon S3. You will learn how to configure the storage class during file upload and change it later if needed, ensuring your data is stored cost-effectively and in accordance with your access requirements.
Uploading Files with a Custom Storage Class
- Create a new S3 bucket (for example, "kk-sc-demo") using the default settings.
- Once the bucket is created, click the Upload button and select a file from your computer.
- During the upload process, in the file properties section, notice that the default storage class is set to Standard.
Tip
For optimal cost management, consider selecting the One Zone Infrequent Access storage class if your data is accessed less frequently but requires rapid retrieval.
- Change the storage class from Standard to One Zone Infrequent Access, then upload the file.
- Once the upload completes, verify that the file's storage class is set to One Zone Infrequent Access.
Modifying the Storage Class of an Existing Object
If you need to change the storage class after the upload:
- Navigate to the object's properties in the S3 console.
- Edit the storage class setting and choose the desired option. For example, you can switch it back to Standard.
Note
Changing storage classes can help optimize costs and performance. Review your storage needs and access patterns to select the most appropriate option.
Conclusion
This tutorial has shown that setting the storage class is straightforward during the initial upload and can be easily adjusted later through the object properties in S3. Managing your storage class effectively can lead to significant cost savings and ensure that your data is stored appropriately based on its usage.
For more detailed information, please visit the Amazon S3 Documentation.
Watch Video
Watch video content