How to update AWS lambda docker container version?

Question:

My intension is to deploy a new container version to my AWS lambda.
Lambda now offers docker run time and I have successfully updated the lambda docker container from the web console but not able to do so from the cli.
There is an update-function

https://docs.aws.amazon.com/cli/latest/reference/lambda/update-function-configuration.html

But it does not show how I can update the container image version.
Is it possible to do update the container version via the aws cli?

Answer:

You need to use update-function-code, not update-function-configuration.

Use the --image-uri option, and note that Lambda references image versions via their SHA, not the tag.

Leave a Reply