Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.16 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.16 KB

glaciar-vault-cleanup

Cleanup Glacier archives CLI

  1. List Vaults
  2. List Archives and option to job initiation for inventory retrieval
  3. Clean up glacier archives

Note - This does not support User profile with MFA Enabled

How to use

$ 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

Examples

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