简体   繁体   English

如何使用Lambda触发S3存储桶中的应用程序?

[英]How to trigger application inside S3 bucket using Lambda?

I have an application written in java which is used for creating and sending mail to users. 我有一个用java编写的应用程序,用于创建和发送邮件给用户。 I have zipped this code and uploaded this code to S3 bucket. 我已压缩此代码并将此代码上传到S3存储桶。

How can I trigger this application with the help of Lambda? 如何在Lambda的帮助下触发此应用程序?

I have created a Lambda function and attached the path to Lambda. 我创建了一个Lambda函数并将路径附加到Lambda。

If you have created the Lambda function and pointed the function to your code, then Lambda will call the handler function within your code. 如果您已创建Lambda函数并将函数指向您的代码,则Lambda将在您的代码中调用handler函数。

Lambda does not "run your application". Lambda不会“运行您的应用程序”。 Rather, it calls the handler, passing in information about how the function was invoked. 相反,它调用处理程序,传递有关如何调用函数的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM