From 767ab8857d4efd08599381da73c9d582325f7f6f Mon Sep 17 00:00:00 2001 From: "abir.chebbi" <abir.chebbi@hes-so.ch> Date: Fri, 4 Oct 2024 16:07:34 +0200 Subject: [PATCH] Update .gitignore to include config.ini and Readme --- .gitignore | 2 +- Part2/config.ini | 6 +++--- README.md | 11 ++++++++--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 8b13789..2fa7ce7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ - +config.ini diff --git a/Part2/config.ini b/Part2/config.ini index 235a332..6347c3f 100644 --- a/Part2/config.ini +++ b/Part2/config.ini @@ -1,7 +1,7 @@ [aws] -aws_access_key_id = -aws_secret_access_key = -region = +aws_access_key_id = AKIAVEKYIBTQKSG2R342 +aws_secret_access_key = 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 +region = us-east-1 [opensearch] endpoint = diff --git a/README.md b/README.md index d2c3426..480650d 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Use the provided create_instance.py script to deploy your EC2 instance with the In the `ec2.create_instance` we have the following parameters: -- ImageId: `ami-05747e7a13dac9d14`, this is a custom Amazon Machine Image (AMI) that contains all the configurations and dependencies required for the chatbot application. +- ImageId: `ami-08919ae65ab65be94`, this is a custom Amazon Machine Image (AMI) that contains all the configurations and dependencies required for the chatbot application. - UserData: is used to run script after the instance starts. The script will put the credentials in the instance so that the instance can aceess other services in AWS, the endpoint of the Vector DB, and the index name. Then the script will run the application. This is the script: @@ -96,14 +96,19 @@ In the `ec2.create_instance` we have the following parameters: source /home/ubuntu/chatbotlab/bin/activate ## Run the apllication cd /home/ubuntu/chatbot-lab/Part2 - streamlit run main.py + streamlit run chatbot.py """ ```` Run the following command to create your instance: -`python3 create_instance.py` +`python3 create_instance.py --ami_id `ami-08919ae65ab65be94` --key_pair_name [KeyPairName] --security_group_id [SecurityGroupID]` + +Where: + +- **[KeyPairName]**: The name of the key_pair created earlier. +- **[SecurityGroupID]**: The id of the security group created earlier. ## Step 3: Accessing the app: -- GitLab