S3预签名网址-检查是否使用了网址? [英] S3 pre-signed url - check if url was used?

查看:162
本文介绍了S3预签名网址-检查是否使用了网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用S3预签名网址直接从客户端上传图片。
仅当我确定使用了URL并上传了新图像时,我才希望将消息推送到SQS队列。

I'm using S3 pre-signed url for uploading images directly from client-side. I would like to be able to push a message to SQS queue only when I'm sure that the url was used and a new image was uploaded.

给定一个预签名的URL,我如何验证它是否被使用?

Given a pre-signed url, how can I validate if it was used?

推荐答案

您真的需要知道何时使用预签名吗?签名的URL已被使用?还是只要有新对象上传到S3存储桶就可以向SQS发送新消息?由于您将上传限制为使用预先签名的URL不能达到您的目标?

Do you really need to know when a pre-signed URL has been used? Or can you just send a new message to SQS whenever a new object is uploaded to your S3 bucket? Since you are restricting uploads to using pre-signed URLs wouldn't that accomplish your goal?

S3内置支持向SQS,SNS或Lambda发送通知每当创建新对象时。您可以在这里阅读更多有关此内容的信息: http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations

S3 has built-in support for sending a notification to SQS, SNS or Lambda whenever a new object is created. You can read more about that here: http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations

这篇关于S3预签名网址-检查是否使用了网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆