title: Use terraform to set up a lambda function triggered by a scheduled event source
body: <p>I would like to run an AWS lambda function every five minutes. In the AWS Management Console this is easy to set up, under the lambda function's "Event Sources" tab, but how do I set it up with <a href="https://www.terraform.io/">Terraform</a>?</p>
  
  <p>I tried to use <a href="https://www.terraform.io/docs/providers/aws/r/lambda_event_source_mapping.html">an <code>aws_lambda_event_source_mapping</code> resource</a>, but it turns out that <a href="http://docs.aws.amazon.com/sdk-for-go/api/service/lambda.html#type-CreateEventSourceMappingInput">the API it uses</a> only supports events from Kinesis and DynamoDB. When I try to use it with a scheduled event source, creation times out.</p>