# Delete indices from AWS managed services(ElasticSearch)

**URL:** <https://discuss.elastic.co/t/delete-indices-from-aws-managed-services-elasticsearch/128275>\
**Category:** Elasticsearch\
**Created:** [April 17, 2018, 2:32am UTC](https://discuss.elastic.co/t/delete-indices-from-aws-managed-services-elasticsearch/128275 "2018-04-17T02:32:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ardel](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@ardel](https://discuss.elastic.co/u/ardel)\
**Post date:** [April 17, 2018, 2:32am UTC](https://discuss.elastic.co/t/delete-indices-from-aws-managed-services-elasticsearch/128275/1 "2018-04-17T02:32:45Z")

</div>

Hello

I am knew to "Curator". Is there anyone here who know if we can use AWS managed services when deleting elastic search services.

Please take note that I installed "Curator" in an ec2 Instance and the elasticsearch is a managed services. Meaning, there's no specefic IP that can be used.

Thank you in Advance !

---

<div class="post-metadata">

**Author:** ![ardel](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@ardel](https://discuss.elastic.co/u/ardel)\
**Post date:** [April 17, 2018, 3:54am UTC](https://discuss.elastic.co/t/delete-indices-from-aws-managed-services-elasticsearch/128275/2 "2018-04-17T03:54:35Z")

</div>

I tried to execute in curator which is installed in EC2 instance and the elastic search is a managed service and I got this:

[root@ip-10-182-50-254 bin]# /usr/local/bin/curator --config '/home/ec2-user/Ardel/CONFIG.yml' --dry-run '/home/ec2-user/Ardel/delete\_indices.yml'  
2018-04-17 03:43:48,236 INFO Preparing Action ID: 1, "delete\_indices"  
2018-04-17 03:43:48,260 INFO Trying Action ID: 1, "delete\_indices": Delete indices older than 45 days (based on index name), for elastic- prefixed indices. Ignore the error if the filter does not result in an actionable list of indices (ignore\_empty\_list) and exit cleanly.  
2018-04-17 03:43:57,082 INFO Skipping action "delete\_indices" due to empty list: \<class 'curator.exceptions.NoIndices'\>  
2018-04-17 03:43:57,083 INFO Action ID: 1, "delete\_indices" completed.  
2018-04-17 03:43:57,083 INFO Job completed.

Does this means that the curator got connected to the AWS ElasticSearch?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [April 17, 2018, 11:58am UTC](https://discuss.elastic.co/t/delete-indices-from-aws-managed-services-elasticsearch/128275/3 "2018-04-17T11:58:29Z")

</div>

> [@ardel](#):
>
> Does this means that the curator got connected to the AWS Elasticsearch?

That I cannot say. What I can say is that it is connecting to _an_ Elasticsearch service, and the filters found no matching indices to act on, so you got a `NoIndices` exception. If you run it again with `loglevel: DEBUG` you'll see a lot more detail which will better answer that question.

---

<div class="post-metadata">

**Author:** ![ardel](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@ardel](https://discuss.elastic.co/u/ardel)\
**Post date:** [April 17, 2018, 11:56pm UTC](https://discuss.elastic.co/t/delete-indices-from-aws-managed-services-elasticsearch/128275/4 "2018-04-17T23:56:38Z")

</div>

Hello Aaron,

I already got it working. Thanks for answer anyways.

BTW. How can I show all the indices in AWS ES using elastic-curator?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [April 18, 2018, 12:15am UTC](https://discuss.elastic.co/t/delete-indices-from-aws-managed-services-elasticsearch/128275/5 "2018-04-18T00:15:40Z")

</div>

> [@ardel](#):
>
> How can I show all the indices in AWS ES using elastic-curator?

If you already have a client configuration, you can run:

```auto
curator_cli --config /path/to/config show_indices

```

---

<div class="post-metadata">

**Author:** ![ardel](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@ardel](https://discuss.elastic.co/u/ardel)\
**Post date:** [April 18, 2018, 8:15am UTC](https://discuss.elastic.co/t/delete-indices-from-aws-managed-services-elasticsearch/128275/6 "2018-04-18T08:15:57Z")

</div>

Thanks Aaron

---

<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 16, 2018, 8:16am UTC](https://discuss.elastic.co/t/delete-indices-from-aws-managed-services-elasticsearch/128275/7 "2018-05-16T08:16:07Z")

</div>

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