Question: Purpose This coding test will prove a candidate's basic understanding of both Terraform and Python. Scenario A vendor needs to upload a file to an
Purpose This coding test will prove a candidate's basic understanding of both Terraform and Python. Scenario A vendor needs to upload a file to an S3 bucket every day for reporting purposes. We want to make sure this bucket is emptied out on a weekly basis on Sunday's in order to keep costs down. Please create an S3 bucket and Lambda function using Terraform and any other services you deem required to complete this task. This process must be 100% automated and the Lambda function must be created using the latest version of Python. We also would like the Python script to detect if there are any lingering files left over in the S3 bucket after being emptied and alert members of the DevOps team if any are found. The candidate will Terraform the creation of AWS resources to help solve this problem. The candidate will also be expected to provide an output file as well as a tfvars file. We expect all modules and resources created to use variables as that is best practice in Terraform. The Terraform will be tested by our team to make sure it applies and deploys properly. Please provide a link to the repo this code is stored in, we will not accept a zip file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
