You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/glacier.md
+57-37Lines changed: 57 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
---
2
-
title: "Glacier"
3
-
linkTitle: "Glacier"
2
+
title: Glacier
4
3
description: Get started with S3 Glacier on LocalStack
5
4
tags: ["Ultimate"]
6
5
persistence: supported
@@ -16,7 +15,7 @@ Glacier uses Jobs to retrieve the data in an Archive or list the inventory of a
16
15
17
16
LocalStack allows you to use the Glacier APIs in your local environment to manage Vaults and Archives.
18
17
You can use the Glacier API to configure and set up vaults where you can store archives and manage them.
19
-
The supported APIs are available on our [API coverage page]({{< ref "coverage_glacier" >}}), which provides information on the extent of Glacier's integration with LocalStack.
18
+
The supported APIs are available on our [API coverage page](), which provides information on the extent of Glacier's integration with LocalStack.
20
19
21
20
## Getting started
22
21
@@ -30,16 +29,16 @@ We will demonstrate how to create a vault, upload an archive, initiate a job to
30
29
You can create a vault using the [`CreateVault`](https://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-put.html) API.
31
30
Run the follow command to create a Glacier Vault named `sample-vault`.
On successful upload of the Glacier archive, you will see the following output:
68
67
@@ -79,9 +78,13 @@ On successful upload of the Glacier archive, you will see the following output:
79
78
You can initiate the retrieval of an archive from a vault using the [`InitiateJob`](https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html) API.
80
79
81
80
To download an archive, you will need to initiate an `archive-retrieval` job first to make the Archive available for download.
On successful execution of the job, you will see the following output:
87
90
@@ -96,9 +99,9 @@ On successful execution of the job, you will see the following output:
96
99
97
100
You can list the current and previous processes, called Jobs, to monitor the requests sent to the Glacier API using the [`ListJobs`](https://docs.aws.amazon.com/amazonglacier/latest/dev/api-jobs-get.html) API.
Please not that currently, this operation is only mocked, and will create an empty file named `my-archive.jpg`, not containing the contents of your archive.
139
-
{{< /callout >}}
146
+
:::
140
147
141
148
### Retrieve the inventory information
142
149
143
150
You can also initiate the retrieval of the inventory of a vault using the same [`InitiateJob`](https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html) API.
144
151
145
152
Initiate a job of the specified type to get the details of the individual inventory items inside a Vault using the `initiate-job` command:
On successful execution of the command, you will see the following output:
151
162
@@ -157,10 +168,14 @@ On successful execution of the command, you will see the following output:
157
168
```
158
169
159
170
In the same fashion as the archive retrieval, you can now download the result of the inventory retrieval job using `GetJobOutput` using the `JobId` from the result of the previous command:
0 commit comments