Skip to content

Instantly share code, notes, and snippets.

View bderidder's full-sized avatar

Bavo De Ridder bderidder

View GitHub Profile
@bderidder
bderidder / GlacierClean.ps1
Last active August 6, 2022 20:52
PowerShell script to remove all Vaults and Archives in Amazon Glacier
$accountId = "<your account id>"
$pollSleep = 10
$vaultList = aws glacier list-vaults --account-id $accountId | ConvertFrom-Json
foreach($vault in $vaultList.VaultList)
{
$jobInfo = aws glacier initiate-job --vault-name $vault.VaultName --account-id $accountId --job-parameters='{\"Type\": \"inventory-retrieval\"}' | ConvertFrom-Json
### Keybase proof
I hereby claim:
* I am bderidder on github.
* I am bderidder (https://keybase.io/bderidder) on keybase.
* I have a public key whose fingerprint is A34E 77FD B042 3BD1 500D 4AE0 8642 3A9D 9598 5D00
To claim this, I am signing this object: