Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
How do I use the AWS CLI to view the contents of an S3 Glacier vault?
2 minute read
0
I want to check the contents of an Amazon Simple Storage Service (Amazon S3) Glacier vault.
Resolution
Use the following AWS Command Line Interface (AWS CLI) commands to check the contents of your Amazon S3 Glacier vaults.
To list the vaults in your AWS account, run the list-vaults command. Note: If you don't see any vaults listed, run the configure command. Confirm that the correct AWS Region is configured for the AWS CLI.
To request an inventory of a specific vault, run the initiate-job command and include the option --job-parameters '{"Type": "inventory-retrieval"}'. Note: The job run time varies depending on the retrieval type. For more information, see Archive retrieval options.
To view the status of a job, run the describe-job command.
To download the output of a job, run the get-job-output command.