--- id: c7n-mailer version: "0.6.50" license: Apache-2.0 license_treatment: permissive maintenance: active --- # c7n-mailer — Cloud Custodian - Reference Mailer License: permissive · Maintenance: active · Downloads: 114.0K/mo ## What it is and what it does c7n-mailer is a notification relay service that bridges Cloud Custodian policies and external messaging systems. It subscribes to an AWS SQS queue, processes messages from Custodian policy actions, and forwards notifications to multiple endpoints: email via SES, Slack channels and users, DataDog metrics, and Splunk. The package is primarily an example implementation, meaning it demonstrates a pattern for organization-specific mail delivery rather than being a one-size-fits-all solution. The mailer runs as a standalone service (or in Docker) and requires configuration via a YAML file specifying the SQS queue URL, IAM role, and credentials for each notification endpoint you want to use. Custodian policies trigger messages by including a notify action with transport type sqs, allowing policy-driven alerting across your cloud infrastructure without embedding notification logic in the policies themselves. Use it for: - Send email alerts when Custodian policies detect untagged or non-compliant cloud resources. - Route resource violation notifications to Slack channels organized by team or environment. - Publish compliance metrics to DataDog for centralized monitoring and alerting. - Relay cross-account notifications by configuring SQS queues with cross-account permissions. - Integrate cloud governance events into existing incident management or ticketing workflows via webhooks. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A message relay service that subscribes to SQS queues and delivers notifications via email (SES), Slack, DataDog, and other endpoints, designed to work with Cloud Custodian policies. Yes, if you run Cloud Custodian and need to route policy notifications to email, Slack, or monitoring systems. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Install with caution only if your organization has custom notification requirements not covered by SES, Slack, DataDog, or Splunk—the package is intentionally an example, not a universal solution. ## Install pip install c7n-mailer uv add c7n-mailer poetry add c7n-mailer ## Installing c7n-mailer Before you install: Low friction install with a pure-Python wheel. The package is actively maintained with a recent release and no known vulnerabilities. It carries 13 runtime dependencies including boto3, jinja2, and optional integrations (datadog, sendgrid, redis, ldap3), so installation footprint is moderate but straightforward. License in practice: Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most organizational deployments. Quickstart: pip install c7n-mailer # Create mailer.yml with queue_url, role, and from_address # Then run: c7n-mailer --config mailer.yml # In a Custodian policy, send messages to the queue: # actions: # - type: notify # to: # - you@example.com # transport: # type: sqs # queue: https://sqs.us-east-1.amazonaws.com/account/queue-name Requires AWS credentials and an SQS queue; SES sandbox mode requires verified email addresses; DataDog and Slack integrations need their respective API credentials. Verify before relying: - Whether the package can run standalone or requires Cloud Custodian to be installed separately. - Performance characteristics under high message volume or latency guarantees for delivery. - Support for custom notification backends beyond SES, Slack, DataDog, and Splunk. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 114.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags sqs message relay notification, email delivery from sqs queue, slack notifications from aws, custodian mailer integration, cloud policy notifications, datadog event relay, ses email from queue, cloud-governance, aws-integration, notification-relay [View on SkillFed](https://skillfed.io/packages/c7n-mailer) · [View on PyPI](https://pypi.org/project/c7n-mailer/)