title: Deployment on Elastic beanstalk fail on cloudformation syntax error
body: <p>I have a drupal website which is deployed to an Elastic beanstalk through GitLab CI.
  Everything was working fine until a few days ago.
  I apparently receive no error but it appears that no file is uploaded to my EC2 instance.
  After digging a bit more the only error I was able to find is on the eb-cfn-init.log</p>
  <pre><code>+ /bin/bash /tmp/ebbootstrap.sh 'https://cloudformation-waitcondition-eu-west-3.s3.eu-west-3.amazonaws.com/arn:aws:cloudformation:eu-west-3:XXXXX:stack/XXXXXX-stack/8ccae$ 
  /tmp/ebbootstrap.sh: line 1: syntax error near unexpected token `newline'
  /tmp/ebbootstrap.sh: line 1: `&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;'
  + RESULT=2
  </code></pre>
  <p>It appears that this cloudformation file isn't correct, but how is this file generated?
  Also if I create a brand new environment, the exact same deployment script is running correctly (all files are correctly deployed to my instance. The problem only occurs when I try to update my files on my instance.</p>
  <p>I'm a bit lost here since I can't understand which part of my code could generate this issue.</p>
  <p>Any ideas?</p>
  <p>Thanks.</p>