Skip to content

Commit

Permalink
updated aws_eks_create_custom_ami.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Jan 31, 2025
1 parent ae9198f commit 3ad9230
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aws/aws_eks_create_custom_ami.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,12 @@ fi
echo

timestamp "Copying script to instance: $script"
scp -i ~/.ssh/"$ssh_key_name.pem" -o StrictHostKeyChecking=no "$script" ec2-user@"$ip":/tmp/

# this is a brand new instance so the SSH host key won't be trusted
scp -i ~/.ssh/"$ssh_key_name.pem" \
-o StrictHostKeyChecking=no \
"$script" \
ec2-user@"$ip":/tmp/
echo

instance_script="/tmp/${script##*/}"
Expand Down

0 comments on commit 3ad9230

Please sign in to comment.