Yet another S3 command-line, but environment variables driven, even for per profile or bucket credentials.
NOTE: Experimental v0.0.2 is somewhat feature complete.
Key points:
- Use the official AWS-SDK-S3
- Environment variables driven
- Will mimic most of the official aws s3 ... command line (however, does not intend to be too dogmatic)
- Will eventually provide a lib as well.
Note: Tested on Mac and Linux (might not work on Windows for now)
```sh
cargo install ss3
binst install ss3 ```
```sh
ss3 ls s3://my-bucket -r
ss3 cp ./image-01.jpg s3://my-bucket/my-folder
ss3 cp ./ s3://my-bucket/my-folder/ -r
ss3 cp s3://my-bucket/image-01.jpg ./downloads/
ss3 cp s3://my-bucket/my-folder/ ./downloads/ -r ```
Here is the order in which the credentials will be resolved:
SS3_BUCKET_... environments for the given bucket
SS3_BUCKET_bucket_name_KEY_IDSS3_BUCKET_bucket_name_KEY_SECRETSS3_BUCKET_bucket_name_REGION SS3_BUCKET_bucket_name_ENDPOINT (optional for minio) --profile profile_name, check the following SS3_PROFILE_... environments
SS3_PROFILE_profile_name_KEY_IDSS3_PROFILE_profile_name_KEY_SECRETSS3_PROFILE_profile_name_REGION SS3_PROFILE_profile_name_ENDPOINT (optional for minio) --profile profile_name, and no profile environments, will check default AWS config filesAWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_DEFAULT_REGIONNOTE: '-' characters in profile and bucket names will be replaced by '_' for environment names above.