# How to create S3 bucket using ES 5.1 s3 repository plugin

**URL:** <https://discuss.elastic.co/t/how-to-create-s3-bucket-using-es-5-1-s3-repository-plugin/173018>\
**Category:** Elasticsearch\
**Created:** [March 19, 2019, 4:50pm UTC](https://discuss.elastic.co/t/how-to-create-s3-bucket-using-es-5-1-s3-repository-plugin/173018 "2019-03-19T16:50:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saikettewary](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@saikettewary](https://discuss.elastic.co/u/saikettewary)\
**Post date:** [March 19, 2019, 4:50pm UTC](https://discuss.elastic.co/t/how-to-create-s3-bucket-using-es-5-1-s3-repository-plugin/173018/1 "2019-03-19T16:50:41Z")

</div>

Hi,  
I am exploring the path to use ES 5.1 s3 repository plugin for snapshot & restore. I can get this working when i have a per-existing s3 bucket in AWS.

Trying to understand how ES can create a bucket if it doesn't already exists before creating a repository/snapshot

I can see here - [https://www.elastic.co/guide/en/elasticsearch/plugins/5.1/repository-s3-repository.html](https://www.elastic.co/guide/en/elasticsearch/plugins/5.1/repository-s3-repository.html)

it mentions - "If you want elasticsearch to create the bucket instead, you can add the permission to create a specific bucket like this:" , but i couldn't find any instruction on how to create the bucket from ES.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/0/2012e12262cc1b5381e4e9960b56b6b1552f1407.png)

Thanks  
Saiket

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 16, 2019, 4:50pm UTC](https://discuss.elastic.co/t/how-to-create-s3-bucket-using-es-5-1-s3-repository-plugin/173018/2 "2019-04-16T16:50:46Z")

</div>

Closed on April 16, 2019, 4:50pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
