To update a Lambda function follow the below steps.
1. Get the Lambda function zip files ready.
2. Find and open the Lambda services on the AWS console.
3. Choose the Lambda function from the list of functions that you have to update.
4. Go to the Code source section under the Code tab. Click on Upload from and choose ‘.zip file’.
6. Browse and choose the corresponding zip file.
7. Click Save to update the code.