This commit is contained in:
dzikafoczka 2024-12-21 09:02:10 +01:00
parent 85e014c6b5
commit 0c974b3f44

2
lb2.py
View File

@ -97,7 +97,7 @@ def create_route_table(ec2_client, vpc_id, subnet_id, igw_id):
# Create route to Internet Gateway
ec2_client.create_route(
RouteTableId=route_table_id,
DestinationCidrBlock='0.0.0.0/0', # Ruch wychodzący do Internetu
DestinationCidrBlock='0.0.0.0/0',
GatewayId=igw_id
)
print("Added route to Internet Gateway in Route Table.")