title: How to add triggers for a AWS Lambda function created using a CloudFormation template?
body: <p>I am trying to create a lambda function from a CloudFormation template based on this example:</p>
  
  <p><a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-lambda.html" rel="noreferrer">http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-lambda.html</a></p>
  
  <p>As can be seen from this link:</p>
  
  <p><a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html" rel="noreferrer">http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html</a></p>
  
  <p>there is no way to add a trigger for the lambda function (like a S3 upload trigger).</p>
  
  <p>Is there a workaround to specify the trigger while writing the template?</p>