- Newest
- Most votes
- Most comments
You're encountering this error because there's a 5GB size limitation when changing storage classes using the Amazon S3 console, not because of a limitation with the S3 Glacier Deep Archive storage class itself.
For objects larger than 5GB, you'll need to use the AWS Command Line Interface (CLI) instead of the console. The good news is that you don't need to split your video files - they can be stored intact in Glacier Deep Archive, which supports objects up to 5TB in size.
Here's a user-friendly approach to solve your issue:
-
Install the AWS CLI if you haven't already (available from the AWS website with installation guides)
-
Configure the CLI with your credentials (run "aws configure" and follow the prompts)
-
Use this command to change the storage class of a specific file:
aws s3 cp s3://your-bucket-name/your-video.mp4 s3://your-bucket-name/your-video.mp4 --storage-class DEEP_ARCHIVE
- For multiple files, you can use:
aws s3 cp s3://your-bucket-name/ s3://your-bucket-name/ --recursive --storage-class DEEP_ARCHIVE --exclude "*" --include "*.mp4"
Alternatively, you could set up an S3 Lifecycle configuration rule to automatically transition your objects to Glacier Deep Archive after a specified time period. This would be a more hands-off approach if you're not comfortable with the CLI.
Your video files will remain intact and will work normally upon retrieval. Just be aware that retrieving files from Glacier Deep Archive can take 12-48 hours, so this storage class is best for truly archival content that you don't need immediate access to.
Sources
Setting the storage class of an object - Amazon Simple Storage Service
Change to Glacier Deep Archive storage class? Can no longer use this class for files > 5GB | AWS re:Post
To handle video files over 5GB for S3 Glacier, you can use multipart uploads to split and reassemble them transparently. However, instead of manually splitting files (which would corrupt videos), use AWS S3 Batch Operations with a lifecycle policy: create a lifecycle rule in your S3 bucket to transition objects to Glacier Deep Archive after 1 day, which bypasses the 5GB limit as lifecycle transitions handle large files automatically. Alternatively, use S3 Glacier Direct Upload via the AWS CLI with multipart upload (e.g., aws s3 cp --storage-class DEEP_ARCHIVE), which splits large files behind the scenes without corruption—retrieval will restore the intact original file. For simplicity, enable S3 Intelligent-Tiering with archive policies, which automatically moves inactive data to Deep Archive after 30+ days without size restrictions.
answered 10 months ago
