What is an S3 Bucket?
An S3 bucket in AWS (Amazon Web Services) is a cloud-based storage container within the Amazon Simple Storage Service (S3). S3 buckets are used to store, organize, and manage data as objects. Objects in an S3 bucket include the data itself, along with metadata and a unique identifier.
Key Features of S3 Buckets:
- Storage of Any Data Type: You can store files such as images, videos, documents, backups, and application data.
- Global Namespace: Each bucket name must be globally unique across all AWS regions.
- Scalable and Durable: AWS S3 is designed for 99.999999999% (11 nines) of durability.
- Secure: Supports features like encryption, access control lists (ACLs), and bucket policies to control who can access your data.
- Versioning: You can enable versioning to maintain multiple versions of an object.
- Lifecycle Management: Rules can be set to transition data to cheaper storage classes or delete them after a specified period.
- Storage Classes: Various storage classes like S3 Standard, S3 Glacier, and others optimize cost and performance based on access frequency.
- Integration with Other AWS Services: S3 integrates seamlessly with services like AWS Lambda, EC2, and CloudFront.
How It Works:
- Buckets: These are the containers where objects (files) are stored.
- Objects: Each object consists of data and metadata.
- Keys: Unique identifiers for each object in a bucket.
- Regions: Buckets are created in specific AWS regions to optimize performance and comply with data residency requirements.
For example:
- You could create a bucket called
my-photos-bucket
and store images in it. - Access control can be set to allow only authorized users or systems to retrieve the data.
AWS S3 is widely used for web applications, content delivery, backups, and data lakes due to its simplicity, reliability, and scalability.
The Steps of Creation:
- Log into the AWS account and search for S3 Bucket at the search bar icon, click on Bucket.
-** Add a name** that is globally unique in lower case format and then click on *create Bucket *
- On the page of Bucket Creation, add Bucket name.
- Still on the page, on the Object Ownership section, Block Public Access settings for this bucket leave as default the area which says Block all public access
- Disable the Bucket Versioning
- Leave other annotated area as default then Create.
- The environment of the S3 Bucket after creation.
How to Upload an Image in it?
- Click on the Bucket created to upload an image in it. After the inserting the object, upload.
- The object insertion to be uploaded.
How to share with Presigned URL for any image uploaded? This explains how to view any image uploaded for some minutes by copying the URL into a browser to view.
- Copy the Presigned URL to browser to view for 2 minutes, and it can also be downloaded or be opened.
Top comments (1)
Maybe an article on how to use the bucket to upload files from the server instance would be useful