title: AWS CodeDeploy: In Appspec.yml Move Files That Are More Than 1 Folder Deep
body: <p>In my appspec.yml file I need to deploy files that are more than one level deep. The following example will only get files in the views folder but within views folder there are other folders/files I need.</p>
  
  <pre><code>version: 0.0
  os: linux
  files:
    - source: /views
      destination: /var/www/views
  </code></pre>
  
  <p>Again this gives me all the files in /views but I need the folders within the /views folder.</p>
  
  <p>I've tried adding another entry after views for the folders but that doesn't work. It'll give the error "No such file or directory".</p>