我的 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 轮换问题