es-cleanup
giuliocalzolari/es-cleanup/aws
AWS Elasticsearch Lambda Curator
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 | |
| Name | Type | Description | Default |
|---|---|---|---|
| es_endpoint | string | AWS ES FQDN e.g. search-es-demo-xxxxxxxxxx.eu-west-1.es.amazonaws.com | required |
| suffix | string | A suffix for the resource names, this helps create multiple instances of this st | "" |
| schedule | string | Cloudwatch Cron Schedule expression for running the cleanup function | "cron(0 3 * * ? *)" |
| index_format | string | Combined with 'index' varible is used to evaluate the index age | "%Y.%m.%d" |
| python_version | string | Lambda Python version to be used | "3.6" |
| subnet_ids | list(string) | Subnet IDs you want to deploy the lambda in. Only fill this in if you want to de | [] |
| security_group_ids | list(string) | Addiational Security Ids To add. | [] |
| tags | map | Tags to apply | {
"Name": "es-cleanup"
} |
| prefix | string | A prefix for the resource names, this helps create multiple instances of this st | "" |
| index | string | Index/indices to process using regex, except the one matching `skip_index` regex | ".*" |
| skip_index | string | Index/indices to skip | ".kibana*" |
| delete_after | number | Numbers of days to preserve | 15 |
| timeout | number | Maximum lambda execution time | 300 |
Terraform module for building and deploying Next.js apps to AWS. Supports SSR (L
Terraform module for provisioning an EKS cluster
Terraform module to generate well-formed JSON documents (container definitions)
Terraform module that provision an S3 bucket to store the terraform.tfstate file