Closed jantman closed 4 years ago
c7n.mu
doesn't expose any easy way to determine which configuration items are needed; in fact, the error that caused #21 comes from an assert
in the Lambda creation code. Closing this, as there's no easy/reliable way to enforce it.
See #21 for background... right now,
policygen
leaves themode
section alone (except for tags) if it has a type other thanperiodic
. If required configuration items are missing, this results in policygen successfully generating the configs, but thencustodian
itself (specifically inmu.py
) fails with an AssertionError because of the missing configuration items.Add some logic to
policygen
to fail with a helpful error if required configuration is missing from the specified mode.