V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
harmy
V2EX  ›  分享创造

分享一个自动清理 aws elasticsearch 的小工具

  •  1
     
  •   harmy ·
    harmy · 2018-06-02 09:38:33 +08:00 · 2226 次点击
    这是一个创建于 2148 天前的主题,其中的信息可能已经有所发展或是发生改变。

    分享一个 devops 小工具,用 lambda+python 实现的,自动清理 aws elasticsearch,清理规则 tag 在集群上即可,很方便

    https://github.com/harmy/lambda-curator

    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.

    Getting Started

    Installation

    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.

    Launch

    A single installation can handle all enabled clusters across all available AWS regions, but can be restricted to fewer regions if desired.

    2 条回复    2018-06-03 19:12:22 +08:00
    laxenade
        1
    laxenade  
       2018-06-03 00:55:13 +08:00 via Android
    那有没有自动清理 lambda 和 cfm 的(手动滑稽
    harmy
        2
    harmy  
    OP
       2018-06-03 19:12:22 +08:00
    @laxenade 你说的这两个,貌似都不适合自动清理啊:)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5226 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:40 · PVG 15:40 · LAX 00:40 · JFK 03:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.