From 86d1e74977dd97bba0fccd50284fc2b4b450661b Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Sat, 16 Mar 2024 20:04:44 +0100 Subject: [PATCH] add logging (#108) --- upload-ami/src/upload_ami/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upload-ami/src/upload_ami/cli.py b/upload-ami/src/upload_ami/cli.py index 84bef8e..6890820 100644 --- a/upload-ami/src/upload_ami/cli.py +++ b/upload-ami/src/upload_ami/cli.py @@ -112,6 +112,7 @@ def register_image_if_not_exists(ec2, image_name, image_info, snapshot_id, publi ec2.get_waiter("image_available").wait(ImageIds=[image_id]) if public: + logging.info(f"Making {image_id} public") ec2.modify_image_attribute( ImageId=image_id, Attribute="launchPermission", @@ -157,6 +158,7 @@ def copy_image(image_id, image_name, source_region, target_region_name): f"Finished image {image_id} from {source_region} to {target_region_name} {copy_image['ImageId']}" ) if public: + logging.info(f"Making {copy_image['ImageId']} public") ec2r.modify_image_attribute( ImageId=copy_image["ImageId"], Attribute="launchPermission",