This commit is contained in:
dzikafoczka 2024-12-20 21:05:47 +01:00
parent 6f3fa21a8e
commit d6e036dea9

2
lb2.py
View File

@ -167,7 +167,7 @@ def create_launch_template(ec2_client, key_name, security_group_id):
LaunchTemplateData={ LaunchTemplateData={
'ImageId': AMI_ID, 'ImageId': AMI_ID,
'InstanceType': INSTANCE_TYPE, 'InstanceType': INSTANCE_TYPE,
'SecurityGroupsIds': [security_group_id], 'SecurityGroupIds': [security_group_id],
'KeyName': key_name, 'KeyName': key_name,
'UserData': user_data 'UserData': user_data
} }