This is a sort of a second part of the “AWS S3” error series that I’ve encountered a week ago. In the previous post I had the (RequestTimeTooSkewed) The difference between the request time and the current time is too large error, and this time being
Read timeout on endpoint URL:... while trying to backup the production DB backups using the
aws s3 sync command. This could also happen while running
aws s3 cp too.
- AWS Account
- S3 bucket
- AWS CLI
the easy fix
--cli-read-timeout parameter to the
aws s3 cp and
aws s3 sync commands whichever you are having issues with. For instance:
aws s3 sync <source_dir> s3://<some_bucket_name> --cli-read-timeout 0
a better solution
0 is basically hacky, as recommended by AWS customize the upload configurations.
AWS CLI tool.
If you have another great solution feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.