Modify AWS Lambda function inside CloudFormation stack
I've launched this stack and needed to update it's Lamdba function, I've made some amendments and hit deploy, a new version of function was saved, however Lambda application still refers to the first version of function, I've tried to update stack, deploy from local environment and nothing worked, the only way was to re-create the whole stack with a link to modified functions in yml template.
Solution 1:
I haven't tested it yet, but it seems that the source of the problem was in S3 event notification settings, the 'Destination' section contains an ARN link which points to the 1st version of the Lambda function. So navigate to S3 bucket name - Properties tab - Event notifications section - Edit notification - Destination section - Lambda function. Hope this helps.