DEV Community

Cover image for Creating a S3 Bucket on AWS and Presigned URLs
Adedapo
Adedapo

Posted on

Creating a S3 Bucket on AWS and Presigned URLs

AWS BUCKET S3

Amazon S3 (Simple Storage Service) is a scalable, durable, and secure cloud storage service offered by AWS (Amazon Web Services). It allows users to store and retrieve any amount of data, from anywhere in the world, at any time. Data in S3 is organized into buckets, which serve as containers for objects such as files, images, videos, or backups.

Key features of Amazon S3 include:

  1. High scalability for managing large datasets.
  2. Durability and availability through replication across multiple data centers.
  3. Fine-grained access control using permissions and policies.
  4. Integration with other AWS services like EC2, Lambda, and CloudFront.

Presigned URL

A Presigned URL in Amazon S3 is a secure, temporary link that grants time-limited access to a specific object in an S3 bucket without requiring additional authentication. Presigned URLs are typically used to share objects with users who do not have direct access to the S3 bucket or to enable temporary, programmatic access.

Key Features of a Presigned URL:

  1. Expiration Time: The URL is valid only for a specified duration, ensuring temporary access.
  2. Restricted Permissions: The URL can grant limited actions like GET (download), PUT (upload), or POST (multipart upload).
  3. No Additional Authentication Needed: Recipients of the URL do not need AWS credentials to access the object.

Steps to Create a S3 Bucket
Step 1
Login to your AWS account, on the search bar, search for and click S3 bucket
s3

Step 2
click on create Bucket
bucket

Step 3
Give the Bucket a unique name
bucket name

Step 4
Ensure to block all public access, leave other parameter as default and scroll down to click create.
create

We have successfully created an AWS S3 Bucket, Now let's upload a file into our Bucket.
To upload a file into the Bucket do the following

  1. Open the bucket you created
    open

  2. Click on Upload (any of the marked upload)
    upload

  3. Click on add file to upload a file
    add file
    After uploading
    after
    NB: Don't forget to click upload which is at the bottom of the page.

Creating a Folder

Step 1
On your Bucket, click on Create Folder
create folder

Step 2
Give the Folder a name
folder name

Step 3
Click create
create f
NB: you can create folder for tables, videos e.t.c.

Creating a Presigned URL

Step 1
On your bucket page, open your file
click f

Step 2
On you object page, click on object actions
oa

Step 3
Click on Share with presigned URL
URL

Step 4
Input the number of minutes or hours you want the Presigned URL to last and click create
minutes
pre

Step 5
Copy and paste the URL on a new browser Tab
copy
final

Conclusion
Following the steps in this article we have successfully create an AWS Bucket S3 with a Presigned URL.

Top comments (0)