Crates.io | s3_file_manager |
lib.rs | s3_file_manager |
version | 0.2.0 |
source | src |
created_at | 2024-06-23 09:29:56.214024 |
updated_at | 2024-06-26 21:15:09.543425 |
description | A Rust crate for uploading files to AWS S3 and listing objects with pagination support. |
homepage | |
repository | https://github.com/bbelderbos/s3_file_manager |
max_upload_size | |
id | 1281086 |
size | 48,974 |
s3_file_manager
is a Rust crate for uploading files to AWS S3 and listing objects with pagination support.
Add this to your Cargo.toml
:
[dependencies]
s3_file_manager = "0.1.0"
$ cargo install s3_file_manager
$ s3 --help
A Rust crate for uploading files to AWS S3 and listing objects with pagination support.
Usage: s3 [OPTIONS] --bucket <BUCKET> --region <REGION> <--file-pattern <FILE_PATTERN>|--list-images>
Options:
-b, --bucket <BUCKET> [env: S3_BUCKET_NAME=bobby-artwork]
-r, --region <REGION> [env: AWS_REGION=us-east-2]
-f, --file-pattern <FILE_PATTERN>
-l, --list-images
-m, --max-items <MAX_ITEMS> [default: 100]
-c, --continuation-token <CONTINUATION_TOKEN>
-h, --help Print help
-V, --version Print version
This assumes that you have the AWS credentials (AWS_ACCESS_KEY_ID
and AWS_ACCESS_SECRET_KEY
) set up in your environment. If not, you can set them up using the aws configure
command.