c7n.reports package¶
Submodules¶
c7n.reports.csvout module¶
Reporting Tools¶
Provides reporting tools against cloud-custodian’s json output records.
For each policy execution custodian stores structured output in json format of the records a policy has filtered to in an s3 bucket.
These represent the records matching the policy filters that the policy will apply actions to.
The reporting mechanism here simply fetches those records over a given time interval and constructs a resource type specific report on them.
CLI Usage¶
$ custodian report -s s3://cloud-custodian-xyz/policies \
-p ec2-tag-compliance-terminate -v > terminated.csv
-
class
c7n.reports.csvout.
Formatter
(resource_type, extra_fields=(), include_default_fields=True, include_region=False, include_policy=False, fields=())[source]¶ Bases:
object