Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
Perché la mia funzione di rotazione Lambda non è riuscita a ruotare un segreto di Secrets Manager quando ha chiamato una seconda funzione?
1 minuti di lettura
0
La mia funzione AWS Lambda non è riuscita a ruotare un segreto di AWS Secrets Manager quando ha chiamato una seconda funzione Lambda.
Risoluzione
Se una funzione di rotazione chiama una seconda funzione Lambda per ruotare il segreto, la rotazione non riesce con un messaggio simile al seguente:
"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."
Per risolvere il problema, assicurati che il codice per ruotare il segreto sia contenuto in una singola funzione Lambda impostata come funzione di rotazione del segreto.