From 14161fd8ef8d8fc97f7b0647e8cc8fafc1529f9a Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Fri, 20 Dec 2024 21:30:54 +0100 Subject: [PATCH] lb2 --- lb2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lb2.py b/lb2.py index ccf9c27..d7450c5 100644 --- a/lb2.py +++ b/lb2.py @@ -196,11 +196,11 @@ def create_target_group(elbv2_client, vpc_id): return response['TargetGroups'][0]['TargetGroupArn'] -def create_load_balancer(elbv2_client, subnet_id, security_group_id): +def create_load_balancer(elbv2_client, subnet_ids, security_group_id): # Create Load Balancer response = elbv2_client.create_load_balancer( Name=f"{PREFIX}-lb", - Subnets=[subnet_id], + Subnets=subnet_ids, SecurityGroups=[security_group_id], Scheme='internet-facing', Type='application',