added AWS ELB load balancer example
This commit is contained in:
@ -66,7 +66,10 @@ def main():
|
||||
#
|
||||
###########################################################################
|
||||
|
||||
print("Fetching images (AMI) list from AWS region. This will take a lot of seconds (AWS has a very long list of "
|
||||
"supported operating systems and versions)... please be patient...")
|
||||
images = conn.list_images()
|
||||
|
||||
# image = ''
|
||||
# for img in images:
|
||||
# # if img.name == ubuntu_image_name:
|
||||
@ -74,6 +77,8 @@ def main():
|
||||
# print(img)
|
||||
# if img.id == ubuntu_image_name:
|
||||
# image = img
|
||||
|
||||
# fetch/select the image referenced with ubuntu_image_name above
|
||||
image = [i for i in images if i.name == ubuntu_image_name][0]
|
||||
print(image)
|
||||
|
||||
|
Reference in New Issue
Block a user