Skip to content

daily report, through lambda, with results sent to email recipients

0

Hello -

I'm trying to write a simple report for my workgroup of just four people. I'd like it to run daily (on a schedule if that works, or I'll run it manually each day), do a simple http query, assemble the result, and mail it to a list of four recipients. However AWS refused to grant me production use of SES, saying the above intended use would adversely affect the system. I can't imagine how that's a challenging or unusual use case, but that's what they said. So if that's not allowed, how can someone run a simple report and distribute to a tiny number of email recipients?

Thank you for any suggestions.

asked 2 years ago409 views

3 Answers
0

It seems there may have been a misunderstanding or miscommunication regarding your intended use of Amazon Simple Email Service (SES). The use case you've described - sending a daily report to a small group of recipients - is actually a common and appropriate use of SES.

Here's how you could set up such a system:

  1. Create a Lambda function that performs your HTTP query and assembles the report.

  2. Use Amazon EventBridge (formerly CloudWatch Events) to schedule this Lambda function to run daily.

  3. Within the Lambda function, use SES to send the report to your four recipients.

This setup is well within the normal usage patterns for SES and should not adversely affect the system. However, there are a few things to keep in mind:

  1. SES requires you to verify your email addresses or domain before sending emails. Make sure you've completed this step.

  2. If you're new to SES, you might be in the sandbox environment, which has some restrictions. You'll need to request production access, but for your use case, this should be granted without issues.

  3. When requesting production access, clearly explain your use case - a daily report sent to a small, specific group of recipients. This should alleviate any concerns about potential spam or misuse.

  4. Ensure you're following best practices for email sending, such as having a clear unsubscribe mechanism and handling bounces and complaints appropriately.

If you're still having trouble getting production access to SES, you could consider alternative solutions:

  1. Use Amazon SNS (Simple Notification Service) to send the report as an SMS or mobile push notification.

  2. Store the report in an S3 bucket and use S3 event notifications to trigger an email or notification.

  3. Use a third-party email service provider that integrates well with AWS services.

Remember, the key is to clearly communicate your intended use case when requesting production access to SES. Your scenario of sending a daily report to a small group of known recipients is a valid use case for SES and should not be problematic if explained correctly.
Sources
Community | Automate AWS Cost report using EventBridge, Lambda, Cost Explorer API
How to e-mail OpenSearch reports and dashboards via opensearch-reporting-cli | AWS re:Post

answered 2 years ago

  • How do I get them to approve it if it's a fully appropriate use of SES? They rejected it, and they don't provide a way to appeal their decision.

0

How do I get them to approve it if it's a fully appropriate use of SES? They rejected it, and they don't provide a way to appeal their decision.

answered 2 years ago

0

Hello.

Will there be more than 4 recipients?
If the number of recipients is not going to increase in the future, why not send email notifications using Amazon SNS instead of Amazon SES?
https://docs.aws.amazon.com/sns/latest/dg/welcome.html

EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.