How to use cURL and mail in AWS Lambda How to use cURL and mail in AWS Lambda curl curl

How to use cURL and mail in AWS Lambda


For scheduling the CRON, you should use CloudWatch Events. You can set a CRON expression that will trigger the CloudWatch Event. This event can in turn trigger a Lambda function.

Your Lambda function can make HTTP calls using the oh so great requests package. Instructions for deployment on Lambda here. You can also use the not so easy to use urllib2 module as an alternative to requests if you don't want to package requests with your Lambda function.

As for sending emails, AWS SES would be the easiest avenue. You can alternatively use the email module, though I've never used it in the context of a Lambda function.