# Module for collecting S3 bucket facts.

**URL:** <https://forum.ansible.com/t/module-for-collecting-s3-bucket-facts/26102>\
**Category:** Ansible Developer\
**Created:** [November 22, 2017, 6:42am UTC](https://forum.ansible.com/t/module-for-collecting-s3-bucket-facts/26102 "2017-11-22T06:42:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul.paigavan](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@rahul.paigavan](https://forum.ansible.com/u/rahul.paigavan)\
**Post date:** [November 22, 2017, 6:42am UTC](https://forum.ansible.com/t/module-for-collecting-s3-bucket-facts/26102/1 "2017-11-22T06:42:03Z")

</div>

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.
