title: How can I load input data from a file in Terraform?
body: <p>I defined a <code>aws_cloudwatch_event_target</code> in terraform to fire an event to lambda from <code>cloudwatch</code>. The <code>input</code> field is the event parameter for example:</p>
  
  <pre><code>resource "aws_cloudwatch_event_target" "data" {
    rule      = "${aws_cloudwatch_event_rule.scheduler.name}"
    target_id = "finance_producer_cloudwatch"
    arn       = "${aws_lambda_function.finance_data_producer.arn}"
    input     = "{\"test\": [\"111\"]}"
  }
  </code></pre>
  
  <p>I wonder how I can load the <code>input</code> json data from an external file.</p>