Create a playbook to copy local directory to s3 bucket

I have some directory which i want to copy on s3 bucket using aws s3 module ansible i have tried this

aws_s3:
aws_secret_key: “{{ AWS_SECRET_KEY }}”
aws_access_key: “{{ AWS_ACCESS_KEY }}”
bucket: “{{ BUCKET }}”
object: /project/
src: “{{ role_path }}/files/server-upgrade/”
mode: put

but i am getting error

fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Local object for PUT does not exist”}

Hello,
aws_s3 module doesn't upload an entire directory, but only single files.

Luca