Skip to content

Releases: cloudposse/terraform-aws-lambda-elasticsearch-cleanup

v0.12.0

06 Feb 01:06
a567810
Compare
Choose a tag to compare
context.tf updated to v0.24.1, minimum required Terraform version bumped to 0.13.0 when needed, readme updated @maximmi (#30)

what

  • update context.tf to v0.24.1
  • minimum required Terraform version bumped to 0.13.0
  • readme updated, Bridgecrew compliance badges added

why

  • It allows for setting the letter case of tag names and labels, back compatibility with context v0.22.0 and below
  • we have dropped support for Terraform 0.12
  • To be able see and fix the recommendations from Bridgecrew so we can position our modules as standards compliant

Supersedes and closes #31
Supersedes and closes #24

v0.11.0

04 Feb 07:03
7d71374
Compare
Choose a tag to compare
Terraform 0.14 upgrade @maximmi (#29)

what

  • Upgrade to support Terraform 0.14 and bring up to current Cloud Posse standard

why

  • Support Terraform 0.14

v0.10.2

13 Oct 03:40
dd39b07
Compare
Choose a tag to compare

🐛 Bug Fixes

Do not create data resources when disabled @Nuru (#27)

what

  • Do not create data resources when disabled

why

  • Minimize impact of disabled module

v0.10.1

09 Oct 01:56
ea43d1a
Compare
Choose a tag to compare

🐛 Bug Fixes

Workaround TF null default bug @Nuru (#26)

what

  • Default git_ref to "" instead of null
  • Lambda artifact generation for PRs now uses PR SHA

why

  • Passing null is supposed to make the module use the default value, but in this case it does not
  • Terraform code expects to find artifact with same SHA as Terraform module

references

v0.10.0

08 Oct 17:47
e1075a6
Compare
Choose a tag to compare
Change index selectors, update to current standards @Nuru (#25)

what

  • Update providers to support AWS 3.x and generally convert ~> to >=
  • BREAKING CHANGE: Rebase es-cleanup.py on cloudreach v0.14
  • Update test dependencies, use Go modules, ensure test resources include random component
  • Update to context.tf
  • Update GitHub actions

why

  • AWS 3.x has new features we need. ~> inhibits testing new releases.
  • Now index selection is regex minus regex, much better than previous comma separated list. Other bug fixes.
  • Test with current modules using current testing practices
  • Keep in sync with other modules

migration

Prior versions had index which was a comma-separated list of index names or the special name "all" to indicate all but Kibana indexes, and index_regex which was a regular expression for parsing index name and date parts. There was no mechanism for specifying a list of indexes to exclude. This version drops those input variables and instead provides index_re and skip_index_re, both of which are regular expressions. You probably want to anchor your regexes to the beginning of the index name by starting with ^.

  • If the full index name, including the date part, matches skip_index_re, then the index will be skipped (never deleted).
  • If the index name without the trailing -date part matches index_re, then it will be cleaned up according to the date part.
If you previously had Now use
index = "all" Default values for index_re and skip_index_re
index = "a,xb,c0" index_re = "^(a|xb|c0)" and skip_index_re = "^$"
index_regex = "(ipat)-(dpat)" index_re = "ipat" and be sure index_format is correct for your date format

Keep in mind that fundamentally, this module expects indexes to be in the format of name-date so it will not work properly if the regexes end up selecting an index that does not end with -date. To avoid edge cases, it is wise not to include dashes in your index name or date format.

0.9.0: Update Version Pinning for Terraform to support 0.13

11 Aug 13:50
328febe
Compare
Choose a tag to compare

What

  1. Update Version Pinning for Terraform to support 0.13

Why

  1. This is a relatively minor update that the CloudPosse module already likely supports.
  2. This allows module consumers to not individually update our Terraform module to support Terraform 0.13.

0.8.0 Matching index with regex pattern #20

30 Jun 17:12
21624d9
Compare
Choose a tag to compare

what

  • Added matching index and splitting it with regex pattern.

why

  • Fluentd send logs to ES and creates indexes with pattern logstash-%Y.%m.%d where it's possible for other applications to create different index patterns - for example Kinesis Firehose will create logstash-%Y-%m-%d. Such pattern triggers deletion of all indexes by this lambda.

0.7.0: build lambda (#19)

10 Jun 00:13
57ed9d6
Compare
Choose a tag to compare
* build lambda

* upload with public readability;

* test download

* fix action

0.6.0 Update `terraform-external-module-artifact` version

05 May 02:55
15f12eb
Compare
Choose a tag to compare

what

  • Update terraform-external-module-artifact version

why

  • Add enabled variable to the module
  • When the terraform-external-module-artifact module is used in this module with enabled variable set to false, terraform-external-module-artifact needs to be disabled as well (otherwise it throws errors that it can't download the artifact)

references

0.5.0 Convert to TF 0.12. Add tests. Add Codefresh test pipeline. Add `slash-command-dispatch` GitHub Actions workflow

30 Apr 16:00
8f17047
Compare
Choose a tag to compare

what

  • Port module to Terraform 0.12
  • Pin all providers
  • Add example for testing
  • Add bats and terratest for the example
  • Add Codefresh badge to point to the test pipeline in terraform-modules project
  • Update README
  • Add slash-command-dispatch GitHub Actions workflow

why

  • Module currently does not work with 0.12. Much easier syntax
  • Better regression control
  • Automatically test the example on every commit and pull request
  • Provision resources on AWS in the test account and check the outputs for the correct values
  • terraform-modules project contains pipelines for all terraform modules
  • slash-command-dispatch GitHub Actions workflow: In a repo with the GitHub actions workflow present, when a PR is opened, we can comment on the PR with commands /build-readme and /terraform-fmt to rebuild README and format terraform code and push the changes back to the PR repo