I am currently working on deleting an archive from AWS Glacier using the AWS CLI. I have initiated a job using the aws glacier initiate-job
command, after job completed I try to retrieve the archiveId
by using aws glacier get-job-output
, but I am unable to find the archiveId
in the output.
Here is the command I am using:
aws glacier get-job-output --account-id 123456678 --job-id aws-job-id --vault-name my-vault output.json
Output of the above command:
{
"status": 200,
"acceptRanges": "bytes",
"contentType": "application/json"
}
The output I receive does not contain the archiveId, which is essential for the subsequent deletion process. I have also checked the following aws documentation.
Here is the command you ran:
Note the last parameter:
output.json
This specified that you would like the output stored (on your local disk) in a file called
output.json
.Take a look at that file and you should find some output like:
The
ArchiveId
is in that output.