added AWS ELB load balancer example

This commit is contained in:
Sebastian Rieger
2021-05-22 01:48:37 +02:00
parent d43d1b3995
commit b57c26adbf
3 changed files with 520 additions and 0 deletions

View File

@ -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)