HAProxy on AWS
Jan 28, 2021
So this post is extended from task
In this we have to Configure the HAProxy and Webserver over the EC2 instances in AWS
One may think that it is similar to previous task the only change we need to do is the inventory in ansible but there are few other changes that needs to be done:
- make root password in ec2 instance
2. enable passwordauthentication to yes
3. copy ssh keys for passwordless login
- For making root password use command
passwd root
2. For enabling passwordauthentication
edit /etc/ssh/sshd_config
3. For copying ssh keys use
ssh-copy-id root@PublicIP
Rest all the things are same and the reason for that is been using Ansible
The video has been made which shows ever detail about this task from scratch
This video starts from launching instances till configuring them as LB and backend servers