title: Invalid policy role due to malformed Json? AWS
body: <p>I am following this tutorial: <a href="https://bernhardwenzel.com/articles/using-clojure-with-aws-lambda/" rel="nofollow noreferrer">https://bernhardwenzel.com/articles/using-clojure-with-aws-lambda/</a></p>
  <p>the json for the policy is as shown:</p>
  <pre><code>{
    &quot;Version&quot;: &quot;2012-10-17&quot;,
    &quot;Statement&quot;: [
      {
        &quot;Sid&quot;: &quot;&quot;,
        &quot;Effect&quot;: &quot;Allow&quot;,
        &quot;Principal&quot;: {
          &quot;Service&quot;: &quot;lambda.amazonaws.com&quot;
        },
        &quot;Action&quot;: &quot;sts:AssumeRole&quot;
      }
    ]
  }
  </code></pre>
  <p>but when I run</p>
  <pre><code>aws iam create-role \
  --role-name basic_lambda_role \
  --assume-role-policy-document fileb://resources/trust_relationship.json
  </code></pre>
  <p>I get</p>
  <pre><code>An error occurred (MalformedPolicyDocument) when calling the CreateRole operation: This policy contains invalid Json
  </code></pre>
  <p>Not sure what the problem is here.
  I tried fixing the file path or removing the b but I can't seem to figure it out.</p>