How is an archive downloaded from Glacier using AWS CLI?
I've tried:
aws glacier initiate-job --vault-name test --account-id - --job-parameters '{"Type": "archive-retrieval", "ArchiveId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}'
and I get the following error:
A client error (PolicyEnforcedException) occurred when calling the InitiateJob operation: InitiateJob request denied by current data retrieval policy.
I imagined this would be similar to the inventory-retrieval
operation, like send the request now and 5 hours later run the command again to download it.