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,