S3文件夹的预签名URL

huangapple go评论74阅读模式
英文:

Presigned URL for S3 folder

问题

I am trying to create a resigned url for a s3 folder containing more than 1000 parquet files. The intension is to share these files to a resource external to the company.

Bucket location is in "US East (N. Virginia) us-east-1"

I have created a predesigned url with the following command from the cloud shell : "aws s3 presign s3://bucket-name/large-folder/ --expires-in 604800 --region us-east-1"

When I try to use the URL on the browser, I see that it is downloading a single zero byte file with the name of "large-folder".

How can I download all files in the folder which I want to share ?

PS: If I try to do the same exercise at a file level, it is working fine.

英文:

I am trying to create a resigned url for a s3 folder containing more than 1000 parquet files. The intension is to share these files to a resource external to the company.

Bucket location is in "US East (N. Virginia) us-east-1"

I have created a predesigned url with the following command from the cloud shell : "aws s3 presign s3://bucket-name/large-folder/ --expires-in 604800 --region us-east-1"

When I try to use the URL on the browser, I see that it is downloading a single zero byte file with the name of "large-folder".

How can I download all files in the folder which I want to share ?

PS: If I try to do the same exercise at a file level, it is working fine.

答案1

得分: 1

根据AWS文档,链接

> 预签名URL使用安全凭据授予下载对象的时间限制权限。

如果您想在有限的时间内提供对S3存储桶中所有文件的访问权限,可以与第三方建立临时STS凭据。

英文:

As per the AWS documentation, link

> A presigned URL uses security credentials to grant time-limited permission to download objects.

If you want to provide access to all the files in the s3 bucket for a limited period, you can setup a temporary STS credentials with the third party.

huangapple
  • 本文由 发表于 2023年6月13日 01:00:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/76458819.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定