title: AWS lambda unable to create a scheduled event source
body: <p>Unable to create a recurring schedule for lambda.</p>
  
  <p>What I did:</p>
  
  <p>1) Created the function and successfully tested it.</p>
  
  <p>2) Went to event source section in the AWS mgmt console.</p>
  
  <p>3) clicked on add event source.</p>
  
  <p>4) with default settings of rate(5 minutes) clicked on submit.</p>
  
  <p>Got the error:</p>
  
  <blockquote>
    <p>There was an error creating the event source mapping: Could not create
    scheduled-event event source</p>
  </blockquote>
  
  <p>I went through the docs and ran this statement via AWS CLI:</p>
  
  <pre><code>aws lambda add-permission --statement-id Allow-scheduled-events --action lambda:InvokeFunction --principal events.amazonaws.com --function-name function:myfunction
  </code></pre>
  
  <p>The above statement went through successfully, I tried running it again and it said the permission already exists confirming that it ran.</p>
  
  <p>I tried adding the schedule again but got the same error.</p>
  
  <p>Am i supposed to change the role or something? Can't anything else in the docs. The lambda is running with basic lambda execution role.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I temporarily gave the role under which the Lambda is executing admin access, still the same error.</p>
  
  <p><strong>Workaround</strong></p>
  
  <p>FYI... for people facing this problem, I could achieve the same result by going to cloudwatch and adding an event targeting lambda from there... same thing, that still does not answer this question though. I cant imagine that AWS console has such a gaping bug that they aren't doing anything about.</p>