|
| 1 | +--- |
| 2 | +# |
| 3 | +# This is the canonical configuration for the `README.md` |
| 4 | +# Run `make readme` to rebuild the `README.md` |
| 5 | +# |
| 6 | + |
| 7 | +# Name of this project |
| 8 | +name: terraform-aws-lambda-elasticsearch-cleanup |
| 9 | + |
| 10 | +# Logo for this project |
| 11 | +#logo: docs/logo.png |
| 12 | + |
| 13 | +# License of this project |
| 14 | +license: "APACHE2" |
| 15 | + |
| 16 | +# Canonical GitHub repo |
| 17 | +github_repo: cloudposse/terraform-aws-lambda-elasticsearch-cleanup |
| 18 | + |
| 19 | +# Badges to display |
| 20 | +badges: |
| 21 | + - name: "Build Status" |
| 22 | + image: "https://travis-ci.org/cloudposse/terraform-aws-lambda-elasticsearch-cleanup.svg?branch=master" |
| 23 | + url: "https://travis-ci.org/cloudposse/terraform-aws-lambda-elasticsearch-cleanup" |
| 24 | + - name: "Latest Release" |
| 25 | + image: "https://img.shields.io/github/release/cloudposse/terraform-aws-lambda-elasticsearch-cleanup.svg" |
| 26 | + url: "https://github.com/cloudposse/terraform-aws-lambda-elasticsearch-cleanup/releases/latest" |
| 27 | + - name: "Slack Community" |
| 28 | + image: "https://slack.cloudposse.com/badge.svg" |
| 29 | + url: "https://slack.cloudposse.com" |
| 30 | + |
| 31 | +related: |
| 32 | + - name: "terraform-aws-vpc" |
| 33 | + description: "Terraform Module that defines a VPC with public/private subnets across multiple AZs with Internet Gateways" |
| 34 | + url: "https://github.com/cloudposse/terraform-aws-vpc" |
| 35 | + - name: "terraform-aws-dynamic-subnets" |
| 36 | + description: "Terraform module for dynamic subnets provisioning." |
| 37 | + url: "https://github.com/cloudposse/terraform-aws-dynamic-subnets" |
| 38 | + - name: "terraform-aws-elasticsearch" |
| 39 | + description: "Terraform module for AWS Elasticsearch provisioning." |
| 40 | + url: "https://github.com/cloudposse/terraform-aws-elasticsearch" |
| 41 | + |
| 42 | +# Short description of this project |
| 43 | +description: |- |
| 44 | + Terraform module to provision a scheduled Lambda function which will |
| 45 | + delete old Elasticsearch indexes using [SigV4Auth](https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) authentication. The |
| 46 | + lambda function can optionally send output to an SNS topic if the |
| 47 | + topic ARN is given. This module was largely inspired by |
| 48 | + [aws-lambda-es-cleanup](https://github.com/cloudreach/aws-lambda-es-cleanup) |
| 49 | +
|
| 50 | +# How to use this project |
| 51 | +usage: |- |
| 52 | + ```hcl |
| 53 | + module "elasticsearch_cleanup" { |
| 54 | + source = "../" |
| 55 | + es_endpoint = "${module.elasticsearch.domain_endpoint}" |
| 56 | + es_domain_arn = "${module.elasticsearch.domain_arn}" |
| 57 | + es_security_group_id = "${module.elasticsearch.security_group_id}" |
| 58 | + vpc_id = "${module.vpc.vpc_id}" |
| 59 | + namespace = "example" |
| 60 | + stage = "dev" |
| 61 | + schedule = "rate(5 minutes)" |
| 62 | + } |
| 63 | + ``` |
| 64 | +
|
| 65 | +include: |
| 66 | + - "docs/targets.md" |
| 67 | + - "docs/terraform.md" |
| 68 | + |
| 69 | +# Contributors to this project |
| 70 | +contributors: |
| 71 | + - name: "Josh Myers" |
| 72 | + github: "joshmyers" |
0 commit comments