title: AWS Codebuild puting all artifacts in root of S3 bucket
body: <p>I'm building a project that puts all of it's files in a 'dist' folder, and running it through CodeBuild. I'm trying to get it to put all of the files and folders in 'dist' into the root of the s3 bucket, but I'm having trouble figuring out how to make that work.</p>
  
  <p>My 'dist' folder looks something like this:</p>
  
  <p><code>
  - index.html
  - somecssfiles.css
  - fonts/
  - - some fonts or w/e
  - js/ 
  - - some javascript files
  </code></p>
  
  <p>I've tried a lot of different stuff, but can't seem to get it to just drop 'dist/*' into the root of the s3 bucket. Here's the current iteration of my <code>artifacts</code> property in the buildspec.yml file:</p>
  
  <p><code>
  artifacts:
    files:
      - '*'
    discard-paths: yes
    base-directory: 'dist'
  </code></p>
  
  <p>I thought that would probably work, but it ignores the folders. Any help is appreciated, thanks for reading.</p>