From 592324d7cd131d497dc0acf341c6773d5dde6041 Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Fri, 20 Dec 2024 23:12:25 +0100 Subject: [PATCH] lb2 --- lb2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lb2.py b/lb2.py index b400803..4104276 100644 --- a/lb2.py +++ b/lb2.py @@ -235,7 +235,8 @@ def create_ec2_instances(ec2_client, launch_template_id, subnet_id): # Create EC2 instances response = ec2_client.run_instances( LaunchTemplate={ - 'LaunchTemplateId': launch_template_id + 'LaunchTemplateId': launch_template_id, + 'Version': '$Latest' }, MinCount=2, MaxCount=2,