title: Pass date or cron schedule from cloud watch events to step function input
body: <p>Is there a way I can pass a date or a cron schedule as an input to my state function - which is getting called by a cloud watch event? The cloud watch event runs on a cron schedule and I would like to pass that dynamically on a daily basis to the step function</p>
  <p>For example:</p>
  <p>This gives some static input, but I want to give each day's date as input</p>
  <pre><code>resource &quot;aws_cloudwatch_event_target&quot; &quot;target&quot; {
  
  rule = aws_cloudwatch_event_rule.samplerule.id
  arn = aws_sfn_state_machine.samplemachine.id
  role_arn = aws_iam_role.iam_for_sfn.arn
  input = &lt;&lt;EOF
  {
    &quot;operand1&quot;: &quot;3&quot;,
    &quot;operand2&quot;: &quot;5&quot;,
    &quot;operator&quot;: &quot;add&quot;
  }
  EOF
  }
  </code></pre>