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 次