您可以克隆AWS Lambda吗? [英] Can you clone an AWS lambda?

查看:82
本文介绍了您可以克隆AWS Lambda吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

克隆不同的环境.暂存/QA/PROD/DEV等.

Cloning for different environments. Staging/QA/PROD/DEV etc.

有没有一种简便的方法可以克隆我的lambda,给它起一个不同的名字并从那里调整配置?

Is there a quick an easy way to clone my lambdas, give a different name, and adjust configurations from there?

推荐答案

您将需要在新帐户中重新创建Lambda函数.转到lambda函数,单击操作"并导出函数.

You will need to recreate your Lambda Functions in the new account. Go to lambda function click on Action and export your function .

下载部署程序包(您的代码和库)和/或AWS 定义功能的无服务器应用程序模型(SAM)文件, 其事件的来源和权限.

Download a deployment package (your code and libraries), and/or an AWS Serverless Application Model (SAM) file that defines your function, its events sources, and permissions.

您或共享此文件的其他人可以使用AWS CloudFormation 部署和管理类似的无服务器应用程序.了解更多 关于如何使用AWS CloudFormation部署无服务器应用程序.

You or others who you share this file with can use AWS CloudFormation to deploy and manage a similar serverless application. Learn more about how to deploy a serverless application with AWS CloudFormation.

这篇关于您可以克隆AWS Lambda吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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