title: cURL on AWS Lambda gives command not found error
body: <p>Starting a few hours today, a simple curl command on Lambda is failing. <br>
  Lambda environment is NodeJs 10.x (have also tried in 12.x).</p>
  
  <pre><code>const { execSync } = require('child_process');
  
  exports.handler = async (event) =&gt; {
     execSync('curl http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/images/BigBuckBunny.jpg -o /tmp/BigBuckBunny.jpg');
      const response = {
          statusCode: 200,
          body: JSON.stringify('Hello from Lambda!'),
      };
      return response;
  };
  </code></pre>
  
  <p>I get a /bin/sh curl: command not found error
  Any idea what the issue is?</p>
  
  <pre><code>Response:
  {
    "errorType": "Error",
    "errorMessage": "Command failed: curl http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/images/BigBuckBunny.jpg -o /tmBigBuckBunny.jpg\n/bin/sh: curl: command not found\n",
    "trace": [
      "Error: Command failed: curl http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/images/BigBuckBunny.jpg -o /tmBigBuckBunny.jpg",
      "/bin/sh: curl: command not found",
      "",
      "    at checkExecSyncError (child_process.js:621:11)",
      "    at execSync (child_process.js:657:15)",
      "    at Runtime.exports.handler (/var/task/index.js:11:4)",
      "    at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)"
    ]
  }
  </code></pre>