How can I trigger lambda container to override my CMD in cloudformation?

0

I created a lambda function using the Cloudformation service, I added the overridden CMD to the Lambda resource definition in the lambda function scope using ImageConfig. After running Cloudformation to create the stack, I tried to test the function but it showed the error: "Cannot find module ...." But after I clicked the edit button in the Image configuration field, saved it without any editing, and waited for lambda to update, The function worked. I don't want to do these steps automatically for hundreds of functions. Is it a bug or am I doing it wrong?

feita há 7 meses55 visualizações
Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas