Changelog¶
1.4.3 (2022-05-24)¶
Bump c7n to release 0.9.16
Bump c7n-mailer to release 0.6.15
Update sphinx dependencies to 4.x
1.4.2 (2022-05-20)¶
Bump c7n to release 0.9.16
Bump c7n-mailer to release 0.6.15
1.4.1 (2022-02-09)¶
Fixes #67 - Add
check_deprecations="yes"for Validate stage
1.4.0 (2022-01-20)¶
Bump c7n to release 0.9.14
Bump c7n-mailer to release 0.6.13
Updated dependencies for c7n and c7n-mailer * Remove version contstrains for
docutils* Pinmistune==0.8.4for docsReplace TravisCI with Github Actions
1.3.1 (2021-06-14)¶
- Fixing dryrun-diff bug to show changes to inherited policies.
Remove git diff comparison; Now we compare results of full dryrun to last live-run
1.3.0 (2021-01-13)¶
Fixes #56 - Bump c7n version from 0.9.4 to 0.9.10 and c7n-mailer from 0.6.3 to 0.6.9.
Bump relax boto3 and botocore dependencies to work with c7n and new pip resolver.
Add testing under Python 3.9; switch default Python version for tox/TravisCI to 3.9.
Bump base Docker image to latest
python:3.9.1-alpine3.12Implement Notify-Only Option for Policies.
Fix failing test.
1.2.4 (2020-07-29)¶
Fixes #53
Add
function_prefixoption tomanheim-c7n-tools.ymlto allow passing this option to mugc. Default it to the current/defaultcustodian-.Have
MugcStepuse configuredfunction_prefixinstead of hard-codedcustodian-.New policy sanity check
_check_policy_function_prefix()- fail if a policy’sfunction-prefixdoesn’t match the configured (manheim-c7n-tools.yml)function_prefix.
Switch from deprecated pep8 / pytest-pep8 to pycodestyle / pytest-pycodestyle.
1.2.3 (2020-07-10)¶
Update policygen to add enabled/disabled status to generated policy documentation
1.2.2 (2020-07-08)¶
Bump c7n to release 0.9.4
Bump c7n-mailer to release 0.6.3
Updated dependencies for c7n and c7n-mailer
1.2.1 (2020-06-25)¶
1.2.0 (2020-06-22)¶
Add a new
disableoption for rules to disable rules from parent rulesetsFix bug in rule overriding where rules with the same names were merged rather than the later rule completely overriding the older one
1.1.0 (2020-06-10)¶
Add documentation on how to run
c7n-mailer-replay.Add
-n/--never-match-reoption toerrorscanendpoint, to allow specifying a regex for log messages to never consider a failure/error.Bump c7n from b62af99 (master after 0.9.1 plus some merged PRs) to the upstream 0.9.3 release. This pulls in changes from the upstream 0.9.2.0 and 0.9.3.0 releases.
Bump c7n-mailer from b62af99 (master after 0.6.0 plus some merged PRs) to the upstream 0.6.2 release. This pulls in changes from the upstream 0.9.2.0 and 0.9.3.0 releases.
1.0.0 (2020-05-26)¶
Merge PR #34 to add an optional full HTML report to the
dryrun-diffstep/entrypoint, triggered by the presence of areporting-template/report.j2template file. Many thanks to @JuubiSnake of FundingCircle for the contribution.In recognition of this project being used extensively in our organization, bump version to 1.0.0.
0.10.3 (2020-05-12)¶
Bump c7n and c7n-mailer installed version to b62af99 in order to pull in PR #5751, fix for #5750 c7n-mailer critical bug.
Add unit test to ensure that the
c7n-mailerLambda package archive can be successfully generated.Add
pip freezeto the end of Docker image tests, to keep a record of the packages installed in Docker in the build logs.
0.10.2 (2020-05-11)¶
Install c7n and c7n-mailer directly from github, instead of PyPI, to pull in unreleased-but-merged b7178be / PR #5708 which fixes Issue #5707 for missing
jsonpointerandjsonpatchdependencies.Remove
jsonpointerfrom requirements.Add
libffi-devandopenssl-devbuild dependencies to Dockerfile.Add
.dockerignorefile to make Docker builds more efficient.
0.10.1 (2020-05-08)¶
Add
jsonpointerto requirements.
0.10.0 (2020-05-06)¶
Important: In following upstream c7n’s 0.9.1.0 release, this release drops support for Python 2.7. A modern version of Python 3 is now required.
Upgrade c7n-mailer requirement from 0.5.7 to 0.6.0.
Upgrade
c7nrequirement from 0.8.46.0 to 0.9.1.0.Switch TravisCI tests from py36 and py37 to py37 and py38.
Update vendored-in
mugcwith latest upstream version, for compatibility with above changes.
0.9.2 (2020-04-20)¶
Add
m2rpackage as dependency, for Sphinx docs builds.
0.9.1 (2020-04-20)¶
If the
policy_source_pathsconfiguration option is specified, have policygen include a column showing which source(s) a policy came from inpolicies.rst.Fix bug in
dryrun-diffstep where it would fail on an initial, empty S3 bucket.
0.9.0 (2020-04-08)¶
Previously, manheim-c7n-tools set c7n-mailer’s
templates_foldersconfiguration option to/manheim_c7n_tools/manheim_c7n_tools/mailer-templatesif that directory exists, or to the absolute path to amailer-templatesdirectory inside themanheim_c7n_toolsinstallation otherwise. This behavior was largely based on the legacy hard-coded templates directory. Now that c7n-mailer template locations are more flexible, this behavior has been updated to (in order of evaluation):Use the
templates_foldersoption from themailer_configsection ofmanheim-c7n-tools.yml, if present. Otherwise, start with an empty list.Prepend
./mailer-templatesif it exists.Prepend
/manheim_c7n_tools/manheim_c7n_tools/mailer-templatesto the list, if it exists.Prepend
mailer-templatesdirectory inside themanheim_c7n_toolsinstallation, if it exists.
0.8.6 (2020-04-07)¶
Fix bug in 0.8.5 - mailer template loading logic was missing
policies/directory prefix.
0.8.5 (2020-04-06)¶
Update
policygento also handle layering ofmailer-templatesdirectory contents frompolicy_source_pathsinto./mailer-templates.Fixes #23 - Document
cleanup_notifyconfig parameter in examplemanheim-c7n-tools.ymlfiles and default it to an empty list.Fixes #24 - Remove requirement that us-east-1 must be first configured region, or configured at all.
0.8.4 (2020-04-01)¶
errorscan- Warn on missing SQS dead letter queue instead of failing, to support deployments that only run mailer in one region.
0.8.3 (2020-03-26)¶
Bug Fix: Handle all
account_idfields as strings. These were previously incorrectly handled as numeric fields, which prevented working with accounts having IDs that start with zero. Theaccount_idfield in yourmanheim-c7n-tools.ymlfile should be quoted as a string.Stop building c7n API docs ourselves, now that upstream API docs are fixed.
0.8.2 (2020-03-20)¶
Bump c7n to release 0.8.46.0
Bump c7n-mailer release to 0.5.7
Pin mock package to 3.0.5
Remove python2
0.8.1 (2019-11-08)¶
Bump c7n to release 0.8.45.2
Bump c7n-mailer release to 0.5.6
0.8.0 (2019-08-28)¶
Add new config option
policy_source_pathsfor merging separate policy repos into a single rulesetUpdate
policygento read from the source paths if the new config option is present
0.7.3 (2019-06-25)¶
Fix ArgumentParser error preventing
dryrun-difffrom being run as standalone entrypoint (as opposed tomanheim-c7n-runnerstep).Fix Python3 error in
dryrun-diff.
0.7.2 (2019-06-24)¶
Fix error in
policygenscript / step when running under Python3.
0.7.1 (2019-06-24)¶
Fix for README not rendering on pypi.org.
0.7.0 (2019-06-24)¶
Code migrated from private project/repository to GitHub.com under Apache2 license; first public release.