I am trying to use a Lambda Function with CloudWatch as trigger to simulate a cron job.
I am having problem with the Lambda Function.
Here is my function:
import requests
URL = 'www.somesite.com/SchedulerEmail'
def lambda_handler(event, context):
requests.get(URL)
The lambda function is called "SchedulerEmail"
When I created it I choose python as language and pasted the code on aws "edit code inline" tab.