1

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.

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

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
johni
  • 5,342
  • 6
  • 42
  • 70

1 Answers1

5

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 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

Mark B
  • 183,023
  • 24
  • 297
  • 295