Automatically delete older indices on AWS Elasticsearch.
Automatically delete older indics on AWS Elasticsearch.
$ pip install -r requirements.txt -t ./
$ zip -r artifact.zip ./*
Example
{
"endpoint":"https://search-test-es-wrr22fsafafwe2.ap-northeast-1.es.amazonaws.com",
"region": "ap-northeast-1",
"older_than": "1",
"exclude": ["testapi", "testaudit"]
},
{
"endpoint":"https://searchwewqewqewqewqewqefwe2.ap-northeast-1.es.amazonaws.com",
"region": "us-west-1",
"older_than": "1",
"exclude": [""]
}