AWS::Lambda::Function Code - AWS CloudFormation

Changes to a deployment package in Amazon S3 or a container image in ECR are not detected automatically during stack updates. To update the function code, change the object key or version in the template.