Unable to deploy to AWS with .travis.yml

After starting a CI/CD build, the deployment fails with the following error:

It keeps failing at this point:
No stash entries found.

592/home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/net/http.rb:906:in `rescue in block in connect’: Failed to open TCP connection to elasticbeanstalk-ap-south-1-515260481255.s3.ap-south-1b.amazonaws.com:443 (getaddrinfo: Name or service not known) (Seahorse::Client::NetworkingError)

My s3 bucker on AWS is on http port only. However, the build is connecting as https. Could this be the problem? Any help is welcome.

Please link to your build.

I can’t resolve elasticbeanstalk-ap-south-1-515260481255.s3.ap-south-1b.amazonaws.com with “Non-existent domain” error. Depending on who is responsible for this domain name, there’s likely an error in your hosting configuration or at S3 side.