1
votes

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?

1

1 Answers

9
votes

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.