How to specify nodeJS runtime through AWS CLI lambda update command?

0

In the lambda create command you can specify nodeJS runtime environment parameter for lambda, but in the update command you will get an error if you specify runtime parameter. As a result, you have to manually update nodeJS runtime in the UI. What would be the best solution if I prefer to not manually update in UI?

1 Resposta
0

Hi,

You could use the update-function-configuration command to update the runtime, by specifying the identifier of the function’s runtime from a list of possible values, on the runtime parameter.

However, as explained on the following Knowledge Center article, you can't change directly the configuration or function code in a published Lambda function version; you must first change the current unpublished function version ($LATEST) using the update-function-configuration command and then publish a new function version using the publish-version command.

I hope this helps you.

profile picture
ESPECIALISTA
respondido há um ano
profile pictureAWS
ESPECIALISTA
avaliado há um ano
profile picture
ESPECIALISTA
avaliado há um ano

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