跳至内容

我的 Lambda 轮换函数调用了第二个函数来轮换 Secrets Manager 密钥,但失败了。为什么第二个 Lambda 函数失败了?

1 分钟阅读
0

我的 AWS Lambda 函数未能为另一个函数轮换 AWS Secrets Manager 密钥。

简短描述

如果轮换函数调用第二个 Lambda 函数来轮换密钥,轮换将失败并显示以下类似错误消息:

Pending secret version EXAMPLE1-90ab-cdef-fedc-ba987EXAMPLE for Secret MySecret was not created by Lambda MyRotationFunction. Remove the AWSPENDING staging label and restart rotation.

解决方法

要解决此问题,请确保用于轮换密钥的代码包含在单个 Lambda 函数中,该函数设置为密钥的轮换函数。

相关信息

解决 AWS Secrets Manager 轮换问题

AWS 官方已更新 3 年前