title: sed command fails when running via terraform local exec in linux
body: <p>I am trying to run the below sed command using terraform local_exec to replace the account id in a deployment yaml file.I am running it in ubuntu ec2 machine</p>
  <pre><code>  provisioner &quot;local-exec&quot; {
      interpreter = [&quot;bash&quot;, &quot;-c&quot;]
      command = &lt;&lt;EOT
        sed -i 's/\(image: \)[^.]*\(\.dkr\.\)/\1${data.aws_caller_identity.current.account_id}\2/' deployment/java-apps/deployment.yaml
      EOT
    }
  </code></pre>
  <p>But it fails with the following error:
  <code>No such file or directory Output: sed: can't read deployment/java-apps/deployment.yaml </code></p>
  <p>When I run it manually the command it can find the file and it replaces the value. But when its executed via terraform it fails. It even works when I execute the same terraform script using git bash in my windows machine. But in the ubuntu linux machine I receive the error.</p>
  <p>What do I need to change to make it run via terraform?</p>