0.1.2 • Published 5 years ago

abort-incomplete-multipart v0.1.2

Weekly downloads
7
License
0BSD
Repository
github
Last release
5 years ago

abort-incomplete-multipart

This tool lists all of your Amazon S3 incomplete multipart uploads, and allows you to abort them.

Installation

This is a Node.js application, so if you don't have it installed already, install node and npm:

# Ubuntu
apt-get install nodejs nodejs-legacy npm

Now you can fetch and install abort-incomplete-multipart from NPM:

npm install -g abort-incomplete-multipart

Or if you download this repository, you can install that version instead from the repository root:

npm link

Now it'll be on your PATH, so you can run it like so:

abort-incomplete-multipart --help

Usage

First, configure your AWS credentials. If you're running this tool within an EC2 instance with a role that grants access to S3, the role will be used automatically without you having to do anything.

Now you can just run:

abort-incomplete-multipart

In order to list all of your incomplete uploads in every bucket. If you want to abort all of those uploads, pass the "--abort" option:

abort-incomplete-multipart --abort

Here's the complete --help page:

Options

  --bucket name   Only find uploads in this bucket (optional)
  --prefix key    Only find uploads with this key prefix (optional)
  --abort         Abort the uploads that are found (after prompt)
  --force         Don't prompt to confirm abortion