Amazon Glacier
Amazon Glacier
Based on your choice of access method (block, file, object, etc.), access pattern (sequential or
random), frequency of access (offline, online, archival), availability, and durability you can choose an
optimal storage solution.
Vault lock
Glacier lets you create locks on individual vaults by applying policies. For instance, WORM
(Write Once Read Many) policies can be used to prevent further edits after uploading.
Access control
AWS IAM can be used to securely access the management console and also secure the S3
Glacier data.
Vault inventory
Amazon S3 Glacier always has an inventory of all the archives in every vault. The inventory will
contain the name, creation date, and description of the archives.
The Amazon S3 Glacier (S3 Glacier) data model core concepts include vaults and archives. S3
Glacier is a REST-based web service. In terms of REST, vaults and archives are the resources. In
addition, the S3 Glacier data model includes job and notification configuration resources.
Vault: It is a container for storing archives and allows unlimited storage. Glacier supports
various vault operations which are region specific
Archive: An archive can be any data like photos, videos, or documents and is a base unit of
storage in Glacier. Glacier assigns the archive an ID, which is unique in the AWS region in
which it is stored. The archive can be uploaded in a single request. Glacier also provides a
multipart upload API that enables uploading an archive in parts for large archives,
Jobs: A Job is required to retrieve an Archive and vault inventory list. Data retrieval requests
are asynchronous operations, are queued and most jobs take a few hours to complete. A job is
first initiated and when the job is complete, then the output of the job is downloaded in full
or partially by specifying a byte range.
Glacier provides three options for retrieving data with varying access times and costs:
Expedited, Standard, and Bulk retrievals.
Standard retrievals: allow access to any of the archives within several hours. It typically
completes within 3-5 hours.
Bulk retrievals: are Glacier’s lowest-cost retrieval option, enabling retrieval of large amounts,
even petabytes, of data inexpensively in a day. It typically completes within 5 – 12 hours.
Expedited retrievals: allow quick access to the data when occasional urgent requests for a
subset of archives are required. For all the largest archives, data accessed using Expedited
retrievals are typically made available within 1 to 5 minutes.
Step 1: Open AWS Management Console and go to Amazon S3 Glacier service. After that click on
“create vault” to move forward.
Step 2: There are 4 steps normally. First, choose the Region and then provide a name for your vault.
Then click on “Next step”
Step 6: Click on Setting to view and change the Retrieval Policies. Have set it to ”Free tier “ and save it
The next step is to: Specify a compliance policy for your vault
Amazon Glacier Vault Lock allows you to easily deploy and enforce compliance controls for
individual Amazon Glacier vaults with a vault lock policy. You can specify controls such as
“write once read many” (WORM) in a vault lock policy and lock the policy from future edits.
Once locked, the policy can no longer be changed. A vault lock policy is different from a
vault access policy.
Both policies govern access controls to your vault. However, a vault lock policy can be
locked to prevent future changes, providing strong enforcement for your compliance controls.
You can use the vault lock policy to deploy regulatory and compliance controls, which
typically require tight controls on data access. In contrast, you use a vault access policy to
implement access controls that are not compliance related, temporary, and subject to frequent
modification.
Suppose that you have a requirement to retain archives for up to 200 days before you can
delete them. You can do that by implementing the following Vault Lock policy. The policy
denies the glacier:DeleteArchive action on the workfall_vault if the archive being deleted is
less than 200 days old. The policy uses the Amazon Glacier-specific condition key
ArchiveAgeInDays to enforce the retention requirement.
Add the policy and click on Initiate vault lock
A lock id gets generated, if the policy is not validated within 24 hrs, it will get deleted.
This is how the policy looks like after it gets created, status is: in progress
Example 2: Deny Deletion Permissions Based on a Tag
Suppose that you need to place a hold on your archives to prevent deletion or modification
for an indefinite duration during an investigation. So we can prevent the archive from being
deleted by using the tag constraint.
It denies deletion permissions to everyone, locking the vault. This lock is performed by using
the Hold string as key and value as true.
The policy uses the Amazon Glacier-specific condition key glacier: ResourseTag to enforce
the retention requirement.
To delete the policy, click on the Delete Vault lock and then click Delete