title: How to escape curly bracket in AWS CLI Bash
body: <p>I'm trying to use AWS CLI Lambda to replace environment variables. However the value I want to replace has a pair of curly braces in it and CLI complaints about json format even when I already put the whole thing in single quote. Here's my command:</p>
  
  <pre><code>aws lambda update-function-configuration --function-name myFunc --environment Variables={URL='http://example.com/api/{0}'}
  </code></pre>
  
  <p>Here's the error:</p>
  
  <pre><code>Error parsing parameter '--environment': Expected: ',', received: '}' for input:
  </code></pre>
  
  <p>The funny thing is that if I removed the closing bracket <code>}</code>, it worked:</p>
  
  <pre><code>aws lambda update-function-configuration --function-name myFunc --environment Variables={URL='http://example.com/api/{0'}
  </code></pre>
  
  <p>Please help!!!</p>