title: create appspec.yml file for ec2 deployment
body: <p>I have created a spring boot app that I can launch on AWS EC2 instance and it works fine, however, I would now like to automate the process using CodeDeploy, so I wouldn't have to use puTTy to connect to the instance, download the new jar file and run it manually.</p>
  <p>My issue is that I don't know what to write in the appspec.yml file in order to:</p>
  <ul>
  <li>Stop the application</li>
  <li>Download the new .jar file that sits inside of .zip file in my S3 bucket (equivalent to # wget -N jarlink)</li>
  <li>Run the application (equivalent to # java -jar jarname)</li>
  </ul>
  <p>I am aware that I need some scripts for this, however, I don't where to get the right ones.</p>
  <p>Cheers,
  Kris</p>