The "instances" attribute of the LoadBalancer class only contains a tiny bit of information about the instance - it's not a full Instance object. To get the full instance object you must use the instanceId, which is available, to query for more info. This code snippet extends yours with the required calls: Create connection to ec2, credentials stored in environment ec2_conn = connect_ec2() conn = regions3.
Connect(aws_access_key_id= access, aws_secret_access_key = secret_key) loadbalancers = conn. Get_all_load_balancers() for lb in loadbalancers: for I in lb. Instances: #Here, 'i' is an InstanceInfo object, not a full Instance instance_id = i.Id #Query based on the instance_id we've got #This function actually gives reservations, not instances reservations = ec2_conn.
Get_all_instances(instance_ids=instance_id) #pull out our single instance instance = reservations0. Instances0 #Now we've got the full instance and we can get parameters from here print(instance. Public_dns_name).
The "instances" attribute of the LoadBalancer class only contains a tiny bit of information about the instance - it's not a full Instance object. To get the full instance object you must use the instanceId, which is available, to query for more info. This code snippet extends yours with the required calls: #Create connection to ec2, credentials stored in environment ec2_conn = connect_ec2() conn = regions3.
Connect(aws_access_key_id= access, aws_secret_access_key = secret_key) loadbalancers = conn. Get_all_load_balancers() for lb in loadbalancers: for I in lb. Instances: #Here, 'i' is an InstanceInfo object, not a full Instance instance_id = i.Id #Query based on the instance_id we've got #This function actually gives reservations, not instances reservations = ec2_conn.
Get_all_instances(instance_ids=instance_id) #pull out our single instance instance = reservations0. Instances0 #Now we've got the full instance and we can get parameters from here print(instance. Public_dns_name).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.