Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/alexanderprendota/s3-objects-migrator
- Owner: AlexanderPrendota
- License: apache-2.0
- Created: 2019-01-21T07:55:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-18T14:20:39.000Z (almost 5 years ago)
- Last Synced: 2024-10-30T06:41:03.591Z (about 2 months ago)
- Topics: aws, aws-lambda, aws-sdk, kotlin, kotlin-coroutines, s3-storage
- Language: Kotlin
- Homepage:
- Size: 70.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```