Command Line Interface to grep through contents of objects in s3 buckets.
$ go get -u github.com/dabdada/s3-grep
$ s3-grep search_query --profile <some_configured_aws_profile> --bucket <some_bucket_name>
$ s3-grep hello --profile dev --bucket myBucket
If you want to search for multiple seperated words you need to enclose the search query in quotation marks:
$ s3-grep "hello world" --profile dev --bucket myBucket
You need your AWS credentials configured (How To) and have the necassary access rights for the bucket to grep in.
You need to install Golang >= 1.11 (Download)
$ git clone [email protected]:dabdada/s3-grep.git
$ export GO111MODULE=on
Build with go build
and run tests with go test ./...