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 Risposta
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
ESPERTO
con risposta un anno fa
profile pictureAWS
ESPERTO
verificato un anno fa
profile picture
ESPERTO
verificato un anno fa

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