Code Monkey home page Code Monkey logo

badbucket's People

Contributors

zubux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

badbucket's Issues

panic: Unable to open file "testfile", open foo/: no such file or directory

Hit this error with a world readable bucket that only contained a single folder called foo, no files.

⇒  badbucket -b foo-example-bucket
2017/08/17 16:08:45 Region detected for bucket foo-example-bucket: ap-southeast-2
Listable: false
2017/08/17 16:08:45 Unable to open file "testfile", open foo/: no such file or directory
panic: Unable to open file "testfile", open foo/: no such file or directory

goroutine 1 [running]:
log.Panicf(0x14399d4, 0x1a, 0xc420499e38, 0x2, 0x2)
	/usr/local/Cellar/go/1.8.3/libexec/src/log/log.go:329 +0xda
github.com/zuBux/badbucket.AreFilesReadable(0xc42013a600, 0x7fff5fbff075, 0x16, 0x0, 0x0, 0x0)
	/Users/foo/go/src/github.com/zuBux/badbucket/badbucket.go:58 +0x2e8
main.main()
	/Users/foo/go/src/github.com/zuBux/badbucket/cmd/badbucket/badbucket.go:38 +0x371

Error: No files in bucket

badbucket appears to hit an error when there are no files in a bucket, and then stops checks.

This was tested on a new bucket, world readable, with no files.

2017/08/17 16:06:59 Region detected for bucket foo-example-bucket: ap-southeast-2
Listable: false
2017/08/17 16:06:59 Error: No files in bucket

Ability to select which aws profile to use

Currently it appears that badbucket will just use the default aws profile configured. It would be cool if we could specify which profile to use, like with the aws CLI tools.

If this feature is already implemented, it wasn't obvious how to use it from the output of -h:

⇒  badbucket -h
Usage of badbucket:
  -b string
    	S3 bucket name
  -bucket string
    	S3 bucket name
  -r string
    	AWS region
  -region string
    	AWS region

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.