v0.10.0
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 matchesindex_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.