S3
Now that we understand AWS regions, we should setup some infrastructure. We're going to start with S3 because it's simple and cheap. It's also one of the most fundamental and widely-used services in AWS.
In the next part we'll setup a static website on S3, but first, what is S3?
What is S3?
S3 (Simple Storage Service) is AWS's object storage service. Think of it as an infinitely large hard drive in the cloud where you an store your data.
Buckets and Objects
It's not a traditional file system with folders and directories, it's a flat storage model of buckets and objects. You put bytes in and you get bytes out.
- Buckets are the containers for objects.
- Objects are the files/bytes you store.
You an actually think of it as a bucket full of objects, where each object has a unique key (name) within a bucket.
This flat structure makes S3 incredibly scalable. You can store virtually unlimited objects without performance degradation.
S3 also stores multiple coppies of objects in seperate data centres for redundancy.
What can you do with S3?
S3 Pricing
Pricing varies by region and storage class, but S3 is pretty cheap for most use cases. And free for what we'll be using it for.
Summary
S3 is for storing objects. It's a good default storage choice for static assets and there's a lot we can do with it.
For now, let's keep it simple and use S3 to host a static website.