DEV Community

Cover image for AN S3 BUCKET CREATION ON AWS AND HOW TO PRESIGNED URL TO IT
Victoria Oludamilola Oyewole
Victoria Oludamilola Oyewole

Posted on

AN S3 BUCKET CREATION ON AWS AND HOW TO PRESIGNED URL TO IT

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:

  1. Storage of Any Data Type: You can store files such as images, videos, documents, backups, and application data.
  2. Global Namespace: Each bucket name must be globally unique across all AWS regions.
  3. Scalable and Durable: AWS S3 is designed for 99.999999999% (11 nines) of durability.
  4. Secure: Supports features like encryption, access control lists (ACLs), and bucket policies to control who can access your data.
  5. Versioning: You can enable versioning to maintain multiple versions of an object.
  6. Lifecycle Management: Rules can be set to transition data to cheaper storage classes or delete them after a specified period.
  7. Storage Classes: Various storage classes like S3 Standard, S3 Glacier, and others optimize cost and performance based on access frequency.
  8. 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.

Image description

-** Add a name** that is globally unique in lower case format and then click on *create Bucket *

Image description

  • On the page of Bucket Creation, add Bucket name.

Image description

  • 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

Image description

  • Disable the Bucket Versioning

Image description

  • Leave other annotated area as default then Create.

Image description

  • The environment of the S3 Bucket after creation.

Image description

How to Upload an Image in it?

  • Click on the Bucket created to upload an image in it. After the inserting the object, upload.

Image description

  • The object insertion to be uploaded.

Image description

Image description

Image description

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.

Image description

Image description

  • Copy the Presigned URL to browser to view for 2 minutes, and it can also be downloaded or be opened.

Image description

Top comments (1)

Collapse
 
dsaga profile image
Dusan Petkovic

Maybe an article on how to use the bucket to upload files from the server instance would be useful