title: Creating a cloudfront distribution using aws cli json
body: <p>Hi i am trying to create a new custom origin cloudfront distribution from aws cli. But i am getting the following error. I ve checked my json file. no errors found but aws cli is throwing the below error</p>
  
  <p>[ec2-user@ip-172-31-20-146 ~]$ aws cloudfront create-distribution --distribution-config "$(</p>
  
  <p>Here is my json file</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>{
    "DistributionConfig": {
      "CallerReference": "fucking16483256",
      "Aliases": {
        "Quantity": 1,
        "Items": [
          "cdn.nammacloud.com"
        ]
      },
      "Origins": {
        "Quantity": 1,
        "Items": [
          {
            "origin": {
              "CustomOriginConfig": {
                "OriginProtocolPolicy": "match-viewer",
                "HTTPPort": 80,
                "HTTPSPort": 443
              },
              "Id": "Custom-www.nammacloud.com",
              "DomainName": "www.nammacloud.com"
            }
          }
        ]
      },
      "DefaultCacheBehavior": {
        "TargetOriginId": "Custom-www.nammacloud.com",
        "ViewerProtocolPolicy": "allow-all",
        "MinTTL": 3600
      },
      "Comment": "new distribution",
      "Logging": {
        "Bucket": "",
        "Prefix": "",
        "Enabled": false,
        "IncludeCookies": false
      },
      "PriceClass": "PriceClass_All"
    }
  }</code></pre>
  </div>
  </div>
  </p>