Posts

Showing posts from August 21, 2019

Terraform setting up clustered web server !! Getting Started Part-3!!

Image
Last two posts first we saw the basics of terraform " Part-1 " and then created simple web server " Part-2 ".  Now as we know that running single web server in production is never a good idea. We always need services which should be highly available as well as should be scalable as per the requirements. Creating and managing a cluster always going to be a pain point. Fortunately  with new cloud technologies now its possible to automate all this and things will be much easier to manage. In this tutorial we'll use AWS's "Auto Scaling Group (ASG)".     An ASG takes care of everything automatically, including launching a cluster of EC2 instances , monitoring the health of each instance, replacing the failed instances and adjusting the size of cluster in response to the load. A full working ASG stack include multiple resources to make a working cluster. It starts with " launch configuration " which basically specify how a ...