Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 1.33 KB

README.md

File metadata and controls

39 lines (21 loc) · 1.33 KB

s3-grep

GitHub release GoDoc MIT license

Command Line Interface to grep through contents of objects in s3 buckets.

Installation

Use go get

$ go get -u github.com/dabdada/s3-grep

Usage

$ s3-grep search_query --profile <some_configured_aws_profile> --bucket <some_bucket_name>

Example:

$ 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

Requirements

You need your AWS credentials configured (How To) and have the necassary access rights for the bucket to grep in.

Development

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 ./...