I am trying to view the files in my aws glacier vault. I am using the amazon cli. I first did
aws glacier list-jobs --account-id - --region ca-central-1 --vault-name gamesDB
and got this for the result
{
"JobList": [{
"CompletionDate": "2017-07-13T19:33:01.357Z",
"JobId": "0_Yskg7YiAD8exUca58f2NMEC_hb7fsoy4arhpYBBkuMHqS__h10ol8_lPYCLc-Qoe1E8PXQso3HZ0usCaG6wzyPtRqb",
"InventorySizeInBytes": 1123,
"StatusCode": "Succeeded",
"StatusMessage": "Succeeded",
"VaultARN": "arn:aws:glacier:ca-central-1:710541751822:vaults/gamesDB",
"InventoryRetrievalParameters": {
"Format": "JSON"
},
"Action": "InventoryRetrieval",
"Completed": true,
"CreationDate": "2017-07-13T15:38:58.835Z"
}]
}
then I did
aws glacier get-job-output --account-id - --vault-name gamesDB --job-id 0_Yskg7YiAD8exUca58f2NMEC_hb7fsoy4arhpYBBkuMHqS__h10ol8_lPYCLc-Qoe1E8PXQso3HZ0usCaG6wzyPtRqb output.json
and got
An error occurred (ResourceNotFoundException) when calling the GetJobOutput operation: The job ID was not found: 0_Yskg7YiAD8exUca58f2NMEC_hb7fsoy4arhpYBBkuMHqS__h10ol8_lPYCLc-Qoe1E8PXQso3HZ0usCaG6wzyPtRqb
I thought there was a problem with the CLI so I tried this again using the rest API and got the same error. The JobID is the exact same I do not understand why this is happening?
ca-central-1
? I'm guessing you're implicitly sending it to another region since you didn't show that you specified a region. The Glacier regions are independent, not interconnected at all. – Michael - sqlbot--account-id -
or specify the actual account-id? It isn't clear what the problem might be. – Michael - sqlbot