Choose Author from scratch as the method
For Basic information, enter the name of the Lambda function as WatermarkS3Upload
For Runtime, choose the version of your Python environment.
Make sure you got the runtime version the same as your environment, otherwise the function may not work.
Next, expand Change default execution role, select Use an existing role
From the dropdown, select the IAM Role we have created in the previous step LambdaWatermarkS3Role
We now can move on by clicking Create function
Successfully created function
Next up, we’re going to create the trigger for our lambda function