Skip to content
/ sasha Public

shell-like experience for browsing s3 storage

License

Notifications You must be signed in to change notification settings

cptdom/sasha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sasha

A shell for your s3-compliant storage.

A miniproject developed as a micro tool for the Tools team in Seznam's SCIF, intended to be used with its proprietary S3 storage.

Description

Sasha is supposed to simulate shell-like environment while browsing through an S3-compliant storage. Getting around while checking the contents of an S3 storage can be tricky, and Sasha is here to make it easier.

Usage

Sasha looks for the following env vars upon start:

  • AWS_ACCESS_KEY
  • AWS_SECRET_ACCESS_KEY
  • S3_ENTRYPOINT - S3 entrypoint URL, can be overridden with the -e flag.

If no credentials are found in the env, Sasha will look for your ~/.aws/config and ~/.aws/credentials files. If not found, Sasha will refuse to work.

Flag options:

  • -e - OPTIONAL. S3 entrypoint URL. Example value: https://prop.s3.loc.dom.com. If not specified, the entrypoint will be sought in the env. If it is not provided in either way, Sasha will refuse to work.
  • -p - OPTIONAL. Specifies the profile from the ~/.aws/credentials file you want to use. Overrides the env credentials. Example: sasha -p lemmy-kilmister

You can find some pre-compiled binaries in this repository.

Supported commands

  • cd (one level at the time, including cd .., or naked to go to root)
  • ls
  • file - displays the file's basic info + metadata
  • pwd
  • update/reload - reloads the current level
  • exit

...more to be added in the future.

About

shell-like experience for browsing s3 storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published