Deploy AWS EC2 server following some automation Rules -- 2

Job ID: 36532690

Budget: $10 – $30 USD

Generate a simple Ansible Script.
I was AWS account and can make the EC2 server.
Script the creation of a web server, and a script to check the server is up.
set up a new server in AWS. It must:

* Be publicly accessible.
* Run Nginx - something to serve up content. I will provide the content.
* Provide instructions on how to create the server
* Provide Instructions on deploying the content
* Provide a script that can be run periodically (and externally) to check if the server is up and serving the expected content
Use your scripting language of choice.
* Create the server.
* Deploy the content.
* Run the checker script.
* Automate as much as possible.
* Document each step.
* Make it easy to install

Automate the server setup using a CloudFormation template. Document what is happening in the template
* Use a configuration management tool Ansible to bootstrap the server. Document what is happening in your definition files
* Put the server behind a load balancer. Automate this if possible using any tools you are familiar with and document what is going on
* Make the checker script SSH into the instance, check if Nginx is running and start it if it isn't.
* Run Nginx inside a Docker container
* Make it Cloud provider agnostic - i.e. can we repeat this in Azure or Google Cloud Platform

!!! More details over chat !!!
Related categories: Linux Amazon Web Services Bash Scripting DevOps Ansible