[英]Generate presignedURL with Lambda when upload new object to S3 bucket
i searched everywhere but i cannot find a script which allows lambda to generate a presigned url when i upload a new object to an s3 bucket.我到处搜索,但找不到允许 lambda 在我将新的 object 上传到 s3 存储桶时生成预签名的 url 的脚本。 Thanks!
谢谢!
I don't think you'll find an already-made solution online, but the following workflow should work:我认为您不会在网上找到现成的解决方案,但以下工作流程应该可行:
Make sure your Lambda has all the correct rights, and pay attention to the fact S3 pre-signed URL generated with SDK have a expiration date of 7 days max .确保您的 Lambda 拥有所有正确的权利,并注意使用 SDK 生成的 S3 预签名 URL 的有效期最长为 7 天。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.