- Newest
- Most votes
- Most comments
The error you're encountering suggests there might be an issue with the SSL connection when trying to upload your encrypted files to S3. This could be caused by a few different factors:
-
Network connectivity issues: Intermittent network problems or unstable internet connection can cause SSL validation failures.
-
AWS CLI version: Ensure you're using the latest version of the AWS CLI. While your version (2.25.10) is relatively recent, updating to the latest version might resolve potential bugs.
-
Python version: The Python version you're using (3.12.9) is current, but it's worth checking if there are any known issues with this specific version and the AWS CLI.
-
File size: If some of your encrypted files are particularly large, they might be hitting upload limits. For files larger than 100MB, it's recommended to use multipart uploads.
-
S3 bucket configuration: Verify that your S3 bucket is correctly configured to accept the uploads and that you have the necessary permissions.
To troubleshoot this issue:
-
Try uploading the files that failed again. If it's an intermittent network issue, they might succeed on a retry.
-
Use the
--debugflag with your AWS CLI command to get more detailed error information. -
For large files, try using the
aws s3 cpcommand with the--multipart-uploadoption. -
Verify your IAM permissions to ensure you have the necessary access to upload to the S3 bucket.
-
Check if you can upload the same files using the AWS Management Console to isolate whether it's a CLI-specific issue.
If the problem persists, you may need to contact AWS support for further assistance, especially if you've verified your permissions and network connection are correct.
Sources
Upload large files to S3 via CLI | AWS re:Post
How to copy a large file on ec2 from stdin to s3? | AWS re:Post
