S3 Glacier Restore Operator
Mindset
One-line takeaway: a Glacier restore is NOT a download — it is a
state transition that lifts an object from a frozen archive tier
back into Standard (or another hot tier) for a configurable number
of days. The object does not move on its own; you request the
restore, wait the tier-specific duration, then the temporary restored
copy is readable until the restore window expires, after which the
object falls back to archive. The restore window is a lease, not a
promotion — permanent promotion requires an explicit copy or
lifecycle-policy change.
Three facts make Glacier restore operations different from "just
calling GetObject":
Retrieval tier determines the SLA, not the storage class. The
source storage class (Glacier Flexible Retrieval, Deep Archive,
Glacier Instant Retrieval) constrains which tiers are available;
the chosen tier controls the wait. Expedited = 1-5 min (Flexible
only, requires capacity). Standard = 3-5 hr (Flexible). Bulk =
5-12 hr (Flexible) or 12 hr (Deep Archive). Deep Archive does NOT
support Expedited or Standard. Mismatching tier and source class
is the #1 cause of restore failures.
Glacier Instant Retrieval does NOT require a restore. Objects
in the Glacier Instant Retrieval (GIR) storage class are directly
accessible via GetObject with single-digit-ms latency for
infrequent access. Calling restore-object on a GIR object is a
no-op (or an error depending on bucket config). The single most
common misclassification is treating GIR like Flexible Retrieval.
Restore in place is a temporary lease. restore-object with
Days=N makes the object readable for N days, then it reverts to
archive. For permanent migration out of Glacier, copy the object
to the target storage class explicitly
(copy-object with StorageClass override) or update the bucket
lifecycle policy. Drift between operator expectations ("we restored
it, it's done") and the lease model is the #1 DR-drill failure.
Quick navigation
| Section |
Purpose |
| Pre-flight gate |
Validate object state, IAM perms, capacity |
| Quick reference — restore tiers |
Tier SLA matrix at a glance |
| Tier selection decision tree |
Match RTO to tier |
| Step-by-step process |
Pre-checks → restore → verify → cleanup |
| Bulk restore via Batch Operations |
Manifest-driven workflows |
| STRICT output contract |
Required VERDICT block schema |
| NEVER (top 5) |
Highest-blast-radius mistakes |
| Expert heuristic |
Field craft for ambiguous cases |
| Edge-case handling |
Stalls, expirations, versioning |
| Remediation |
Recover from mis-tiered or stalled restores |
Quick reference — restore tiers and SLAs
| Source storage class |
Available tiers |
Tier SLA |
Cost marker |
| Glacier Instant Retrieval (GIR) |
(none — direct GetObject) |
ms latency |
retrieve free (pay per-GB retrieved already) |
| Glacier Flexible Retrieval |
Expedited |
1-5 min |
highest |
| Glacier Flexible Retrieval |
Standard |
3-5 hr |
medium |
| Glacier Flexible Retrieval |
Bulk |
5-12 hr |
lowest |
| Glacier Deep Archive |
Standard |
12 hr |
medium |
| Glacier Deep Archive |
Bulk |
48 hr |
lowest |
Notes:
- Expedited requires capacity. Without provisioned capacity,
Expedited requests can be queued or rejected during demand peaks.
Provision 1+ capacity units per region for guaranteed Expedited.
- Deep Archive Standard is the FAST tier for Deep Archive (12
hr). Bulk is 48 hr. Deep Archive does NOT support Expedited.
- Bulk is cheapest, slowest. Use for non-urgent batch restores
(compliance export, monthly reporting).
- GIR restore is a misnomer — GIR is directly readable. Calls
to
restore-object on GIR are unnecessary.
Pre-flight: restore specification gate
Run before producing the execution plan. Several requirements block
the operation — proceeding produces silent failures or unnecessary
Expedited spend.
Live-account pre-flight checks (skip if doing offline plan
authoring):
- Verify object storage class via
head-object:
aws s3api head-object --bucket <bucket> --key <key> --query 'StorageClass'
— confirms whether the object is actually archived (Glacier
Flexible Retrieval, Deep Archive) or already directly accessible
(Standard, Intelligent-Tiering, GIR, One-Zone IA).
- Verify the object is in
ArchiveStatus: ARCHIVE_ACCESS or
DEEP_ARCHIVE_ACCESS (otherwise no restore needed).
- Verify IAM permissions for
s3:RestoreObject, s3:GetObject,
s3:HeadObject, and (for copy-to-tier) s3:PutObject /
s3:CopyObject / s3:AbortMultipartUpload.
- For Expedited, verify provisioned capacity:
aws s3control describe-job is not the right call — use
aws s3api list-buckets and consult billing for current capacity
units (currently no direct CLI for capacity check; verify via
console or billing).
- For S3 Batch Operations, verify the manifest bucket, the
IAM role with
s3:RestoreObject plus iam:PassRole, and the
report bucket all exist.
- For a DR drill, capture the current timestamp and the RTO target
for post-verification.
| Attribute |
Value |
Effect on plan |
| StorageClass |
Glacier Instant Retrieval |
NO RESTORE NEEDED — direct GetObject works. |
| StorageClass |
Glacier Flexible Retrieval |
Tier choice: Expedited / Standard / Bulk. |
| StorageClass |
Glacier Deep Archive |
Tier choice: Standard (12hr) / Bulk (48hr). NO Expedited. |
| ArchiveStatus |
ARCHIVE_ACCESS |
Restore required. |
| ArchiveStatus |
DEEP_ARCHIVE_ACCESS |
Restore required (Deep Archive). |
| Restore field present |
ongoing-request="false", expiry-date= |
Already restored; skip new restore. |
| Restore field present |
ongoing-request="true" |
Restore in progress; do NOT re-issue (resets wait clock). |
| Target |
in-place |
RestoreObject with Days=N. |
| Target |
copy-to-bucket |
RestoreObject then CopyObject. |
| Target |
copy-to-tier (promotion) |
CopyObject with StorageClass override (no restore-object needed if source is GIR). |
| Manifest size |
>1000 objects |
Use S3 Batch Operations, not inline loop. |
If the spec is incomplete (missing bucket, key/manifest, tier
selection, or target destination), output:
OPERATION: <restore-object | bulk-restore | check-status | diagnose>
VERDICT: BLOCKED
TARGET: <bucket/key or unknown>
REASON: Restore specification is missing required fields (<list>).
Cannot produce an execution plan without <field> — the resulting
restore would either fail or incur unnecessary Expedited spend.
REQUIRED:
- bucket
- key | prefix | manifest
- source_storage_class (Glacier Flexible Retrieval | Deep Archive |
Glacier Instant Retrieval)
- tier (Expedited | Standard | Bulk)
- target (in-place | copy-to-bucket | copy-to-tier)
- days (for in-place restore; lease duration)
Tier selection decision tree
| RTO budget |
Source class |
Recommended tier |
Cost marker |
| < 5 min |
Flexible Retrieval |
Expedited (+ provisioned capacity) |
highest |
| < 5 min |
Deep Archive |
NOT POSSIBLE — Deep Archive cannot be Expedited |
n/a |
| < 5 min |
Glacier Instant Retrieval |
direct GetObject (no restore) |
free |
| < 6 hr |
Flexible Retrieval |
Standard |
medium |
| < 6 hr |
Deep Archive |
Standard (12 hr — EXCEEDS RTO; renegotiate) |
medium |
| < 12 hr |
Flexible Retrieval |
Standard or Bulk |
medium/low |
| < 12 hr |
Deep Archive |
Standard (12 hr) |
medium |
| < 48 hr |
Deep Archive |
Bulk (48 hr) |
lowest |
| < 12 hr |
Flexible Retrieval |
Bulk (5-12 hr) |
lowest |
Expert heuristic: if the RTO cannot accommodate the tier's
maximum SLA, BLOCK the operation. A 12-hour SLA tier is NOT a
6-hour SLA tier; restoring and hoping is a guaranteed DR-drill
failure.
Process — Pre-checks → restore → verify (in order)
Step 0: Expert heuristic — field craft for ambiguous cases
→ Moved to references/advanced-patterns.md — field craft for ambiguous cases.
Step 1: Confirm source storage class and restore state
aws s3api head-object --bucket <bucket> --key <key> \
--query '{StorageClass: StorageClass, ArchiveStatus: ArchiveStatus, Restore: Restore}'
Interpretation:
StorageClass: GLACIER (Flexible Retrieval, formerly GLACIER),
DEEP_ARCHIVE, or GLACIER_IR.
ArchiveStatus: ARCHIVE_ACCESS or DEEP_ARCHIVE_ACCESS → restore
is required.
Restore: { ongoing-request: false, expiry-date: <date> } →
already restored; expires on <date>.
Restore: { ongoing-request: true } → restore in progress.
Step 2: Select the tier (per the decision tree)
Match RTO to tier. Mismatches are the most common failure mode.
Step 3: Restore in place (single object)
aws s3api restore-object \
--bucket prod-archive-bucket \
--key quarterly-report-2025-Q1.parquet \
--restore-request '{"Days": 7, "GlacierJobParameters": {"Tier": "Expedited"}}'
For Bulk on Flexible Retrieval:
--restore-request '{"Days": 30, "GlacierJobParameters": {"Tier": "Bulk"}}'
For Deep Archive (Standard tier, 12hr):
--restore-request '{"Days": 30, "GlacierJobParameters": {"Tier": "Standard"}}'
Note: Deep Archive supports only Standard (12hr) and Bulk (48hr).
Expedited on Deep Archive returns an error.
Step 4: Wait for restore completion
aws s3api wait object-restored --bucket prod-archive-bucket \
--key quarterly-report-2025-Q1.parquet
The waiter polls head-object until Restore.ongoing-request=false.
For Bulk + Deep Archive, this can be 48 hours — set expectations.
Step 5: Read the restored object (or copy to a different tier)
# Read in place
aws s3api get-object --bucket prod-archive-bucket \
--key quarterly-report-2025-Q1.parquet /tmp/restored.parquet
# Or copy to a hot tier for permanent promotion
aws s3api copy-object --bucket prod-hot-bucket \
--key quarterly-report-2025-Q1.parquet \
--copy-source prod-archive-bucket/quarterly-report-2025-Q1.parquet \
--storage-class STANDARD
Step 6: Verify post-restore state
aws s3api head-object --bucket prod-archive-bucket \
--key quarterly-report-2025-Q1.parquet \
--query 'Restore'
# Expected: ongoing-request=false, expiry-date populated
For copy-to-tier:
aws s3api head-object --bucket prod-hot-bucket \
--key quarterly-report-2025-Q1.parquet \
--query 'StorageClass'
# Expected: STANDARD
Step 7: Document the lease expiration
Capture the expiry-date in the operation notes. Operators who
assume a restore is permanent are surprised when access disappears
on day N+1.
Bulk restore via S3 Batch Operations
→ Full B1-B4 procedure moved to references/batch-operations-and-lifecycle-integration.md.
Restore in place vs copy to different tier
| Decision |
Use case |
| Restore in place (Days=N) |
Temporary access — audit, investigation, one-off query. Object reverts to archive after N days. |
| Copy to bucket |
Move restored data to a working bucket while keeping the archive intact. |
| Copy to tier (promotion) |
Permanent migration out of archive — change storage class on the copy. Update lifecycle policy to prevent re-archival. |
| Lifecycle policy update |
Bulk promotion — modify the lifecycle rule that archived the object in the first place. |
Permanent promotion requires either a copy or a lifecycle-policy
change. Restore-object alone never changes the object's storage
class permanently.
Lifecycle integration
→ Moved to references/batch-operations-and-lifecycle-integration.md.
Output format — STRICT output contract
The output MUST follow this exact schema. Every field is required;
do not omit fields or add undocumented ones.
OPERATION: <restore-object | bulk-restore | check-status | diagnose | copy-to-tier>
VERDICT: READY | BLOCKED | COMPLETED
TARGET: <bucket/key or job-id>
PRE_CHECKS:
- [PASS] <check description>
- [FAIL] <check description> — <reason>
STEPS:
1. <CLI command with flags populated>
2. <wait command>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
STATE: <restore progress, job status, expiry date>
NOTES: <lease caveat, tier rationale, lifecycle interaction, RTO reconciliation>
Worked example — single Expedited restore
OPERATION: restore-object
VERDICT: READY
TARGET: prod-archive-bucket/quarterly-report-2025-Q1.parquet
PRE_CHECKS:
- [PASS] head-object StorageClass: GLACIER (Flexible Retrieval)
- [PASS] ArchiveStatus: ARCHIVE_ACCESS (restore required)
- [PASS] Restore field absent (no in-progress restore)
- [PASS] Caller IAM role holds s3:RestoreObject, s3:GetObject
- [PASS] Provisioned capacity: 1 unit (guarantees Expedited)
- [PASS] RTO 5 min accommodated by Expedited (1-5 min SLA)
STEPS:
1. CONFIRM: About to restore-object prod-archive-bucket/
quarterly-report-2025-Q1.parquet via Expedited tier (1-5 min
SLA). Restore window: 7 days. Provisioned capacity: 1 unit.
Proceed? (yes/no)
2. aws s3api restore-object --bucket prod-archive-bucket
--key quarterly-report-2025-Q1.parquet
--restore-request '{"Days":7,"GlacierJobParameters":{"Tier":"Expedited"}}'
3. aws s3api wait object-restored --bucket prod-archive-bucket
--key quarterly-report-2025-Q1.parquet
POST_VERIFY:
- [PASS] head-object Restore.ongoing-request: false
- [PASS] head-object Restore.expiry-date populated
STATE: restored — lease expires 2026-08-17T00:00:00Z
NOTES:
- Restore is a temporary lease. Object reverts to Glacier Flexible
Retrieval on expiry-date. For permanent promotion, copy to
STANDARD via copy-object.
Worked example — Batch Operations bulk restore
→ Secondary example moved to references/worked-examples.md; the single-object Expedited example above is primary.
Verification commands
→ Command listing moved to references/diagnostic-commands.md.
Anti-Patterns — NEVER (top 5)
NEVER call restore-object on a Glacier Instant Retrieval (GIR)
object. GIR objects are directly readable via GetObject with
single-digit-ms latency. A restore call is a no-op (or an error
depending on bucket config). Always check StorageClass via
head-object before requesting a restore.
NEVER request Expedited tier on a Deep Archive object. Deep
Archive supports only Standard (12 hr) and Bulk (48 hr). Expedited
requests on Deep Archive return an error. The fastest Deep
Archive restore is 12 hours — never promise faster.
NEVER assume restore-object returns a Job ID. Only S3 Batch
Operations returns a Job ID. Single-object restores have no Job
ID; the only status source is the Restore field on the object's
metadata (head-object). Operators tracking a non-existent Job ID
waste hours searching for status.
NEVER issue a second restore-object while one is in progress.
Re-issuing resets the wait clock and can change the tier mid-flight.
Always check head-object Restore.ongoing-request first — if
true, wait for completion before issuing any new restore request.
NEVER assume a restore is permanent. Restore-object with
Days=N is a lease. The object reverts to archive on day N+1.
Permanent promotion requires a copy-object to a hot storage class
OR a lifecycle-policy update. DR drills that assume a restored
object stays restored fail when access disappears.
Additional NEVER
- NEVER use on-demand Expedited for DR drills without provisioned
capacity. On-demand is best-effort and is rejected during demand
peaks — exactly when DR drills happen. Pre-provision capacity.
- NEVER request Bulk when the RTO requires <12 hr. Bulk SLA is
5-12 hr (Flexible) or 48 hr (Deep Archive). Use Standard or
Expedited instead.
- NEVER update a lifecycle policy without checking which objects
will be affected. A broad
Transition rule can re-archive
promoted objects, undoing the restore.
- NEVER delete the manifest or report bucket mid-job. Batch
Operations reads the manifest continuously; the report is the
only audit trail for
NoSuchKey failures.
- NEVER treat
ongoing-request: false as success — it only means
the restore is no longer in progress. Always verify expiry-date
is populated and the object is readable via get-object.
- NEVER run Batch Operations with the management account's
credentials. Use a scoped IAM role (
s3:RestoreObject,
s3:GetObject, iam:PassRole on the job role ARN).
Pre-flight safety checks
MANDATORY CONFIRMATION GATE. Before any state-changing
operation (restore-object, create-job,
put-bucket-lifecycle-configuration), the operator MUST emit:
CONFIRM: About to restore <bucket>/<key> via <tier> (SLA: <min to max>). Restore window: <N> days. Estimated cost: <$X>. Object reverts to <storage class> on expiry. Proceed? (yes/no)
Tier-vs-source-class compatibility. Expedited only on
Flexible Retrieval. Standard on Flexible (3-5hr) and Deep Archive
(12hr). Bulk on Flexible (5-12hr) and Deep Archive (48hr). GIR
requires no restore.
RTO reconciliation. The maximum SLA for the chosen tier MUST
fit within the user's RTO budget. If not, BLOCK and renegotiate.
Capacity check for Expedited. Verify provisioned capacity
exists before promising an Expedited SLA. On-demand is
best-effort.
Cost estimate. Emit before any restore:
- Expedited retrieval: ~$0.03 per GB (highest)
- Standard retrieval: ~$0.01 per GB (Flexible), ~$0.02 per GB
(Deep Archive)
- Bulk retrieval: ~$0.0025 per GB (Flexible), ~$0.0025 per GB
(Deep Archive)
- Provisioned capacity: $100 per unit per month in the region
- Batch Operations: $0.25 per million tasks
Lease expiration awareness. Capture expiry-date in
post-verification. Operators who assume permanence are surprised
when access disappears.
Edge-case handling
→ Edge-case catalog moved to references/advanced-patterns.md.
Remediation guidance
→ Remediation deep dive moved to references/error-handling.md.
Recent AWS features (2024-2026)
→ Moved to references/advanced-patterns.md.
AWS documentation
References (load on demand)
- references/advanced-patterns.md — Step 0 field craft, edge-case catalog, recent AWS features.
- references/worked-examples.md — secondary worked example (Batch Operations bulk restore).
- references/error-handling.md — remediation guidance for BLOCKED/stalled/unexpected cases.
- references/diagnostic-commands.md — verification command listing.
- references/restore-tiers-and-provisioned-capacity.md — pre-existing: tier SLA matrix.
- references/batch-operations-and-lifecycle-integration.md — pre-existing; extended with the B1-B4 bulk-restore procedure and lifecycle integration.
1---2name: s3-glacier-restore-operator3description: Operates S3 Glacier restore workflows — initiates object restores from Flexible Retrieval tiers (Expedited 1-5 min, Standard 3-5 hr, Bulk 5-12 hr) and from Deep Archive (12-48 hr; Bulk 12 hr), provisions Expedited capacity to guarantee throughput, manages in-place restore vs copy-to-other-tier strategies, performs bulk restores via S3 Batch Operations (manifest + role + report), checks restore status via head-object Restore field and restore-object waiters, integrates with lifecycle policies (Transition + NoncurrentVersionTransition), and operates latest features (S3 Glacier Instant Retrieval for ms-latency access on cold data, Deep Archive bulk restore cost-tier). Emits a deterministic execution plan with pre-checks, CONFIRM gate, and post-verification. Use when restoring a single object, a prefix, or a manifest of thousands of objects from Glacier; provisioning Expedited capacity; running a DR restore drill; or diagnosing a stalled restore job.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan authoring. Live-account operations use aws s3api restore-object, head-object, get-object, list-objects-v2, aws s3api wait object-restored, aws s3control create-job (Batch Operations), describe-job, get-job-tagging, and aws s3api put-bucket-lifecycle-configuration (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/s3-glacier-restore-operator8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '4'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Storage15 task_type: operate16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY | BLOCKED | COMPLETED19 when_to_use: Restoring a single object, prefix, or manifest of objects from S3 Glacier Flexible Retrieval, Glacier Deep Archive, or Glacier Instant Retrieval; choosing between Expedited / Standard / Bulk tiers; provisioning Expedited capacity for guaranteed throughput; running a DR restore drill with an RTO target; orchestrating a bulk restore via S3 Batch Operations; checking restore status via head-object Restore field; reconciling restore in place vs copy-to-different-tier; integrating restores with lifecycle policies; or diagnosing a stalled restore job.20 activation_triggers: restore object from Glacier, S3 Glacier restore, expedited retrieval, standard retrieval, bulk retrieval, Deep Archive restore, Glacier Instant Retrieval, provisioned capacity, bulk restore via Batch Operations, manifest restore, restore drill, DR restore from Glacier, head-object Restore field, stalled restore job, lifecycle policy integration, copy to different storage class21 invocation_schema: 'Input shape (one of): (a) a restore specification including the bucket, key (or prefix, or manifest), source storage class (Glacier Flexible Retrieval | Glacier Deep Archive | Glacier Instant Retrieval), retrieval tier (Expedited | Standard | Bulk), target destination (in-place | copy-to-bucket | copy-to-tier), and RTO budget; (b) a partial spec for interactive refinement (e.g., "restore this prefix from Glacier, urgent"); (c) an existing job ID for status check or diagnosis. Output shape: { OPERATION, VERDICT, TARGET, PRE_CHECKS, STEPS, POST_VERIFY, STATE, NOTES } where VERDICT ∈ { READY, BLOCKED, COMPLETED, ERROR }.'22 version: 0.1.023 author: Jacky Chan — AWS Community Builder24 keywords: S3 Glacier, S3 Glacier Flexible Retrieval, S3 Glacier Deep Archive, S3 Glacier Instant Retrieval, restore-object, Expedited retrieval, Standard retrieval, Bulk retrieval, provisioned capacity, S3 Batch Operations, bulk restore, restore in place, copy to different tier, head-object Restore field, RestoreObject, lifecycle policy, Transition, NoncurrentVersionTransition, DR restore drill, manifest restore, Glacier Instant Retrieval, Deep Archive bulk restore25 tags: s3, storage, operate, glacier, restore, deep-archive, instant-retrieval, batch-operations, lifecycle, expedited, provisioned-capacity26---2728# S3 Glacier Restore Operator2930## Mindset3132**One-line takeaway:** a Glacier restore is NOT a download — it is a33**state transition** that lifts an object from a frozen archive tier34back into Standard (or another hot tier) for a configurable number35of days. The object does not move on its own; you request the36restore, wait the tier-specific duration, then the temporary restored37copy is readable until the restore window expires, after which the38object falls back to archive. The restore window is a lease, not a39promotion — permanent promotion requires an explicit copy or40lifecycle-policy change.4142Three facts make Glacier restore operations different from "just43calling GetObject":4445- **Retrieval tier determines the SLA, not the storage class.** The46 source storage class (Glacier Flexible Retrieval, Deep Archive,47 Glacier Instant Retrieval) constrains which tiers are available;48 the chosen tier controls the wait. Expedited = 1-5 min (Flexible49 only, requires capacity). Standard = 3-5 hr (Flexible). Bulk =50 5-12 hr (Flexible) or 12 hr (Deep Archive). Deep Archive does NOT51 support Expedited or Standard. Mismatching tier and source class52 is the #1 cause of restore failures.5354- **Glacier Instant Retrieval does NOT require a restore.** Objects55 in the Glacier Instant Retrieval (GIR) storage class are directly56 accessible via GetObject with single-digit-ms latency for57 infrequent access. Calling `restore-object` on a GIR object is a58 no-op (or an error depending on bucket config). The single most59 common misclassification is treating GIR like Flexible Retrieval.6061- **Restore in place is a temporary lease.** `restore-object` with62 `Days=N` makes the object readable for N days, then it reverts to63 archive. For permanent migration out of Glacier, copy the object64 to the target storage class explicitly65 (`copy-object` with `StorageClass` override) or update the bucket66 lifecycle policy. Drift between operator expectations ("we restored67 it, it's done") and the lease model is the #1 DR-drill failure.6869## Quick navigation7071| Section | Purpose |72|---|---|73| Pre-flight gate | Validate object state, IAM perms, capacity |74| Quick reference — restore tiers | Tier SLA matrix at a glance |75| Tier selection decision tree | Match RTO to tier |76| Step-by-step process | Pre-checks → restore → verify → cleanup |77| Bulk restore via Batch Operations | Manifest-driven workflows |78| STRICT output contract | Required VERDICT block schema |79| NEVER (top 5) | Highest-blast-radius mistakes |80| Expert heuristic | Field craft for ambiguous cases |81| Edge-case handling | Stalls, expirations, versioning |82| Remediation | Recover from mis-tiered or stalled restores |8384## Quick reference — restore tiers and SLAs8586| Source storage class | Available tiers | Tier SLA | Cost marker |87|---|---|---|---|88| Glacier Instant Retrieval (GIR) | (none — direct GetObject) | ms latency | retrieve free (pay per-GB retrieved already) |89| Glacier Flexible Retrieval | Expedited | 1-5 min | highest |90| Glacier Flexible Retrieval | Standard | 3-5 hr | medium |91| Glacier Flexible Retrieval | Bulk | 5-12 hr | lowest |92| Glacier Deep Archive | Standard | 12 hr | medium |93| Glacier Deep Archive | Bulk | 48 hr | lowest |9495Notes:96- **Expedited requires capacity.** Without provisioned capacity,97 Expedited requests can be queued or rejected during demand peaks.98 Provision 1+ capacity units per region for guaranteed Expedited.99- **Deep Archive Standard is the FAST tier for Deep Archive** (12100 hr). Bulk is 48 hr. Deep Archive does NOT support Expedited.101- **Bulk is cheapest, slowest.** Use for non-urgent batch restores102 (compliance export, monthly reporting).103- **GIR restore is a misnomer** — GIR is directly readable. Calls104 to `restore-object` on GIR are unnecessary.105106## Pre-flight: restore specification gate107108Run before producing the execution plan. Several requirements **block109the operation** — proceeding produces silent failures or unnecessary110Expedited spend.111112**Live-account pre-flight checks (skip if doing offline plan113authoring):**1141. Verify object storage class via `head-object`:115 `aws s3api head-object --bucket <bucket> --key <key> --query 'StorageClass'`116 — confirms whether the object is actually archived (Glacier117 Flexible Retrieval, Deep Archive) or already directly accessible118 (Standard, Intelligent-Tiering, GIR, One-Zone IA).1192. Verify the object is in `ArchiveStatus: ARCHIVE_ACCESS` or120 `DEEP_ARCHIVE_ACCESS` (otherwise no restore needed).1213. Verify IAM permissions for `s3:RestoreObject`, `s3:GetObject`,122 `s3:HeadObject`, and (for copy-to-tier) `s3:PutObject` /123 `s3:CopyObject` / `s3:AbortMultipartUpload`.1244. For Expedited, verify provisioned capacity:125 `aws s3control describe-job` is not the right call — use126 `aws s3api list-buckets` and consult billing for current capacity127 units (currently no direct CLI for capacity check; verify via128 console or billing).1295. For S3 Batch Operations, verify the manifest bucket, the130 IAM role with `s3:RestoreObject` plus `iam:PassRole`, and the131 report bucket all exist.1326. For a DR drill, capture the current timestamp and the RTO target133 for post-verification.134135| Attribute | Value | Effect on plan |136|---|---|---|137| StorageClass | Glacier Instant Retrieval | NO RESTORE NEEDED — direct GetObject works. |138| StorageClass | Glacier Flexible Retrieval | Tier choice: Expedited / Standard / Bulk. |139| StorageClass | Glacier Deep Archive | Tier choice: Standard (12hr) / Bulk (48hr). NO Expedited. |140| ArchiveStatus | ARCHIVE_ACCESS | Restore required. |141| ArchiveStatus | DEEP_ARCHIVE_ACCESS | Restore required (Deep Archive). |142| Restore field present | ongoing-request="false", expiry-date=<date> | Already restored; skip new restore. |143| Restore field present | ongoing-request="true" | Restore in progress; do NOT re-issue (resets wait clock). |144| Target | in-place | RestoreObject with Days=N. |145| Target | copy-to-bucket | RestoreObject then CopyObject. |146| Target | copy-to-tier (promotion) | CopyObject with StorageClass override (no restore-object needed if source is GIR). |147| Manifest size | >1000 objects | Use S3 Batch Operations, not inline loop. |148149**If the spec is incomplete** (missing bucket, key/manifest, tier150selection, or target destination), output:151152```text153OPERATION: <restore-object | bulk-restore | check-status | diagnose>154VERDICT: BLOCKED155TARGET: <bucket/key or unknown>156REASON: Restore specification is missing required fields (<list>).157Cannot produce an execution plan without <field> — the resulting158restore would either fail or incur unnecessary Expedited spend.159REQUIRED:160 - bucket161 - key | prefix | manifest162 - source_storage_class (Glacier Flexible Retrieval | Deep Archive |163 Glacier Instant Retrieval)164 - tier (Expedited | Standard | Bulk)165 - target (in-place | copy-to-bucket | copy-to-tier)166 - days (for in-place restore; lease duration)167```168169## Tier selection decision tree170171| RTO budget | Source class | Recommended tier | Cost marker |172|---|---|---|---|173| < 5 min | Flexible Retrieval | Expedited (+ provisioned capacity) | highest |174| < 5 min | Deep Archive | NOT POSSIBLE — Deep Archive cannot be Expedited | n/a |175| < 5 min | Glacier Instant Retrieval | direct GetObject (no restore) | free |176| < 6 hr | Flexible Retrieval | Standard | medium |177| < 6 hr | Deep Archive | Standard (12 hr — EXCEEDS RTO; renegotiate) | medium |178| < 12 hr | Flexible Retrieval | Standard or Bulk | medium/low |179| < 12 hr | Deep Archive | Standard (12 hr) | medium |180| < 48 hr | Deep Archive | Bulk (48 hr) | lowest |181| < 12 hr | Flexible Retrieval | Bulk (5-12 hr) | lowest |182183**Expert heuristic:** if the RTO cannot accommodate the tier's184maximum SLA, BLOCK the operation. A 12-hour SLA tier is NOT a1856-hour SLA tier; restoring and hoping is a guaranteed DR-drill186failure.187188## Process — Pre-checks → restore → verify (in order)189190### Step 0: Expert heuristic — field craft for ambiguous cases191192→ Moved to [references/advanced-patterns.md](references/advanced-patterns.md) — field craft for ambiguous cases.193### Step 1: Confirm source storage class and restore state194195```bash196aws s3api head-object --bucket <bucket> --key <key> \197 --query '{StorageClass: StorageClass, ArchiveStatus: ArchiveStatus, Restore: Restore}'198```199200Interpretation:201- `StorageClass: GLACIER` (Flexible Retrieval, formerly GLACIER),202 `DEEP_ARCHIVE`, or `GLACIER_IR`.203- `ArchiveStatus: ARCHIVE_ACCESS` or `DEEP_ARCHIVE_ACCESS` → restore204 is required.205- `Restore: { ongoing-request: false, expiry-date: <date> }` →206 already restored; expires on `<date>`.207- `Restore: { ongoing-request: true }` → restore in progress.208209### Step 2: Select the tier (per the decision tree)210211Match RTO to tier. Mismatches are the most common failure mode.212213### Step 3: Restore in place (single object)214215```bash216aws s3api restore-object \217 --bucket prod-archive-bucket \218 --key quarterly-report-2025-Q1.parquet \219 --restore-request '{"Days": 7, "GlacierJobParameters": {"Tier": "Expedited"}}'220```221222For Bulk on Flexible Retrieval:223```bash224--restore-request '{"Days": 30, "GlacierJobParameters": {"Tier": "Bulk"}}'225```226227For Deep Archive (Standard tier, 12hr):228```bash229--restore-request '{"Days": 30, "GlacierJobParameters": {"Tier": "Standard"}}'230```231232Note: Deep Archive supports only `Standard` (12hr) and `Bulk` (48hr).233Expedited on Deep Archive returns an error.234235### Step 4: Wait for restore completion236237```bash238aws s3api wait object-restored --bucket prod-archive-bucket \239 --key quarterly-report-2025-Q1.parquet240```241242The waiter polls `head-object` until `Restore.ongoing-request=false`.243For Bulk + Deep Archive, this can be 48 hours — set expectations.244245### Step 5: Read the restored object (or copy to a different tier)246247```bash248# Read in place249aws s3api get-object --bucket prod-archive-bucket \250 --key quarterly-report-2025-Q1.parquet /tmp/restored.parquet251252# Or copy to a hot tier for permanent promotion253aws s3api copy-object --bucket prod-hot-bucket \254 --key quarterly-report-2025-Q1.parquet \255 --copy-source prod-archive-bucket/quarterly-report-2025-Q1.parquet \256 --storage-class STANDARD257```258259### Step 6: Verify post-restore state260261```bash262aws s3api head-object --bucket prod-archive-bucket \263 --key quarterly-report-2025-Q1.parquet \264 --query 'Restore'265# Expected: ongoing-request=false, expiry-date populated266```267268For copy-to-tier:269```bash270aws s3api head-object --bucket prod-hot-bucket \271 --key quarterly-report-2025-Q1.parquet \272 --query 'StorageClass'273# Expected: STANDARD274```275276### Step 7: Document the lease expiration277278Capture the `expiry-date` in the operation notes. Operators who279assume a restore is permanent are surprised when access disappears280on day N+1.281282## Bulk restore via S3 Batch Operations283284→ Full B1-B4 procedure moved to [references/batch-operations-and-lifecycle-integration.md](references/batch-operations-and-lifecycle-integration.md).285## Restore in place vs copy to different tier286287| Decision | Use case |288|---|---|289| Restore in place (Days=N) | Temporary access — audit, investigation, one-off query. Object reverts to archive after N days. |290| Copy to bucket | Move restored data to a working bucket while keeping the archive intact. |291| Copy to tier (promotion) | Permanent migration out of archive — change storage class on the copy. Update lifecycle policy to prevent re-archival. |292| Lifecycle policy update | Bulk promotion — modify the lifecycle rule that archived the object in the first place. |293294**Permanent promotion requires either a copy or a lifecycle-policy295change.** Restore-object alone never changes the object's storage296class permanently.297298## Lifecycle integration299300→ Moved to [references/batch-operations-and-lifecycle-integration.md](references/batch-operations-and-lifecycle-integration.md).301## Output format — STRICT output contract302303The output MUST follow this exact schema. Every field is required;304do not omit fields or add undocumented ones.305306```text307OPERATION: <restore-object | bulk-restore | check-status | diagnose | copy-to-tier>308VERDICT: READY | BLOCKED | COMPLETED309TARGET: <bucket/key or job-id>310PRE_CHECKS:311 - [PASS] <check description>312 - [FAIL] <check description> — <reason>313STEPS:314 1. <CLI command with flags populated>315 2. <wait command>316POST_VERIFY:317 - [PASS] <verification description>318 - [FAIL] <verification description> — <reason>319STATE: <restore progress, job status, expiry date>320NOTES: <lease caveat, tier rationale, lifecycle interaction, RTO reconciliation>321```322323### Worked example — single Expedited restore324325```text326OPERATION: restore-object327VERDICT: READY328TARGET: prod-archive-bucket/quarterly-report-2025-Q1.parquet329PRE_CHECKS:330 - [PASS] head-object StorageClass: GLACIER (Flexible Retrieval)331 - [PASS] ArchiveStatus: ARCHIVE_ACCESS (restore required)332 - [PASS] Restore field absent (no in-progress restore)333 - [PASS] Caller IAM role holds s3:RestoreObject, s3:GetObject334 - [PASS] Provisioned capacity: 1 unit (guarantees Expedited)335 - [PASS] RTO 5 min accommodated by Expedited (1-5 min SLA)336STEPS:337 1. CONFIRM: About to restore-object prod-archive-bucket/338 quarterly-report-2025-Q1.parquet via Expedited tier (1-5 min339 SLA). Restore window: 7 days. Provisioned capacity: 1 unit.340 Proceed? (yes/no)341 2. aws s3api restore-object --bucket prod-archive-bucket342 --key quarterly-report-2025-Q1.parquet343 --restore-request '{"Days":7,"GlacierJobParameters":{"Tier":"Expedited"}}'344 3. aws s3api wait object-restored --bucket prod-archive-bucket345 --key quarterly-report-2025-Q1.parquet346POST_VERIFY:347 - [PASS] head-object Restore.ongoing-request: false348 - [PASS] head-object Restore.expiry-date populated349STATE: restored — lease expires 2026-08-17T00:00:00Z350NOTES:351 - Restore is a temporary lease. Object reverts to Glacier Flexible352 Retrieval on expiry-date. For permanent promotion, copy to353 STANDARD via copy-object.354```355356### Worked example — Batch Operations bulk restore357358→ Secondary example moved to [references/worked-examples.md](references/worked-examples.md); the single-object Expedited example above is primary.359## Verification commands360361→ Command listing moved to [references/diagnostic-commands.md](references/diagnostic-commands.md).362## Anti-Patterns — NEVER (top 5)363364- **NEVER call `restore-object` on a Glacier Instant Retrieval (GIR)365 object.** GIR objects are directly readable via GetObject with366 single-digit-ms latency. A restore call is a no-op (or an error367 depending on bucket config). Always check `StorageClass` via368 `head-object` before requesting a restore.369370- **NEVER request Expedited tier on a Deep Archive object.** Deep371 Archive supports only Standard (12 hr) and Bulk (48 hr). Expedited372 requests on Deep Archive return an error. The fastest Deep373 Archive restore is 12 hours — never promise faster.374375- **NEVER assume `restore-object` returns a Job ID.** Only S3 Batch376 Operations returns a Job ID. Single-object restores have no Job377 ID; the only status source is the Restore field on the object's378 metadata (`head-object`). Operators tracking a non-existent Job ID379 waste hours searching for status.380381- **NEVER issue a second `restore-object` while one is in progress.**382 Re-issuing resets the wait clock and can change the tier mid-flight.383 Always check `head-object Restore.ongoing-request` first — if384 `true`, wait for completion before issuing any new restore request.385386- **NEVER assume a restore is permanent.** Restore-object with387 `Days=N` is a lease. The object reverts to archive on day N+1.388 Permanent promotion requires a copy-object to a hot storage class389 OR a lifecycle-policy update. DR drills that assume a restored390 object stays restored fail when access disappears.391392## Additional NEVER393394- NEVER use on-demand Expedited for DR drills without provisioned395 capacity. On-demand is best-effort and is rejected during demand396 peaks — exactly when DR drills happen. Pre-provision capacity.397- NEVER request Bulk when the RTO requires <12 hr. Bulk SLA is398 5-12 hr (Flexible) or 48 hr (Deep Archive). Use Standard or399 Expedited instead.400- NEVER update a lifecycle policy without checking which objects401 will be affected. A broad `Transition` rule can re-archive402 promoted objects, undoing the restore.403- NEVER delete the manifest or report bucket mid-job. Batch404 Operations reads the manifest continuously; the report is the405 only audit trail for `NoSuchKey` failures.406- NEVER treat `ongoing-request: false` as success — it only means407 the restore is no longer in progress. Always verify `expiry-date`408 is populated and the object is readable via `get-object`.409- NEVER run Batch Operations with the management account's410 credentials. Use a scoped IAM role (`s3:RestoreObject`,411 `s3:GetObject`, `iam:PassRole` on the job role ARN).412413## Pre-flight safety checks414415- **MANDATORY CONFIRMATION GATE.** Before any state-changing416 operation (`restore-object`, `create-job`,417 `put-bucket-lifecycle-configuration`), the operator MUST emit:418 `CONFIRM: About to restore <bucket>/<key> via <tier> (SLA: <min419 to max>). Restore window: <N> days. Estimated cost: <$X>. Object420 reverts to <storage class> on expiry. Proceed? (yes/no)`421422- **Tier-vs-source-class compatibility.** Expedited only on423 Flexible Retrieval. Standard on Flexible (3-5hr) and Deep Archive424 (12hr). Bulk on Flexible (5-12hr) and Deep Archive (48hr). GIR425 requires no restore.426427- **RTO reconciliation.** The maximum SLA for the chosen tier MUST428 fit within the user's RTO budget. If not, BLOCK and renegotiate.429430- **Capacity check for Expedited.** Verify provisioned capacity431 exists before promising an Expedited SLA. On-demand is432 best-effort.433434- **Cost estimate.** Emit before any restore:435 - Expedited retrieval: ~$0.03 per GB (highest)436 - Standard retrieval: ~$0.01 per GB (Flexible), ~$0.02 per GB437 (Deep Archive)438 - Bulk retrieval: ~$0.0025 per GB (Flexible), ~$0.0025 per GB439 (Deep Archive)440 - Provisioned capacity: $100 per unit per month in the region441 - Batch Operations: $0.25 per million tasks442443- **Lease expiration awareness.** Capture `expiry-date` in444 post-verification. Operators who assume permanence are surprised445 when access disappears.446447## Edge-case handling448449→ Edge-case catalog moved to [references/advanced-patterns.md](references/advanced-patterns.md).450## Remediation guidance451452→ Remediation deep dive moved to [references/error-handling.md](references/error-handling.md).453## Recent AWS features (2024-2026)454455→ Moved to [references/advanced-patterns.md](references/advanced-patterns.md).456## AWS documentation457458- **S3 Glacier Developer Guide** — https://docs.aws.amazon.com/AmazonS3/latest/dev/glacier-restore.html459- **RestoreObject API** — https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html460- **S3 Storage Classes** — https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html461- **Glacier Instant Retrieval** — https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html#sc-glacier462- **S3 Batch Operations** — https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops.html463- **Batch Operations restore** — https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops-restore-object.html464- **Lifecycle configuration** — https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html465- **Provisioned capacity** — https://docs.aws.amazon.com/AmazonS3/latest/userguide/restoring-objects-retrieval-options.html466- **S3 Storage Lens** — https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html467- **Pricing — S3** — https://aws.amazon.com/s3/pricing/468## References (load on demand)469470- [references/advanced-patterns.md](references/advanced-patterns.md) — Step 0 field craft, edge-case catalog, recent AWS features.471- [references/worked-examples.md](references/worked-examples.md) — secondary worked example (Batch Operations bulk restore).472- [references/error-handling.md](references/error-handling.md) — remediation guidance for BLOCKED/stalled/unexpected cases.473- [references/diagnostic-commands.md](references/diagnostic-commands.md) — verification command listing.474- [references/restore-tiers-and-provisioned-capacity.md](references/restore-tiers-and-provisioned-capacity.md) — pre-existing: tier SLA matrix.475- [references/batch-operations-and-lifecycle-integration.md](references/batch-operations-and-lifecycle-integration.md) — pre-existing; extended with the B1-B4 bulk-restore procedure and lifecycle integration.476