Reputation: 395
I'm on Windows 8.1 (don't ask why) and using the AWS CLI from within Powershell.
I ran a job to list all the archives for a given vault which completed successfully. I then deleted 23 of 24 of the archives successfully.
One archive I cannot delete I can't fathom out why, other than the fact that the archive-id beings with a minus sign:
aws glacier delete-archive --vault-name MY_GLACIER_VAULT_NAME --account-id - --archive-id "-lai63adP..."
Error:
aws.exe: error: argument --archive-id: expected one argument
Does anyone have any suggestions, please? (other than creating a Linux VM, authenticating and then trying the same command from there).
Upvotes: 1
Views: 437
Reputation: 1972
Try replacing --archive-id "-lai63adP..."
with --archive-id="-lai63adP..."
I found this at https://github.com/aws/aws-cli/issues/1135 and https://github.com/aws/aws-cli/issues/1409 and more places.
Upvotes: 5