title: Please solve the error in AWS CLI {Parameter validation failed}
body: <pre><code> aws cloudformation create-stack --stack-name ourfirsttest --region us-east-1 --template-body file://test.yml                
  </code></pre>
  
  <p>Upon running the above command I get this error below.
  I also have the 'test.yml' file in the current working directory</p>
  
  <blockquote>
    <p>Parameter validation failed:<br>
    Invalid length for parameter TemplateBody, value: 0, valid range: 1-inf</p>
  </blockquote>
  
  <p><strong>Screenshot of the error</strong></p>
  
  <p><img src="https://i.stack.imgur.com/IeTIL.png" alt="Screenshot of the error"></p>