From 57ce363575dc909c11f3dc97cbc58ddb51c3f6ef Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Fri, 20 Dec 2024 21:23:37 +0100 Subject: [PATCH] lb2 --- lb2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lb2.py b/lb2.py index e8b6feb..2c5d14f 100644 --- a/lb2.py +++ b/lb2.py @@ -36,11 +36,12 @@ def create_vpc(ec2_client): return vpc_id -def create_subnet(ec2_client, vpc_id): +def create_subnet(ec2_client, vpc_id, availability_zone): # Create subnet response = ec2_client.create_subnet( VpcId=vpc_id, CidrBlock='10.0.1.0/24', + AvailabilityZone=availability_zone, TagSpecifications=[ { 'ResourceType': 'subnet',