AWS SAM Template for Lambda that prunes AES clusters.
This Lambda function will delete indices in your Elasticsearch cluster older than 7 days.
It also has a commented out sample for how to use the High level REST Client to do additional operations.
- Configure your AWS credentials and region.
- Set an environment variable named
S3_BUCKET
. This will be used for uploading your lambda function artifacts. - Simply run
bash bpd.sh
tob
uild,p
ackage andd
eploy.