This repository contains solutions to the coding challenges presented by KPMG.
I chose AWS to set up a 3-tier environment. The infrastructure is defined using Infrastructure-as-Code Tool, and the code can be found in the Terraform-3-tier-aws/.
To reproduce the environment, follow these steps:
- Install terraform.
- Clone this repository.
- Navigate to the Terraform-3-tier-aws/
- Execute terraform init , terraform plan , terraform apply to create the 3-tier environment.
I used python to write a script s3_bucket_metadata.py that queries the metadata of an instance in AWS s3. The output is formatted as JSON.
To use the script:
- Install python.
- Execute "python s3_bucket_metadata.py" and provide necessary input.
The script allows for retrieving a particular data key individually.
I implemented a function in python to retrieve a value from a nested object based on a given key. The code can be found in nested_object.py.
To use the function:
- Import the function into your code.
- Call the function with the object and key as parameters.
To run the tests, execute "python nested_object.py"