如何在 AWS S3 中发送恢复对象事件的通知? [英] How to send notification for Restore object events in AWS S3?

查看:35
本文介绍了如何在 AWS S3 中发送恢复对象事件的通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从 AWS Glacier 下载存档文件.所以我需要首先将对象从冰川恢复到 s3.由于我使用的是加急"模式,完成恢复过程需要几分钟.然后只有我可以下载文件.

I am downloading archive files from AWS glacier. So i need to restore the objects from glacier to s3 first. Since i am using "expedited" mode, it's taking minutes to complete the restoration process. Then only i can download the file.

我开发了一个反应应用程序来做这些事情.有一个下载"按钮将执行恢复过程.然后我需要根据恢复对象事件"的完成情况向用户(不是特定的人)发送电子邮件通知.

I have developed a react app to do this stuff. There is a "download" button which will perform restoration process. Then i need to send an email notification to the users (not a particular person) based on the completion of "Restore object events".

我指的是 SNS 通知,它说明了将通知发送到特定电子邮件的方式.但就我而言,我需要将邮件发送给点击下载"的人.按钮.

I refer to SNS notification and it says the way to send the notification to a particular email. But in my case i need to sen the mail to the one who clicked the "download" button.

我该如何解决这个问题?仅供参考:- 我已经在使用 lambda 函数作为后端.

How can i approach this? FYI :- I'm already using a lambda function as backend.

请提出一个想法.提前致谢

Please suggest an idea. Thanks in advance

推荐答案

我认为你应该考虑使用 AWS SES 向个人用户发送自定义消息并更好地控制电子邮件内容和设置.这样,当冰川中的一个对象被恢复时,这个事实的通知会触发一个 lambda 函数(你似乎已经有这样的函数),它反过来将使用 SES 发送电子邮件给您的用户.

I think that you should consider using AWS SES to send customized messages to individual users and to have more control over the email content and settings. This way, when, an object from glacier gets restored, the notification of this fact triggers a lambda function (you seem to already have such a function), which in turn will use SES to send out an email to your user.

这篇关于如何在 AWS S3 中发送恢复对象事件的通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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