Cleanup Glacier archives CLI
- List Vaults
- List Archives and option to job initiation for inventory retrieval
- Clean up glacier archives
Note - This does not support User profile with MFA Enabled
$ cleanyp.py -h
usage: cleanup.py [-h] [-listvault] [-listarchives] [-vaultname VAULTNAME]
[-deleteall] -region REGION [-profile PROFILE]
Glacier Vault cleanup CLI
-region REGION List All Glacier
optional arguments:
-h, --help show this help message and exit
-listvault List All Glacier Vaults
-vaultname VAULTNAME Specify Vault Name
-listarchives List All Glacier Vault Archives [ Vault Name is needed ]
-deleteall Delete All archives [ Vaultname is needed ]
-profile PROFILE AWS Profile for credentials
List Vaults
$ ./cleanup.py -profile dev-env -listvault -region eu-west-1
List Archives + Job Status check + Archive List
$ ./cleanup.py -profile dev-env -region eu-west-1 -vaultname LogArchives -listarchives
Delete Archives
$ ./cleanup.py -profile dev-env -region eu-west-1 -vaultname LogArchives -deleteall