I have a S3 bucket and we are using as code repository to store our Lambda code, which is then read by lambda.
The S3 bucket is version so that every time we upload the script again( after altering the code) there is a new version of the zip file created for the existing file.
Now I want Lambda to automatically pickup the latest version of the zip file automatically instead of me altering it manually in the CloudFormation templet and running it OR attaching it manually to the Lambda every time.