Get Hands-on with Amazon EKS - Workshop Event Series
Whether you're taking your first steps with Kubernetes or you're an experienced practitioner looking to sharpen your skills, our Amazon EKS workshop series delivers practical, real-world experience that moves you forward. Learn directly from AWS solutions architects and EKS specialists through hands-on sessions designed to build your confidence with Kubernetes. Register now and start building with Amazon EKS!
Por que minha função de alternância do Lambda falhou ao chamar uma segunda função para alternar um segredo do Secrets Manager?
1 minuto de leitura
0
Minha função do AWS Lambda falhou ao alternar um segredo do AWS Secrets Manager ao chamar uma segunda função do Lambda.
Resolução
Se uma função de alternância chamar uma segunda função do Lambda para alternar o segredo, a alternância apresentará a seguinte mensagem de erro:
"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."
Para resolver esse problema, verifique se o código para alternar seu segredo está contido em uma única função do Lambda definida como a função de alternância do segredo.