Managing AWS ELB automations using Boto3 Python scripts. What is ELB? ELB automatically distributes incoming network traffic (may be HTTP/HTTPS requests) across multiple EC2 instances running in different Availability Zones. ELB to EC2 instances In this post I will experimenting on the following: Create ELB Apply security group Create Health check Register instances with ELB Delete ELB services 1. How to Create ELB using Python Boto3 automations? The create_load_blancer method is used to create a Load Balancer. object: client refers to elb method: create_load_blancer() which requires LoadBalancerName, Listeners that is again a dictionary of Protocol,LoadBalancerPort,InstanceProtocol, InstancePort, And another parameter 'AvailabilityZone' is important that refer to region on which you ar working on. import boto3 elb_client=boto3.client('elb') response = elb_client.create_load_blancer( LoadBalancerName='vybhava_lb', Listene...
Learn from the learners, learning is forever - Life is short it need Python programming !!!