简体   繁体   English

如何在 AWS Lambda 中执行 Shellscript。 我想将我的脚本作为无服务器代码

[英]How to execute Shellscript in AWS Lambda . I would like to my script as serverless code

How to execute Shellscript in AWS Lambda.如何在 AWS Lambda 中执行 Shellscript。 I would like to my script as serverless code我想将我的脚本作为无服务器代码

How to execute Shellscript in AWS Lambda.如何在 AWS Lambda 中执行 Shellscript。 I would like to my script as serverless code我想将我的脚本作为无服务器代码

AWS Lambda doesn't support shell scripts out of the box. AWS Lambda 不支持开箱即用的 shell 脚本。 However, you can create a custom runtime to enable this.但是,您可以创建自定义运行时来启用它。 In addition to the handler function, you will need to create a bootstrap that will invoke the runtime.除了处理程序函数之外,您还需要创建一个将调用运行时的引导程序。

This tutorial from the AWS Developer Guide should help - https://docs.aws.amazon.com/lambda/latest/dg/runtimes-walkthrough.html AWS 开发人员指南中的本教程应该有所帮助 - https://docs.aws.amazon.com/lambda/latest/dg/runtimes-walkthrough.html

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

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