Let Us Generate a Pre-Signed-URL

Sabiha Ali
3 min readJan 15, 2022

--

The devil is in the details. Let us slay the devil by getting into the small details!!!
This is for all the newbies to the aws cloud. Understanding the little things will definitely help your journey. Hope you enjoy it !!!

But what is this pre-signed-URL?

Say, you have an object uploaded in your private S3 bucket . You want an unauthorized user to be able to access it. You want to generate a URL for this object, valid only for some time say 30 minutes and share it to that user. Then this URL will be called a Pre-signed-URL. The URL will expire and no longer work when it reaches its expiration time. The capabilities of the URL are limited by the permissions of the user(in this case — your permissions) who created the pre-signed-URL.

Let us have some fun

You can use the AWS Management Console to generate a pre-signed-URL for an object

Pick one of your childhood photographs from your laptop files and upload it in your private s3 bucket.( when you create a new bucket it is by default private unless you choose otherwise.)

Now we are going to generate a pre-signed-URL for this object and share it with your childhood buddy.

· In the Objects list, select the object that you want to create a pre-signed-URL for

· On the Actions menu, choose Create pre-signed-URL

· Specify how long you want the pre-signed-URL to be valid

· Choose Share with a pre-signed-URL

· When a confirmation appears, you will see a button to copy the pre-signed-URL to your clipboard.

Send this URL to your friend and have a fun time remembering your childhood together.

Happy learning guys !!!

About Envelope Encryption

By Sabiha Ali, Cloud Engineer, ScaleCapacity

--

--