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 réponse
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
EXPERT
répondu il y a un an
profile pictureAWS
EXPERT
vérifié il y a un an
profile picture
EXPERT
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions

Contenus pertinents