amazon-elasticsearch,Amazon Cloudformation,Aws Elasticsearch,amazon Elasticsearch" /> amazon-elasticsearch,Amazon Cloudformation,Aws Elasticsearch,amazon Elasticsearch" />

Amazon cloudformation 如何将保留策略添加到从CloudFormation创建的AWS ElasticSearch?

Amazon cloudformation 如何将保留策略添加到从CloudFormation创建的AWS ElasticSearch?,amazon-cloudformation,aws-elasticsearch,amazon-elasticsearch,Amazon Cloudformation,Aws Elasticsearch,amazon Elasticsearch,我使用fluentd将不同环境的日志发送到AWS ElasticSearch。AWS ES是使用CloudFormation堆栈创建的。如何做以下两件事: 添加保留策略以将所有日志保留30天 根据环境添加保留策略,例如,环境x保留60天,环境y保留7天 我在CloudFormation堆栈中找不到任何可添加保留策略的内容。到目前为止,CloudFormation中没有此类功能。可以做的是使用Lambda和schedule来应用这些保留规则。 包含使用lambda和curator库的示例

我使用fluentd将不同环境的日志发送到AWS ElasticSearch。AWS ES是使用CloudFormation堆栈创建的。如何做以下两件事:

  • 添加保留策略以将所有日志保留30天
  • 根据环境添加保留策略,例如,环境x保留60天,环境y保留7天

  • 我在CloudFormation堆栈中找不到任何可添加保留策略的内容。

    到目前为止,CloudFormation中没有此类功能。可以做的是使用Lambda和schedule来应用这些保留规则。 包含使用lambda和curator库的示例