How To: S3 Presigned URL (1 Min) | Share Private S3 Objects

Опубликовано: 05 Апрель 2023
на канале: Gokce DB
144
2

In this tutorial, you'll learn how to share private S3 objects using presigned URL.
--
An Amazon S3 presigned URL is a time-limited URL that allows you to grant temporary access to objects in your S3 bucket. With a presigned URL, you can provide temporary access to your S3 object to someone who doesn't have permission to access it.

The presigned URL is generated by an AWS user who has permission to access the object. The URL contains a signature that verifies the user's identity and specifies the length of time the URL will be valid. When the user accesses the URL, they can download or upload the object as specified in the URL, but only for the duration of the validity period.

Presigned URLs are useful in a variety of situations, such as sharing private content with third-party vendors or enabling temporary access to an object for a limited period.

To generate a presigned URL, you can use the AWS SDK or the AWS Management Console. You specify the S3 bucket and object key, the HTTP method (such as GET or PUT), and the expiration time for the URL. The resulting URL can then be shared with others for temporary access to the specified S3 object
_
Video Transcript:
_
Hi guys, this is Abhi from Gokcedb. In this video, you're going to learn how to share private S3 objects using a pre-signed URL in AWS. Let's get into it.

Let's start by navigating to the S3 service and then go inside a test bucket. Here I'm going to upload a file called not.txt which contains one that says this is a test note. Hit the upload button then select the file and go to the actions drop-down.

Select share with a pre-signed URL then enter a time interval in minutes or hours. I'm going to enter a time interval of one minute which means this pre-signed URL will expire after 60 seconds. Create a pre-signed URL then click on the copy button.

Let's paste this URL into a brand new browser session and you should be able to see the contents of your note.txt file. However, watch what happens when I hit the refresh button after a minute. This time I get an access denied error because our pre-signed URL has expired.

There you have it. If you have any questions, leave them in the comments section below. Don't forget to like, subscribe, and turn on your notification bell. Until next time.


Смотрите видео How To: S3 Presigned URL (1 Min) | Share Private S3 Objects онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Gokce DB 05 Апрель 2023. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 144 раз и оно понравилось 2 посетителям.