Skip to content

This repo contact all the DevOps projects that I've submitted to company for employment

Notifications You must be signed in to change notification settings

TennysonGeorge/Fargate-scheduled-task-tech-test

Repository files navigation

Fargate scheduled task tech test

For this challenge, we would like you to write a CloudFormation template that meets the following requirements:

  • Defines a scheduled Fargate task that runs once per minute. The Fargate task must print a Random Useless Fact obtained from this public API: https://uselessfacts.jsph.pl/api/v2/facts/random to stdout. Only the "text" portion of the API response needs to be printed.
  • The Fargate task container must be configured to send stdout to CloudWatch Logs. The reviewer of your submission will check CloudWatch Logs for the expected output.
  • The CloudFormation stack should provide the CloudWatch Log Group name associated with the previous item in it's Outputs.
  • In this repo you will also find our CloudFormation style guide, which goes over the basic CloudFormation guidelines we follow as a company. Please review those and ensure the CloudFormation template(s) you are creating follow the guidelines.
  • Be well tested!

In addition to the CloudFormation template, we would also like you to fill in the Submission Description section of this README with a brief description of what you're submitting. At a minimum, you should include a description of the architecture and how to deploy it, but feel free to include anything you feel is relevant to the reviewer.

❗️ If you're unclear about the requirements or expectations in any way, please reach out and let us know. Being inquisitive and detail-oriented will only make you look better in our eyes, so don't be shy!

Assumptions

Please assume the following conditions when creating the template:

  • The VPC/subnet(s) have already been deployed and their IDs can be provided via parameters
  • The provided subnet(s) already have access to the internet via a NAT Gateway
  • The template should not assume the existence of a default VPC.

Submission Instructions

Please create a zip file containing the CloudFormation template and any other required files and send it to Cloud303.

Please note that the reviewer will attempt to deploy your template, so please ensure that your code is portable across AWS accounts and regions.


Submission Description

This section should be filled in by the candidate

  • This is a scheduled Fargate Task Template set to make an API request to https://uselessfacts.jsph.pl/api/v2/facts/random to pull some unless facts as text every minute.
  • When deploying the stack, it required the reviewer to specifics the VPC and subnet that they will be using.
  • The reviewer might might run into some error regrading the schedule task, as I've ran into this error. But having to deploy this stack in your environment might resolve this issue.
  • This template doesn't specifics environment such as et. Dev, Staging, or Production to run this stack. It assumed that this stack will only be deploy in one environment.
  • Overall I had fun working on this and maybe if possible would like to do some code review with the reviewer to workout some debugging.

About

This repo contact all the DevOps projects that I've submitted to company for employment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published