AWS Builder Center: Learn, Build and Connect with builders in the AWS community
AWS Builder Center is the official home for builders on AWS. Share and read what others are working on, follow people who inspire you, explore training and workshops, and find tools to support what you're building.
Warum ist meine Lambda-Rotationsfunktion fehlgeschlagen, als sie eine zweite Funktion zum Rotieren eines Secrets Manager-Geheimnisses aufrief?
Lesedauer: 1 Minute
0
Meine AWS Lambda-Funktion konnte ein AWS Secrets Manager-Geheimnis nicht rotieren, als sie eine zweite Lambda-Funktion aufrief.
Lösung
Wenn eine Rotationsfunktion eine zweite Lambda-Funktion aufruft, um das Geheimnis zu rotieren, schlägt die Rotation fehl und es wird eine Meldung ähnlich der folgenden angezeigt:
„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.“
Um dieses Problem zu lösen, stelle sicher, dass der Code zur Rotation deines Geheimnisses in einer einzigen Lambda-Funktion enthalten ist, die als Rotationsfunktion für das Geheimnis festgelegt ist.