Skip to content

abelnieva/devops-coding-challenge

 
 

Repository files navigation

DevOps Coding Test

Architecture overview

Python app published over multi tier VPC with ELB in front for high availavility
alt text

Prerequisites

AWS CLI config

make sure you have your aws creds configured locally

for more information https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html

GIt clone

git clone https://github.com/abelnieva/devops-coding-challenge.git

terraform init

The terraform init command is used to initialize a working directory containing Terraform configuration files. This is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control. It is safe to run this command multiple times.

terraform plan & apply

The terraform apply command is used to apply the changes required to reach the desired state of the configuration, or the pre-determined set of actions generated by a terraform plan execution plan.

#URL endpoints

you will get ELB endpoint just after run terraform apply

root level (hello World) ------------ > version

example url : http://loadbalancerurl/version

Health check URL

python hcheckScript http://url.com

use ELB url, you can get that URL from terraform output.

Recomendation, setup the script as cron job

About

Coding challenge on infrastructure scripting and devops practices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 80.4%
  • Python 10.6%
  • Shell 9.0%