# Unable to store .security index in s3 bucket

**URL:** <https://discuss.elastic.co/t/unable-to-store-security-index-in-s3-bucket/283734>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [September 9, 2021, 5:56am UTC](https://discuss.elastic.co/t/unable-to-store-security-index-in-s3-bucket/283734 "2021-09-09T05:56:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaidesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vaidesh/32/94346_2.png) [@Vaidesh](https://discuss.elastic.co/u/Vaidesh)\
**Post date:** [September 9, 2021, 5:56am UTC](https://discuss.elastic.co/t/unable-to-store-security-index-in-s3-bucket/283734/1 "2021-09-09T05:56:55Z")

</div>

While taking back up of .security-7 index to S3 bucket getting below error, kindly help.

```auto
"failures" : [
      {
        "index" : ".security-7",
        "index_uuid" : ".security-7",
        "shard_id" : 0,
        "reason" : "IndexShardSnapshotFailedException[com.amazonaws.services.s3.model.AmazonS3Exception: The operation is not valid for the object's storage class (Service: Amazon S3; Status Code: 403; Error Code: InvalidObjectState; Request ID: CZ1CNGMJJYWJ2071; S3 Extended Request ID: QAfaJ45aNMpeSc5H2SP7hnUlMey/Wf18sxMlv1tmFVEAl817TPJ5DfqlfodUFiIzwFIvtMJxU04=), S3 Extended Request ID: QAfaJ45aNMpeSc5H2SP7hnUlMey/Wf18sxMlv1tmFVEAl817TPJ5DfqlfodUFiIzwFIvtMJxU04=]; nested: AmazonS3Exception[The operation is not valid for the object's storage class (Service: Amazon S3; Status Code: 403; Error Code: InvalidObjectState; Request ID: CZ1CNGMJJYWJ2071; S3 Extended Request ID: QAfaJ45aNMpeSc5H2SP7hnUlMey/Wf18sxMlv1tmFVEAl817TPJ5DfqlfodUFiIzwFIvtMJxU04=)]; ",
        "node_id" : "i0vz-l4RTjSfeshS1RfYxQ",
        "status" : "INTERNAL_SERVER_ERROR"
      }
    ],
    "shards" : {
      "total" : 1,
      "failed" : 1,
      "successful" : 0
    }

```

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [October 4, 2021, 7:24am UTC](https://discuss.elastic.co/t/unable-to-store-security-index-in-s3-bucket/283734/2 "2021-10-04T07:24:26Z")

</div>

This looks like a AWS S3 error to me.

What storage class are you attempting to use?

---

<div class="post-metadata">

**Author:** ![Vaidesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vaidesh/32/94346_2.png) [@Vaidesh](https://discuss.elastic.co/u/Vaidesh)\
**Post date:** [October 5, 2021, 8:00am UTC](https://discuss.elastic.co/t/unable-to-store-security-index-in-s3-bucket/283734/3 "2021-10-05T08:00:42Z")

</div>

Am using standard s3 storage class only

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [October 5, 2021, 11:22am UTC](https://discuss.elastic.co/t/unable-to-store-security-index-in-s3-bucket/283734/4 "2021-10-05T11:22:32Z")

</div>

That should work, what is your repository and snapshot policy configuration?

---

<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:** [November 2, 2021, 11:22am UTC](https://discuss.elastic.co/t/unable-to-store-security-index-in-s3-bucket/283734/5 "2021-11-02T11:22:44Z")

</div>

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