Upload image in local directory to s3 using serverless

Can the changes that must be done to a serverless.yml file be suggested so that any image can be uploaded to s3 from a local directory.