分享一个 devops 小工具,用 lambda+python 实现的,自动清理 aws elasticsearch,清理规则 tag 在集群上即可,很方便
https://github.com/harmy/lambda-curator
Lambda curator is a lambda function deletes old AWS ElasticSearch indices using curator.
All you need to do is tagging existing ES cluster.
It's as easy as launching a CloudFormation (or
Terraform)
stack and setting the prefix=retention_period
tag on existing ES cluster.
All the required infrastructure and configuration will be created automatically,
so you can get started as fast as possible.
A single installation can handle all enabled clusters across all available AWS regions, but can be restricted to fewer regions if desired.
1
laxenade 2018-06-03 00:55:13 +08:00 via Android
那有没有自动清理 lambda 和 cfm 的(手动滑稽
|