| Crates.io | tee-s3 |
| lib.rs | tee-s3 |
| version | 0.1.5 |
| created_at | 2025-01-21 13:51:50.279108+00 |
| updated_at | 2025-07-25 19:30:59.439877+00 |
| description | A command-line utility that streams stdin to both stdout and Amazon S3, similar to the Unix `tee` command but with S3 as an output. |
| homepage | https://github.com/leoleoasd/tee-s3 |
| repository | https://github.com/leoleoasd/tee-s3 |
| max_upload_size | |
| id | 1524916 |
| size | 74,700 |
A command-line utility that streams stdin to both stdout and Amazon S3, similar to the Unix tee command but with S3 as an additional output.
To allow real-time outputs, this tool will produce one PutObject request at every second, which will be charged every time.
cargo install tee-s3
my-bucket have to be a directory bucket.
tee-s3 --bucket my-bucket --key my-key
--bucket: S3 bucket name (required)--key: S3 object key/path (required)--profile: AWS profile name (optional, defaults to "default")--region: AWS region (optional, uses default from AWS configuration)# Stream a file to both stdout and S3
cat large-file.txt | tee-s3 --bucket my-bucket --key logs/large-file.txt
# Use with other Unix commands
echo "Hello, World!" | tee-s3 --bucket my-bucket --key hello.txt
# Specify AWS profile and region
python3 train.py | tee-s3 --bucket logs-bucket --key app.log --profile prod --region us-west-2
The tool uses the AWS SDK for Rust and follows standard AWS configuration practices. Make sure you have:
~/.aws/credentials)~/.aws/config)MIT