lambda-elasticsearch-cleanup

dntsk/lambda-elasticsearch-cleanup/aws

Terraform Module HCL AWS

Terraform module with AWS Lambda to cleanup ElasticSearch

Install
module "lambda-elasticsearch-cleanup" {
source = "dntsk/lambda-elasticsearch-cleanup/aws"
version = "0.1.5"
}
plain text: /constructs/tfmod-dntsk-lambda-elasticsearch-cleanup-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

![Logo](https://dntsk.dev) ![Maintained](https://dntsk.dev/) ![MIT license](https://opensource.org/licenses/MIT) ![Terraform version](https://github.com/hashicorp/terraform/releases) ![GitHub tag](https://github.com/dntsk/terraform-aws-lambda-elasticsearch-cleanup/tags/) Terraform module with AWS Lambda to cleanup ES Terraform module which creates and deploy AWS Lambda to cleanup ElasticSearch indexes. Supported Terraform versions * Terraform 0.12. Pin version to ~> v0.1 Usage ``hcl module "lambda_cleanup_elasticsearch" { source = "dntsk/lambda-elasticsearch-cleanup/aws" name = "es-cleanup" host = aws_elasticsearch_domain.elk.endpoint index_prefix = "filebeat" keep_days = 180 vpc_security_group_ids = [module.elk_sg.this_security_group_id] vpc_subnet_ids = module.vpc.private_subnets } `` La

Inputs (6)
NameTypeDescriptionDefault
hoststringElasticSearch hostname required
index_prefixstringElasticSearch indices prefix to cleanup required
namestringName of Lambda function required
vpc_subnet_idslist(string)Subnets ids to deploy to VPC[]
keep_daysstringHow many indexes to keep365
vpc_security_group_idslist(string)Security groups ids to deploy to VPC[]
Resources (3)
aws_cloudwatch_event_ruleaws_cloudwatch_event_targetaws_lambda_permission
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.5
Cloud AWS
★ Stars0
Forks1
Total downloads6.7k
Inputs6
Resources3
LicenseMIT
Namespacedntsk
Updated