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',