我创建了一个秘密并将其更新为具有 lambda 旋转功能
我的秘密看起来像
aws secretsmanager list-secret-version-ids --secret-id envir/username
{
"Versions": [
{
"VersionId": "90179cd3-daa1-48e4-9fe5-dde0a4cf22e4",
"VersionStages": [
"AWSPREVIOUS"
],
"LastAccessedDate": 1524528000.0,
"CreatedDate": 1524568488.358
},
{
"VersionId": "60576823-5d98-4360-af53-7e1f909b88d0",
"VersionStages": [
"AWSCURRENT"
],
"LastAccessedDate": 1524528000.0,
"CreatedDate": 1524568827.466
}
],
"ARN": "arn:aws:secretsmanager:eu-west-1:8282828282828:secret:username-YdgbPA",
"Name": "envir/username"
}
当我尝试旋转它时,我得到了这个错误
An error occurred (InvalidRequestException) when calling the RotateSecret operation: A previous rotation isn’t complete. That rotation will be reattempted.
如果我毫无问题地触发 lambda 函数,我可以毫无问题地轮换秘密。
有人有什么想法吗?
相关链接:
- https://forums.aws.amazon.com/thread.jspa?threadID=280093&tstart=0这不适用于我,因为我没有秘密
AWSPENDING
状态。