AWS Glacier, cannot delete archive

0

I am successfully storing/retrieving archives, but I'm unable to delete any. I do the storing and retrieving through the .NET SDK in a desktop app, but I'm using PHP for deleting, so that's the only difference, but I seem to be doing everything else the same. I'm doing this:

$client = GlacierClient::factory(array(
			'region'  => 'us-east-1',
			'version' => 'latest',
			'key'    => '<KEY>',
    		'secret' => '<secret>'
		));

and am getting error: InvalidParameterValueException (client): Invalid vault name: arn:aws:glacier:us-east-1:1234567890:vaults/MyFiles

That is the exact region and name of the vault. Anyone have any idea what could be wrong?

질문됨 일 년 전279회 조회
1개 답변
1

You can delete one archive at a time from a vault. To delete the archive you must provide its archive ID in your delete request. You can get the archive ID by downloading the vault inventory for the vault that contains the archive.

https://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-an-archive.html

AWS_Guy
답변함 일 년 전
  • I know that. I am calling it correctly but it's giving me that error.

    $aws_result = $client->deleteArchive(array( 'accountId' => '123456789', 'vaultName' => 'MyFiles', 'archiveId' => 'shjgfasjdhfgjaksldghfjkasdgfjksdagfaksjd' ));

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠