Module for collecting S3 bucket facts.

Hi,

I looked out for a module which would give me the facts for an existing bucket.
My goal was to get the policy of a existing bucket.
Didn’t found any. So I developed one of my own.

Example:

Collect s3 bucket facts.

  • s3_bucket_facts:
    name: mys3bucket
    region: us-east-1
    register: my_s3_bucket_facts

It collects below facts for the given bucket.
bucket name,
versioning status,
requester pays status,
current policy,
current tags.

I would like to contribute this module into Ansible.
Please let me know if any modifications/improvements needed in the module.
Please let me know how I can contribute this module into Ansible and if there is any procedure for it.