This has a pretty specific use case, BuildHub#456. This will generate random files into S3 and every so often generate a buildhub.json file.
Make sure your AWS DEV IAM credentials are in ./aws/config
. Right now it only supports them being your [default]
credentials... ¯\_(ツ)_/¯
.
# install dependencies
$ dep ensure
# build it
$ go build main.go
# run it
$ ./main
# run-time options
$ ./main --help
Usage of ./main:
-bucket string
s3 bucket name (default "buildhub-sqs-test")
-chance int
chance out of 100 a buildhub.json file is generated (default 25)
-delay int
milliseconds between creating files (default 2000)
-num int
how many random files will be generated (default 100)
## GENERATE FOR A LONG TIME
$ ./main -num 100000 -delay 1000
## GENERATE LOTS OF FILES QUICKLY
$ ./main -delay 10
## GENERATE LOTS OF BUILDHUB.JSON FILES
$ ./main -chance 80