Skip to content

Instantly share code, notes, and snippets.

@puffin
Last active March 2, 2017 20:21
Show Gist options
  • Save puffin/74949aa600a56e5e5ed21dc632195173 to your computer and use it in GitHub Desktop.
Save puffin/74949aa600a56e5e5ed21dc632195173 to your computer and use it in GitHub Desktop.
DevOps Challenge

The Challenge

Your challenge is to develop an AWS S3 storage analysis tool. To test your tool, you will have to create a free Amazon account (if you don't already have one).

Specifications

The tool is a shell command line utility (could be either Mac or Linux) that returns informations over all S3 buckets in an Amazon account.

The tool must returns the following informations:

  • Bucket name
  • Creation date (of the bucket)
  • Number of files
  • Total size of files
  • Last modified date (most recent file of a bucket)

The following options should be supported:

  • Ability to get the size results in bytes, KB, MB, ...
  • Organize the information by storage type (Standard, IA, RR)
  • Filter the results in a list of buckets (bonus point for regex support)
  • Ability to group information by regions

Some additional features that could be useful (optional)

Some statistics to check the percentage of space used by a bucket, or any other good ideas you could have, are more than welcome.

Rules

  • Your are free to use the programming language and the SDK of your choice.
  • The overall performance of your tool will be evaluated.
  • Your code must be made available as a git fork.

Advices

  • Try to design and implement your solution as you would do for real production code. Create clean, maintainable code. This is not a programming contest where dirty hacks win the game.
  • Feel free to add more features! Really, I'm curious about what you can think of. I'd expect the same if you worked with us.
  • Documentation and maintainability is a plus.
  • Don't you forget those unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment