Skip to content

Makes random files in S3 to test SQS S3 Events

Notifications You must be signed in to change notification settings

root360/s3-file-maker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S3 File generator

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.

Install and Usage

# 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 10)
    -delay int
        milliseconds between creating files (default 2000)
    -num int
        how many random files will be generated (default 100)
    -profile string
        aws profile name (default "profile-name")
    -region string
        aws region (default "eu-central-1")
        
## 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

## Use Profile and Region
$ ./main -delay 1 -num 14000000 --profile aws-profile -bucket bucketname --region eu-west-1

About

Makes random files in S3 to test SQS S3 Events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%