title: How can I resolve non supported format error in aws cloudformation script
body: <p>I am writing a cloudformation script which is supposed to pick the stack name, template body and parameter file from a .txt file for deployment. I would not want the yaml and json file to be edited during a new deployment instead the .txt file should be edited
  The code is below</p>
  <pre><code>aws cloudformation create-stack --stack-name $(&lt;stack_name.txt) --template-body 
  file://$(&lt;stack_template_file_name.txt) --parameters file://$(&lt;stack_parameter_file_name.txt) capabilities &quot;CAPABILITY_IAM&quot; &quot;CAPABILITY_NAMED_IAM&quot; --region=us-west-2
  </code></pre>
  <p>note: stack_name.txt contains the name to be used the stack, stack_template_file_name.txt contains the name of the template.yml file, stack_parameter_file_name.txt contains the name of the parameter.json file</p>
  <p>when I type the command directly in the cli, the stack is deployed but when I copy it into create.sh and run ./create.sh I get the error below</p>
  <pre><code>`' doesn't match a supported format.`
  </code></pre>
  <p>How can I fix this?</p>