lb2
This commit is contained in:
parent
350c560e5d
commit
14161fd8ef
4
lb2.py
4
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',
|
||||
|
Loading…
Reference in New Issue
Block a user