DEV Community

Cover image for How to create a pre-assigned URL for an S3 bucket in AWS.
Ikechukwu Kelechi Alexander
Ikechukwu Kelechi Alexander

Posted on

How to create a pre-assigned URL for an S3 bucket in AWS.

What is S3 and its Uses in AWS?
Get started with Amazon S3. Amazon Simple Storage Service (S3) is an object storage service that provides industry-leading scalability, data availability, security, and performance. Amazon S3 allows you to store and retrieve any quantity of data at any time and from any location.
Amazon S3 provides management features so that you can optimise, organise, and configure access to your data to meet your specific business, organisational, and compliance requirements.

Why is S3 useful?
S3 allows for infinite scalability, with no formal restriction on the quantity of data or objects that can be stored in an S3 bucket. The maximum size for objects kept in a bucket is 5 TB.

Please follow the instructions listed below.

Step 1: Create an S3 bucket.
Step 2: upload an image.
Step 3: Generate a pre-assigned URL

  • Log in to the AWS Management Console.
  • Type S3 on the search bar page.

S3

  • Create Bucket Cr8

On General Configuration:

  • Bucket type: choose General Purpose
  • Give your bucket a universally accepted or available name.
  • Object Ownership: Choose ACLs disabled p3

Block public access settings for this bucket because the uploaded file will be timed.
p4

Although tags are optional, it is necessary for cost management or analysis.

  • Default encryption is ok.
    p5

  • Bucket Created Successfully
    p6

  • Confirm the bucket is created.
    p7

  • Let's add a file, then upload
    p9

  • File uploaded!
    p10

  • Let's open the uploaded file in a browser.
    p11

  • Browser view of our file
    p12

Let's preassign a URL for our file.

  • Check or select the uploaded file.
  • Open the Action tab and select Share with a presigned URL. p13

Time intervals can be hourly or in minutes.

  • Let's use 2 minutes; please note that after 2 minutes the file will not be visible to viewers.
  • Click on Create presigned URL p14

So try to view the file again to confirm it yourself.

This article is simple; it just shows us how to Pre-assign URL for an S3 Bucket in AWS!

I hope this helps!

Top comments (0)