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?

posta 7 mesi fa56 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande