Locking Archives and Verifying Integrity with Checksums
This lesson explains how Glacier Vault Lock protects archives against deletion and how S3 checksums verify that data is unchanged. The vault-based Amazon Glacier service stopped accepting new customers on 7 November 2025; new designs use the S3 Glacier storage classes with S3 Object Lock.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the two-step Glacier Vault Lock process.
- Explain how S3 checksums verify data integrity.
- Choose between Vault Lock and S3 Object Lock for archive protection.
Glacier Vault Lock
Glacier Vault Lock enforces write once, read many (WORM) controls on an Amazon Glacier vault, the original vault-based Glacier service with its own API, as distinct from the S3 Glacier storage classes. A vault lock policy is a resource policy that, once locked, cannot be changed or removed by anyone, including the root user. Because a locked policy is permanent, the lock is applied in two stages, with a test window in which mistakes can still be corrected. The process consists of the following steps.
-
Write the policy
Create a vault lock policy, for example denying deletion of archives younger than ten years.
-
Initiate the lock
This starts a 24-hour test window.
-
Test
Test the policy, and abort the lock if it is wrong.
-
Complete the lock
After this the policy can never be changed.
Locking a Glacier vault
Integrity checksums
Integrity means that data has not been altered or corrupted, whether in transit, at rest or by tampering. Amazon S3 supports checksums that the client calculates on upload and S3 verifies on receipt, so corruption in transit is detected immediately. The checksum is stored with the object and can be retrieved later to confirm that the object is unchanged. For evidence and records, checksums are often combined with Object Lock, which prevents changes, and with hashes recorded separately. The following list describes the checksum options.
- Supported algorithms: CRC32, CRC32C, CRC64NVME, SHA-1 and SHA-256.
- Checksums are calculated on upload and can be verified on download.
- Checksums of multipart uploads can be verified as full-object checksums.
- S3 Batch Operations can calculate checksums for existing objects.
S3 integrity checksums
Choosing an archive protection
For new designs, S3 Object Lock on Glacier storage classes provides WORM protection with S3's features and APIs. Glacier Vault Lock remains relevant for existing Glacier vaults and in exam questions that mention vaults explicitly.
The following diagram shows the steps of a Glacier vault lock and an upload checksum check, two integrity controls.

Archive protection for new designs
Locking a vault and verifying uploads
An existing S3 Glacier vault holds archives that must not be deleted for ten years. The team initiates a vault lock with a policy denying early deletion:
aws glacier initiate-vault-lock --account-id - --vault-name records-archive --policy '{"Policy":
"{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Deny\",\"Principal\":\"*\",
\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:eu-west-1:111111111111:vaults/records-archive\",
\"Condition\":{\"NumericLessThan\":{\"glacier:ArchiveAgeInDays\":\"3650\"}}}]}"}'
# Test within 24 hours, then:
aws glacier complete-vault-lock --account-id - --vault-name records-archive --lock-id $LOCK_IDFor new records in S3, uploads specify a checksum so that S3 verifies the data it stores, for example aws s3api put-object --checksum-algorithm SHA256, and the stored checksum is compared when the object is read back.
Can a completed Glacier Vault Lock policy be changed?
Show answer
No, never. That is why it has a 24-hour test window before it is completed.
Exam Tips
Remember for the exam
- To lock a Glacier vault policy permanently, use Glacier Vault Lock, with its 24-hour test window.
- A completed vault lock policy can never be changed.
- S3 checksums verify that data was not altered in transit or storage.
- For new archives, use S3 Object Lock with Glacier storage classes.
- S3 supports CRC32, CRC32C, CRC64NVME, SHA-1 and SHA-256 checksums.