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
- Host: GitHub
- URL: https://github.com/thenickdude/abort-incomplete-multipart
- Owner: thenickdude
- License: other
- Created: 2017-05-12T03:34:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-22T20:35:16.000Z (almost 7 years ago)
- Last Synced: 2025-02-26T10:22:36.069Z (10 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.md
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
```