Task 12.2

ARTH

ARTH - Task 12 👨‍💻

Task Description 📃

12.2 Configure the same setup as 12.1 over AWS using instance over there.

This task is very interesting as we have to integrate AWS with the automation tool called Ansible, we have to prepare a playbook so that we can launch instance in AWS then we have to create a load balancer over there. So lets start,

Step 1:

--> install boto3 module------------pip3 install boto3(to run aws in ansible)

--> prepare a dynamic inventory

Step2: To launch AWS instance using ansible playbook, as shown in figure below

No alt text provided for this image

Step 3: Setting up the dynamic inventory environment,

No alt text provided for this image

Then see list of all hosts using the command-

$ ansible all --list-hosts

Step 4: Connecting the instance with SSH , use the command-

$ ssh -i <key-name(in .pem)> -l ec2-user <ip>

Step 5:

--> We have to copy the key-pair using Win-scp

Step 6: configure host and config file

Step 7: making public key to private

No alt text provided for this image

Step 8: Creating load balancer role,

No alt text provided for this image

Step 9: Configure haproxy service and httpd server

No alt text provided for this image
No alt text provided for this image

Final Step:

Run all the playbooks ,

Hence task is completed

Thank you


To view or add a comment, sign in

More articles by Saket Sharma

  • AI on AWS Workshop

    The key points of AI on AWS workshop are given as: #day1 - how to make cloud intelligent and allow to read the image -…

  • Git and GitHub workshop

    The workshop was all about the deep concepts of the Git and Github , this workshop was delivered by the world record…

  • Wordpress with RDS service

    ARTH - Task 18 👨🏻💻 Task Description📄 🔅 Create an AWS EC2 instance 🔅 Configure the instance with Apache…

    2 Comments
  • Chat program using UDP(with and without multi-threading)

    ARTH - Task 17 👨🏻💻 Task Description📄 🔅-17.1 Create your own Chat Servers, and establish a network to transfer…

  • ARTH Task 14.3

    ARTH - Task 14 👨🏻💻 Task Description📄 🔰 14.3 Create an Ansible Playbook which will dynamically load the variable…

  • Retrieving new container IP

    ARTH - Task 14 👨🏻💻 Task Description📄 🔰 14.2 Further in ARTH - Task 10 have to create an Ansible playbook that…

  • Expert session: Ansible tower

    First of all I would like to thank my mentor Vimal daga sir and Preeti maam who have arranged Industry Expert Practical…

  • What is kubernetes and its case study : Nokia

    What is kubernetes? Kubernetes is the container orchestrator that was developed at Google which has been donated to the…

  • ping google but not able to ping Facebook from same system

    This task is very interesting , the task details is given as- ARTH - Task 13 👨🏻💻 Task Description📄 🔰 Create a…

Explore content categories