S3 aws deploy access_key_id

Hello,

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

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

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

1 Like

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

Ah, I see. I think it’s

I’ll revert this in a few minutes.

3 Likes

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

1 Like

Sorry for the troubles, everyone!

2 Likes
Imprint