Aws::S3::Errors:: fix with Travis-CI, Docker and AWS [June 2020 Update]
Intro
Docker! DOCKER! Docker!
Over the last 6 months of consistent coding, I’ve realized each new phase introduces its own exciting concept. Recently, it was Docker — and this article walks you through a very specific issue I faced while working with Travis CI, Docker, and AWS.
I’ve been taking the Udemy course Docker and Kubernetes: The Complete Guide by Stephen Grider (a brilliant instructor). While progressing through the course and a fantastic article by William Okafor, I hit a snag during deployment — specifically in Step 8 of William's guide.
This post is not an introduction to Docker, but a helpful update to William’s excellent tutorial:
William Okafor’s Original Guide
Issue in Step 8
William's Step 8 suggests updating your .travis.yml
to deploy your code using the following format:
# .travis.yml (deprecated approach)
deploy:
provider: s3
access_key_id: '$AWS_ACCESS_KEY'
secret_access_key: '$AWS_SECRET_KEY' # ❌ BREAKING
bucket: 'my-app-bucket'
skip_cleanup: true
region: 'us-east-1'
local_dir: build