# how to set permissions on an S3 bucket

**URL:** <https://forum.ansible.com/t/how-to-set-permissions-on-an-s3-bucket/27634>\
**Category:** Ansible Project\
**Created:** [May 26, 2018, 2:17am UTC](https://forum.ansible.com/t/how-to-set-permissions-on-an-s3-bucket/27634 "2018-05-26T02:17:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [May 26, 2018, 2:17am UTC](https://forum.ansible.com/t/how-to-set-permissions-on-an-s3-bucket/27634/1 "2018-05-26T02:17:24Z")

</div>

I can’t figure out how to set permissions on an S3 bucket after creating it.

The s3 module will create a bucket (mode: create), but if I run it twice, the second time it says that the bucket already exists and does nothing, so the permissions don’t change. And the s3 module can’t set versioning on the bucket.

aws\_s3 will also create a bucket (state: present), and set it to versioning, but doesn’t have a way to set the permissions.

I’m starting to think that the only way to set the permissions is to create a policy and apply it using aws\_s3, which is way more complicated that just making the bucket “public-read”.

Regards, K.
