Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alexanderprendota/s3-objects-migrator

Migrate object with metadata between s3 storages.
https://github.com/alexanderprendota/s3-objects-migrator

aws aws-lambda aws-sdk kotlin kotlin-coroutines s3-storage

Last synced: 5 days ago
JSON representation

Migrate object with metadata between s3 storages.

Awesome Lists containing this project

README

        

# S3 Objects migrator

Migrate objects with metadata between two S3 storage.

## How to start

Please provide AWS Credential and region in env variables.

1. Add the env variables :wrench:

| ENV | Description |
| -------------------|----------------------|
| BUCKET_FROM | Amazon S3 bucket name|
| BUCKET_TO | Amazon S3 bucket name|
| PREFIX_FROM | Prefix to file |
| PREFIX_TO | Prefix to file |

The default prefix is empty. If you wanna change the file location just set prefix's names.
The script will replace PREFIX_FROM from BACKET_FROT to PREFIX_TO from BUCKET_TO.
How to prefix works: https://pl.kotl.in/fInJE2a-2.

2. Build :hammer:

```bash
./gradlew build
```

3. Run :rocket:

```bash
./gradlew execute
```