gpt4 book ai didi

amazon-web-services - 降级到以前版本的 AWS Lambda

转载 作者:行者123 更新时间:2023-12-03 18:14:30 25 4
gpt4 key购买 nike

使用 Amazon Lambda 函数我使用 AWS Lambda 功能提供的版本控制功能。每次当我将新版本的工件部署到 AWS 时,我都会创建新版本的函数并发布它(使用屏幕截图中的弹出窗口)。

enter image description here

但是如何发布我的函数的任何先前版本(例如,当我需要回滚上次发布时)?

最佳答案

您应该为每个新版本提供一个别名。

来自 AWS Documentation

In contrast, instead of specifying the function ARN, suppose that you specify an alias ARN in the notification configuration (for example, PROD alias ARN). As you promote new versions of your Lambda function into production, you only need to update the PROD alias to point to the latest stable version. You don't need to update the notification configuration in Amazon S3.

The same applies when you need to roll back to a previous version of your Lambda function. In this scenario, you just update the PROD alias to point to a different function version. There is no need to update event source mappings.

关于amazon-web-services - 降级到以前版本的 AWS Lambda,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50061194/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com