es-cleanup

giuliocalzolari/es-cleanup/aws

Terraform Module HCL AWS

AWS Elasticsearch Lambda Curator

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

AWS Lambda Elasticsearch Index Cleanup Overview This AWS Lambda function allows you to delete the old Elasticsearch indexes using SigV4Auth authentication. You configure the AWS Elasticsearch Access Policy authorizing the Lambda Role or the AWS Account number instead of using the IP address whitelist. Diagram Terraform version Module compatible with Terraform 0.12 Module Input Variables Providers | Name | Version | |------|---------| | archive | n/a | | aws | n/a | | http | n/a | | local | n/a | | null | n/a | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:-----:| | delete\_after | Numbers of days to preserve | number | 15 | no | | es\_endpoint | AWS ES FQDN e.g. search-es-demo-xxxxxxxxxx.eu-west-1.es.amazonaws.com | string | n/a | yes | |

Inputs (13)
NameTypeDescriptionDefault
es_endpointstringAWS ES FQDN e.g. search-es-demo-xxxxxxxxxx.eu-west-1.es.amazonaws.com required
suffixstringA suffix for the resource names, this helps create multiple instances of this st""
schedulestringCloudwatch Cron Schedule expression for running the cleanup function"cron(0 3 * * ? *)"
index_formatstringCombined with 'index' varible is used to evaluate the index age"%Y.%m.%d"
python_versionstringLambda Python version to be used"3.6"
subnet_idslist(string)Subnet IDs you want to deploy the lambda in. Only fill this in if you want to de[]
security_group_idslist(string)Addiational Security Ids To add.[]
tagsmapTags to apply{ "Name": "es-cleanup" }
prefixstringA prefix for the resource names, this helps create multiple instances of this st""
indexstringIndex/indices to process using regex, except the one matching `skip_index` regex".*"
skip_indexstringIndex/indices to skip".kibana*"
delete_afternumberNumbers of days to preserve15
timeoutnumberMaximum lambda execution time300
Resources (10)
aws_cloudwatch_event_ruleaws_cloudwatch_event_targetaws_cloudwatch_log_groupaws_iam_policyaws_iam_roleaws_iam_role_policy_attachmentaws_lambda_functionaws_lambda_permissionaws_security_grouplocal_file
Details
FrameworkTerraform Module
LanguageHCL
Version1.14.0
Cloud AWS
★ Stars6
Forks14
Total downloads11.5k
Inputs13
Resources10
LicenseNOASSERTION
Namespacegiuliocalzolari
Updated