AWS S3 Pre-Signed URL extension please

Advertisement

nunnsby
Joined:
Posts:
1
Location:
Munich

AWS S3 Pre-Signed URL extension please

The Generate URL extension is great. Are you able to either extend it or add a second extension for AWS S3 Pre-Signed URL please. The standard URL assumes you allow public access to a bucket, which is a massive security breach. Having the ability to quickly create a Pre-Signed URL allows for the Bucket to be locked down, yet still allow creation of sharable links.

I do not know PowerShell, but see the extensions all make use of it, and having looked online the code to do this would be:
$bucket = "my-bucket"
$key = "my-object"
$expires = (Get-Date).AddHours(1)
$url = Get-S3PreSignedURL -BucketName $bucket -Key $key -Expires $expires
Write-Host "Pre-Signed AWS S3 URL: $url"
To be able to enter a customer number for AddHours would be great to allow you customise how long it is available for.

Thanks in advance for your great product. :)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,603
Location:
Prague, Czechia

Re: AWS S3 Pre-Signed URL extension please

Thanks for your suggestion. I'll look into it. Though I assume that to be able to use Get-S3PreSignedURL, one would have to have AWS SDK installed and configured.

Reply with quote

martin
Site Admin
martin avatar

Re: AWS S3 Pre-Signed URL extension please

And it is the case indeed.

While I've found this idea for an extension useful initially, now it seems to me that its use would be quite limited.

Reply with quote

Advertisement

You can post new topics in this forum