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?

已提问 7 个月前55 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则