Replies: 4 comments
-
so mailer doesn't really support attachments, so the best option is using invoke-lambda action or a sns delivery target on notify. note any data payload is effectively capped at service transport limits re size (256kb commonly) for which services are chunked over multiple invocations for a given policy execution. |
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
-
Is it planned to have the mailer support attachments? I'd imagine, the policy could
thoughts? @kapilt |
Beta Was this translation helpful? Give feedback.
-
this feels like something that should be handled in mailer, not in the notify action, ie its a presentation concern, and the mailer is responsible for formatting messages for delivery. it could be as simple as a template function {{ attach_csv() }}. |
Beta Was this translation helpful? Give feedback.
-
I have a tag compliance policy but need to send the violation report as a CSV file attachment instead of json within the email body. How do I do that?
I can generate the csv report using this command but how can I default to this instead of sending out the resources.json output?
custodian report --output-dir=. --format csv --field tags=tags --region us-east-1 policy.yml > ec2_tag_compliance.csv
Beta Was this translation helpful? Give feedback.
All reactions