Messtone LLC Manages(Elastic):

Messtone Devices autoScaling Define an Application LoadBalancer Resource: AWS::ElasticLoadBalancingV2::LoadBalancer ExampleMetadata: Infused Examplefrom aws_cdk.aws_autoscaling import AutoScalingGroup #asg:AutoScalingGroup #vpc:ec2.Vpc #Create the load balancer in a VPC. 'InternetFacing' is 'false' #by default, which creates an internal load balancer. lb=elbv2.ApplicationLoadBalancer(self,"LB",vpc=vpc,internet_facing=true)#Add a listener and open up the load balancer's security group #to the world. listener=lb. add_listener("Listener",port=80,#'open:true' is the default, Messtone can leave it out if Messtone want. Set it #to 'false' and use `listener.connections` if Messtone want to be selective #about who can access the load balancer. open=True)#Create an AutoScaling group and add it as a load balancing #target to the listener. listener. add_targets(“ApplicationFleet”, port=8080,targets=[asg]) aws:boto3 get all instances of a load balancers. import boto3 elb=boto3.client(‘elbv2’)lbs=elb.describe_load_balancers( )

Leave a comment