[英]How do I set up alerts on AWS instances to let me know when my data analysis is complete?
I've got a sizable data set that I'd like to analyze in the cloud. 我有一个相当大的数据集,我想在云中进行分析。 Since server costs are high for the top tier AWS instances, I'd like to receive an alert — preferably by email — when the computation is complete.
由于顶级AWS实例的服务器成本很高,因此我希望在计算完成后收到警报(最好通过电子邮件)。
I'm relatively new to working with AWS, so was wondering what the best way to do so may be. 我对使用AWS相对陌生,因此想知道这样做的最佳方法是什么。 Appreciate the input!
感谢输入!
You can send a message via Amazon SNS. 您可以通过Amazon SNS发送消息。 You should be able to run shell commands from your Notebook.
您应该能够从Notebook中运行Shell命令。
To send an SMS message, use: 要发送短信,请使用:
aws sns publish --phone-number +61123456789 --message 'Finished!'
To notify via other means: 通过其他方式通知:
Then, to send a message to the topic, which will then be forwarded to all subscribers: 然后,向主题发送消息,然后将其转发给所有订阅者:
aws sns publish --topic-arn XXX --subject 'Finished!' --message XXX
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.