Skip to main content

Execute workflows against Glacier.

Project description

Description

Glacier is meant for long-term storage of large files/archives. It is a time-consuming process to delete archives and download files. Additionally, you can not delete a Glacier vault container if it still contains archives.

In order to delete a vault, the normal process is:

  • Create a job to evaluate the current contents of the vault.

  • Wait until the job has been completed (usually three or four hours in us-east).

  • Request the job output data.

  • Delete each archive listed in the job-output.

  • Delete the vault.

This can become obnoxious. The goal of this tool is to execute synchronous workflows that just stay running until the job is done.

Install

Install using PIP:

$ sudo pip install synchronous_glacier

Tools

sg-vault-delete

Executes the vault-deletion workflow.

Example output:

$ sg-vault-delete ACCESSKEY SECRETKEY dustin-test-multi-3
Watching job [76c9jSYmg6k9ZbgxdpZLtRq2kDZML_yzhU_1tEL1f_CgEiXjHyKnnoMTDVFciexsGM82k9X1v9K7T0ms-imt9SvPgPW0].
Sleeping (running 00:00:00).
Sleeping (running 00:10:03).
Sleeping (running 00:20:07).
Sleeping (running 00:30:11).
Sleeping (running 00:40:15).
Sleeping (running 00:50:19).
...
Job complete. Deleting (3) archives.
Requesting archive delete: (0) [dustin-test-archive1]
Requesting archive delete: (1) [dustin-test-archive2]
Requesting archive delete: (2) [dustin-test-archive3]
Deleting vault: dustin-test-multi-3

To Do

We have only written one tool to solve one problem. PRs will be readily accepted to extend the project with additional tools to execute different workflows.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

synchronous_glacier-0.2.0.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file synchronous_glacier-0.2.0.tar.gz.

File metadata

File hashes

Hashes for synchronous_glacier-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b7adfe66631748dfc1fd8bde0fc14f21bdab3b9b1bad34087e023773b66be021
MD5 e556c98007b7a7ceaf323c3330ab20d4
BLAKE2b-256 0dea5d054c098c9c76db70b2a55492112081a3e68c5016cb886d845f1f501ad3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page