Chapter 8. Storage

 

This chapter covers

  • S3 features such as versioning, hosting, and transfer acceleration
  • Direct uploads of files from a browser to S3
  • Creation and use of signed URLs

Many applications and systems that you create need to store files. These may be profile images, documents uploaded by a user, or artifacts generated by the system. Some files are temporary and transient, whereas other files must be kept for a long time. A reliable service for storing files is Amazon’s Simple Storage Service (S3). It was Amazon’s first available web service, launched in March 2006, and it has been a cornerstone AWS service ever since. In this chapter, we’ll explore S3 in more detail. We’ll look at features such as versioning, storage classes, and transfer acceleration. And you’ll continue to work on 24-Hour Video by adding new storage-related features.

8.1. Smarter storage

You’ve been working with S3 since chapter 3 but haven’t had a proper, in-depth look at it. Apart from basic file storage, S3 has many great features. These include versioning, hosting of static websites, storage classes, cross-region replication, and requester-pays buckets. Let’s explore some of the more compelling features of S3 and see how they’re useful.

More information on S3

If you ever need a thorough guide to S3, Amazon’s documentation is a great reference. Check out https://docs.aws.amazon.com/AmazonS3/latest/dev/Welcome.html for good walkthroughs and examples of how S3 works.

8.1.1. Versioning

8.2. Secure upload

8.3. Restricting access to files

8.4. Exercises

8.5. Summary