# AWS KMS encryption and LZ compression for snapshot

**URL:** <https://discuss.elastic.co/t/aws-kms-encryption-and-lz-compression-for-snapshot/81605>\
**Category:** Elasticsearch\
**Created:** [April 7, 2017, 12:21pm UTC](https://discuss.elastic.co/t/aws-kms-encryption-and-lz-compression-for-snapshot/81605 "2017-04-07T12:21:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ultimate.duwal](https://avatars.discourse-cdn.com/v4/letter/u/2acd7d/32.png) [@ultimate.duwal](https://discuss.elastic.co/u/ultimate.duwal)\
**Post date:** [April 7, 2017, 12:21pm UTC](https://discuss.elastic.co/t/aws-kms-encryption-and-lz-compression-for-snapshot/81605/1 "2017-04-07T12:21:13Z")

</div>

Hello,

I have been working with snapshots for elasticsearch snapshot in ES 2.4.4 using \_snapshot for type "s3".

I successfully uploaded the data to s3 to the desired path with required credentials for specific index.  
Now I am trying to use LZ compression which is supposedly the optimal algorithm for compressing data and using AWS KMS encryption ([this](https://aws.amazon.com/blogs/security/how-to-use-the-new-aws-encryption-sdk-to-simplify-data-encryption-and-improve-application-availability/)) which is being used in my automation script for backing up data from ES cluster to S3.

Is it possible to do the encryption and compression through \_snapshot API?

---

<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:** [May 5, 2017, 12:29pm UTC](https://discuss.elastic.co/t/aws-kms-encryption-and-lz-compression-for-snapshot/81605/2 "2017-05-05T12:29:08Z")

</div>

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