From 089b5a660a389d838cf13563ef4d5ad9f2fb5be6 Mon Sep 17 00:00:00 2001 From: JustFiesta Date: Fri, 17 May 2024 10:44:53 +0200 Subject: [PATCH] Small path fixups and removal of redundand reads --- run_container_on_EC2.sh | 6 +++--- send_image_to_aws.sh | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/run_container_on_EC2.sh b/run_container_on_EC2.sh index 2660f5578..31848a145 100644 --- a/run_container_on_EC2.sh +++ b/run_container_on_EC2.sh @@ -6,9 +6,9 @@ source ./send_image_to_aws.sh IMAGE_NAME="$ECR_NAME:latest" +FULL_KEY_PATH="" -# Get data from user -read -p "Enter the ECR image name: " IMAGE_NAME +read -p "Enter your AWS Key absoluet path: " FULL_KEY_PATH # Get the public IP of EC2 instance from previus script echo "Getting public IP address of EC2 instance..." @@ -33,7 +33,7 @@ fi # SSH to EC2 and run instance echo "SSH-ing to EC2 instance and running Docker image from ECR..." -ssh -i /path/to/your/private-key.pem ec2-user@"$PUBLIC_IP" <