I have deployed my lambda with Terraform. It is pointing successfully to ECR and the image runs with the expected ENTRYPOINT. However, every time I push new code to ECR, I have to go to the web console, click "Deploy New Image" else the lambda runs the old image.
Also, I tried using :latest
as the tag, but that didn't seem to help. I was able to force a new image by uploading :2
, :3
and then manually pointing the lambda at those. If there is a way to use the :latest
tag that would be a nice convenience.
I'd be happier to do this with bash or boto, but no obvious way to do so from my reading of the docs.
This similar question was shut down because lambdas used to not be backed by docker images.