# S3 aws deploy access\_key\_id

**URL:** <https://travis-ci.community/t/s3-aws-deploy-access-key-id/10967>\
**Category:** Deployment\
**Tags:** aws\
**Created:** [January 5, 2021, 7:01pm UTC](https://travis-ci.community/t/s3-aws-deploy-access-key-id/10967 "2021-01-05T19:01:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![matbroughty](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/matbroughty/32/5969_2.png) [@matbroughty](https://travis-ci.community/u/matbroughty)\
**Post date:** [January 5, 2021, 7:01pm UTC](https://travis-ci.community/t/s3-aws-deploy-access-key-id/10967/1 "2021-01-05T19:01:32Z")

</div>

Hello,

> **[Travis CI - Test and Deploy with Confidence](https://travis-ci.com/github/matbroughty/timstwitterlisteningparty)**

My travis-ci has been working fine and copying files across to s3 ok until today 5th Jan 2021 about an hour ago (6pm GMT) - it was ok this morning.

The .travis.yml is just

```
deploy:
  # move everything from this project into the s3 bucket
  provider: s3
  access_key_id: $AWS_ACCESS_ID
  secret_access_key: $AWS_SECRET_ID

```

I created a new IAM user in AWS and changed the access and secret env keys in travis just in case somehow they had expired - but still get the same issue.

When the copy to aws s3 was working in the logs I could see:

```
travis_fold:end:dpl.1
Logging in with Access Key: **************** 5NVD
Beginning upload of 3552 files with 5 threads.
travis_fold:start:dpl.2
e[33mPreparing deploye[0m

travis_fold:end:dpl.2
travis_fold:start:dpl.3
e[33mDeploying applicatione[0m
uploading "tile-wide.png" with {:content_type=>"image/png", :acl=>"public-read"}

```

But now it is failing I can see the following (which looks like the env variable name isn’t being replaced with the value)

```
travis_fold:end:dpl.1
Logging in with Access Key: **************** S_ID
Beginning upload of 3552 files with 5 threads.
travis_fold:start:dpl.2
e[33mPreparing deploye[0m

travis_fold:end:dpl.2
travis_fold:start:dpl.3
e[33mDeploying applicatione[0m
uploading "tile-wide.png" with {:content_type=>"image/png", :acl=>"public-read"} 

```

Although in the logs I can still see :

```
e[33;1mSetting environment variables from repository settingse[0m
$ export AWS_ACCESS_ID=[secure]
$ export AWS_SECRET_ID=[secure]

```

Any ideas? Has something changed in travis?

Cheers  
Mat

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [January 5, 2021, 7:30pm UTC](https://travis-ci.community/t/s3-aws-deploy-access-key-id/10967/2 "2021-01-05T19:30:46Z")

</div>

No changes that explain this behavior has been deployed. Is the indicated access key valid? Did someone in your organization refresh the keys?

---

<div class="post-metadata">

**Author:** ![hylando](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/hylando/32/5970_2.png) [@hylando](https://travis-ci.community/u/hylando)\
**Post date:** [January 5, 2021, 7:37pm UTC](https://travis-ci.community/t/s3-aws-deploy-access-key-id/10967/3 "2021-01-05T19:37:41Z")

</div>

We are seeing similar issues with parsing of AWS Keys. Opened a case with support and have yet to hear back.

---

<div class="post-metadata">

**Author:** ![matbroughty](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/matbroughty/32/5969_2.png) [@matbroughty](https://travis-ci.community/u/matbroughty)\
**Post date:** [January 5, 2021, 7:51pm UTC](https://travis-ci.community/t/s3-aws-deploy-access-key-id/10967/4 "2021-01-05T19:51:55Z")

</div>

Access keys hadn’t changed or been refreshed as I am the only one who accesses aws. Realise I forgot to post the link to travis! [Travis CI - Test and Deploy with Confidence](https://travis-ci.com/github/matbroughty/timstwitterlisteningparty)

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [January 5, 2021, 7:58pm UTC](https://travis-ci.community/t/s3-aws-deploy-access-key-id/10967/5 "2021-01-05T19:58:07Z")

</div>

Ah, I see. I think it’s

> <https://github.com/travis-ci/travis-build/pull/1976>

I’ll revert this in a few minutes.

---

<div class="post-metadata">

**Author:** ![matbroughty](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/matbroughty/32/5969_2.png) [@matbroughty](https://travis-ci.community/u/matbroughty)\
**Post date:** [January 5, 2021, 8:37pm UTC](https://travis-ci.community/t/s3-aws-deploy-access-key-id/10967/6 "2021-01-05T20:37:11Z")

</div>

Working again now. Thanks for the prompt response, much appreciated! Excellent work.

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [January 5, 2021, 8:40pm UTC](https://travis-ci.community/t/s3-aws-deploy-access-key-id/10967/7 "2021-01-05T20:40:05Z")

</div>

Sorry for the troubles, everyone!

---

<div class="post-metadata">

**Author:** ![muhammadhussain78](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/muhammadhussain78/32/8561_2.png) [@muhammadhussain78](https://travis-ci.community/u/muhammadhussain78)\
**Post date:** [February 26, 2023, 3:11pm UTC](https://travis-ci.community/t/s3-aws-deploy-access-key-id/10967/8 "2023-02-26T15:11:07Z")

</div>

what was the solution to your problem
