From 021c24214265378cb5ea64674097d39c97f16744 Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Fri, 20 Dec 2024 22:01:42 +0100 Subject: [PATCH] lb2 --- lb2.py | 1 + requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lb2.py b/lb2.py index c58ac06..d463e2c 100644 --- a/lb2.py +++ b/lb2.py @@ -320,6 +320,7 @@ def main(): # Create EC2 instances print("Creating EC2 instances...") instance_ids = create_ec2_instances(ec2_client, launch_template_id, subnet_id_1) + wait_for_instances_to_run(ec2_client, instance_ids) # Create Load Balancer Listener print("Creating Load Balancer Listener...") diff --git a/requirements.txt b/requirements.txt index a159952..ba8a434 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ boto3 python-dotenv -paramiko \ No newline at end of file +paramiko +requests \ No newline at end of file