英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论