Simple utility to copy files from/to s3.
The AWS CLI is the defacto tool of choice for anything AWS related including S3. However, the CLI toolkit is relatively heavy and requires a number of dependencies which will bloat any standard docker image. The s3cp command solves this problem by providing a simple, standalone AWS S3 copy utility fit for minimal docker containers.
To install s3cp simply do:
$ go get github.com/opendevsecops/go-s3cp
Once the command is installed in your home go/bin folder execute it like this:
$ ~/go/bin/go-s3cp --help
The command is very simple as it serves a single purpose (copying a file to/from/ s3). To copy a local file into s3 do:
$ ~/go/bin/go-s3cp --from /path/to/file --to s:https://bucket/key
To copy a file from s3 do:
$ ~/go/bin/go-s3cp --to /path/to/file --from s:https://bucket/key