title: How can I fix this Taskfile command?
body: <p>I'm trying to test a local Lambda function using the <code>public.ecr.aws/lambda/python:3.8</code> image. I having a problem with the proper escape/encoding for a curl POST to this API endpoint using <code>task</code>.</p>
  <p>The API complains if the json payload is encoded:</p>
  <pre><code>[test] {&quot;errorMessage&quot;: &quot;Unable to unmarshal input: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)&quot;, &quot;errorType&quot;: &quot;Runtime.UnmarshalError&quot;, &quot;stackTrace&quot;: []}
  </code></pre>
  <p>The <code>task</code> command complains if it is not:</p>
  <pre><code>yaml: line 7: did not find expected key
  </code></pre>
  <p>Here is <code>taskfile.yml</code>:</p>
  <pre><code>version: &quot;3&quot;
  
  tasks:
      default:
          desc: Test the API
          cmds:
          - curl -XPOST http://localhost:9000/2015-03-31/functions/function/invocations -d '{'name': 'Todd'}'
  </code></pre>