Step 3: Upload an Archive to a Vault in S3 Glacier - Amazon S3 Glacier
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Step 3: Upload an Archive to a Vault in S3 Glacier

In this step, you'll upload a sample archive to the vault that you created in the preceding step (see Step 2: Create a Vault in S3 Glacier). Depending on the development platform that you're using, choose one of the links at the end of this section.


Any archive operation, such as upload, download, or deletion, requires you to use the Amazon Command Line Interface (CLI) or write code. There is no console support for archive operations. For example, to upload data, such as photos, videos, and other documents, you must either use the Amazon CLI or write code to make requests, by using either the REST API directly or by using the Amazon SDKs.

To install the Amazon CLI, see Amazon Command Line Interface. For more information about using S3 Glacier with the Amazon CLI, see Amazon CLI Reference for S3 Glacier. For examples of using the Amazon CLI to upload archives to S3 Glacier, see Using S3 Glacier with the Amazon Command Line Interface.

An archive is any object, such as a photo, video, or document, that you store in a vault. An archive is the base unit of storage in S3 Glacier. You can upload an archive in a single request. For large archives, S3 Glacier provides a multipart upload API operation that enables you to upload an archive in parts.

In this getting started section, you upload a sample archive in a single request. For this exercise, you specify a file that is smaller in size. For larger files, multipart upload is suitable. For more information, see Uploading Large Archives in Parts (Multipart Upload).