# NEST: S3 Repository server\_side\_encryption not an option

**URL:** <https://discuss.elastic.co/t/nest-s3-repository-server-side-encryption-not-an-option/123774>\
**Category:** Elasticsearch\
**Created:** [March 13, 2018, 4:21pm UTC](https://discuss.elastic.co/t/nest-s3-repository-server-side-encryption-not-an-option/123774 "2018-03-13T16:21:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisFord](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisford/32/13201_2.png) [@ChrisFord](https://discuss.elastic.co/u/ChrisFord)\
**Post date:** [March 13, 2018, 4:21pm UTC](https://discuss.elastic.co/t/nest-s3-repository-server-side-encryption-not-an-option/123774/1 "2018-03-13T16:21:59Z")

</div>

Hi

I am using NEST 6.0.1 for a solution I am building, one of the requirements is to create snapshots which we will store on S3. When creating the repository for the snapshots I was getting 403 errors "caused\_by": {  
"type": "amazon\_s3\_exception",  
"reason": "amazon\_s3\_exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: B4CFC5F7F4B420E8; S3 Extended Request ID: ZUDlDfKCWV3ocmApBdnnRvJhIrjv86x17A4txCaqA+Bod6dQrZ873OnVtyLK2o2Tgx17g3baYqo=)"  
}"

So I decided to test out the creation using dev tools on Kibana, by pasting in the request call and got the same error (sample shown below)

PUT \_snapshot/my\_s3\_repository  
{  
"type": "s3",  
"settings": {  
"bucket": ""  
}  
}

Looking into it further I noticed we have a s3 policy for the data to be encrypted so manually changed the request to

PUT \_snapshot/my\_s3\_repository  
{  
"type": "s3",  
"settings": {  
"bucket": "",  
"server\_side\_encryption" : "true"  
}  
}

and everything works fine, so great I thought, however there doesnt actually seem to be anyway of passing "server\_side\_encryption" in NEST. Has anyone else noticed this/know why this would be missing, and whether my only option is to use the LowLevel client to do this.

Cheers

Chris

---

<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 10, 2018, 4:22pm UTC](https://discuss.elastic.co/t/nest-s3-repository-server-side-encryption-not-an-option/123774/2 "2018-04-10T16:22:05Z")

</div>

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