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?

asked 6 months ago51 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions