This commit is contained in:
dzikafoczka 2024-12-20 23:12:25 +01:00
parent 012a2a11fd
commit 592324d7cd

3
lb2.py
View File

@ -235,7 +235,8 @@ def create_ec2_instances(ec2_client, launch_template_id, subnet_id):
# Create EC2 instances # Create EC2 instances
response = ec2_client.run_instances( response = ec2_client.run_instances(
LaunchTemplate={ LaunchTemplate={
'LaunchTemplateId': launch_template_id 'LaunchTemplateId': launch_template_id,
'Version': '$Latest'
}, },
MinCount=2, MinCount=2,
MaxCount=2, MaxCount=2,