title: How do I configure my appspec.yml file to deploy an application rather than a single page?
body: <p>I'm working through the <a href="https://aws.amazon.com/blogs/apn/announcing-atlassian-bitbucket-support-for-aws-codedeploy/" rel="nofollow">AWS blog post</a> on how to deploy code directly from BitBucket using AWS CodeDeploy. Most of it's fairly straightforward until I get to the point where it mentions an appspec.yml file. I understand that the purpose is to describe what to deploy and how to do it, but I'm not understanding how to do that for an application, rather than just a simple page. In my previous experience there would be a series of steps such as </p>
  
  <ol>
  <li>Pull from Repo</li>
  <li>Run MSBuild against X project.</li>
  <li>Run Tests against X project.</li>
  <li>Copy build artifacts to S3.</li>
  <li>Stop App Pool on web server.</li>
  <li>Run cmd file deploying build artifacts.</li>
  <li>Start App Pool on web server.</li>
  <li>Cleanup/Post Build steps.</li>
  </ol>
  
  <p>I assume that there's some correlation between the steps I've written above and the "files" and "hooks" sections in the appspec.yml file <a href="http://docs.aws.amazon.com/codedeploy/latest/userguide/app-spec-ref-structure.html" rel="nofollow">detailed here</a>. Unfortunately I can't figure out a mapping in my head between the two, and every blog post, online doc, and video I've found pretty much just says "you need this file" and points to an example that moves one static file and has one or two hooks. I'm at a loss as to how to integrate the actual build portions of the deployment.</p>
  
  <p>Can anyone either provide an example appspec.yml file which accounts for a full application deployment, rather than a simple copy paste, or point me towards a resource which better explains this process?</p>