AWS S3 presigned URLs allow access even for users without AWS credentials or permissions.
A presigned URL is a temporarily valid URL that is issued for a valid period of time.
目次
Retrieve files with AWS S3 presigned URLs.
The implementation is simple.
Set the Key in bucketParams to the name of the file in S3. The signed URL is issued by passing it to GetObjectCommand to create an instance and setting it to the getSignedUrl function.
The argument of getSignedUrl takes expiresIn. Here the number of seconds of the URL expiry time is set.
It is important to read the documentation carefully for AWS relations. Also, the infrastructure side is a more difficult image as it requires a lot of different knowledge.