# Deploy single file to a folder in S3

**URL:** https://travis-ci.community/t/deploy-single-file-to-a-folder-in-s3/13267
**Category:** Deployment
**Created:** [September 9, 2022, 3:32pm UTC](https://travis-ci.community/t/deploy-single-file-to-a-folder-in-s3/13267 "2022-09-09T15:32:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![robwilkerson](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/robwilkerson/32/6849_2.png) [@robwilkerson](https://travis-ci.community/u/robwilkerson)
#### Post date: [September 9, 2022, 3:32pm UTC](https://travis-ci.community/t/deploy-single-file-to-a-folder-in-s3/13267/1 "2022-09-09T15:32:45Z")

</div>

Hey, folks - I have an application that builds a WAR file and attempts to upload it to an existing directory in a S3 bucket:

```auto
  - provider: s3
    glob: "**/ROOT.war"
    region: us-east-1
    bucket: "${AWS_S3_BUCKET}"
    upload-dir: "${AWS_S3_PATH}"
    access_key_id: ${AWS_ACCESS_KEY_ID}
    secret_access_key: ${AWS_SECRET_ACCESS_KEY}
    skip_cleanup: true
    on:
      tags: true

```

The variables are set as global env vars. When run, though, Travis seems to be attempting to upload the entire repo and, apparently, to a directory that doesn’t exist or to which I don’t have perms. I’ll check on the perms thing, but I can’t find anything to help me understand why I can’t upload a single file. I did see an answer on StackOverflow indicating that it only works in v2, but no indication of such in the v1 docs.

Thanks!

---

<div class="post-metadata">

### Author: ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)
#### Post date: [September 19, 2022, 6:23pm UTC](https://travis-ci.community/t/deploy-single-file-to-a-folder-in-s3/13267/2 "2022-09-19T18:23:00Z")

</div>

Hi @robwilkerson,

Can I please see more of your `.travis.yml` config?
