-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find Config retention settings #9333 #9528
base: main
Are you sure you want to change the base?
Conversation
@@ -200,3 +203,55 @@ def test_remediation_no_results(self): | |||
p.expand_variables(p.get_variables()) | |||
resources = p.run() | |||
self.assertEqual(len(resources), 0) | |||
|
|||
def test_retention_configurations(self): | |||
session_factory = self.replay_flight_data('test_retention_configurations') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, fwiw to get the files, use record_flight_data, we anonymize aws account ids, in the recorded data, and then when files are on disk, switch to replay.
https://cloudcustodian.io/docs/developer/tests.html#recording-custodian-interactions
c7n/resources/config.py
Outdated
@@ -76,6 +76,78 @@ def process(self, resources, event=None): | |||
return resources | |||
|
|||
|
|||
@ConfigRecorder.filter_registry.register("retention-configurations") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about just retention
No description provided.