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