Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update AWS lambda docker container version?

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?

like image 444
Subtubes Avatar asked May 11 '26 09:05

Subtubes


1 Answers

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.

like image 139
Parsifal Avatar answered May 13 '26 02:05

Parsifal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!