An open API service indexing awesome lists of open source software.

https://github.com/thenickdude/abort-incomplete-multipart

List and abort incomplete multipart uploads to Amazon S3
https://github.com/thenickdude/abort-incomplete-multipart

Last synced: 10 months ago
JSON representation

List and abort incomplete multipart uploads to Amazon S3

Awesome Lists containing this project

README

          

# 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:

```bash
# Ubuntu
apt-get install nodejs nodejs-legacy npm
```

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

```bash
npm install -g abort-incomplete-multipart
```

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

```bash
npm link
```

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

```bash
abort-incomplete-multipart --help
```

## Usage

First, [configure your AWS credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html).
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:

```bash
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:

```bash
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
```