DevOps Coding Challenge (Allot at least 2 hours)
s3 manipulation
- Clone the read-only bucket https://s3-us-west-2.amazonaws.com/bbc-devops-challenge/, and its contents into your personal s3 account. Read through each JSON file located on this your copy of this bucket. If the key "bump_waste_threshold" is not present in any
.json
files, add this key with a default value of '.23' and replace the old file.
Directory microservice
Generate a web application in a framework of your choice that does the following:
- Connects to the s3 bucket cloned above, and stores a text representation of the subdirectories of the bucket in Redis (or a similar key-value store). This text representation should match the output format of the unix command
tree
. Additionally, store thejson
files as the values with keys given by their paths from the root of this bucket. - Serves the plain text of the directory tree from the root path of the application.
- All non-root paths must return a sample of poetry(any