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 78fc69b commit 7b4db94
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions aws/aws_eks_create_custom_ami.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,6 @@ instance_state="$(
--output text
)"
if [ "$instance_state" = "terminated" ]; then
last_token="${instance_name##*-}"
if is_int "$last_token"; then
num="$((last_token + 1))"
instance_name="${instance_name%-*}"
else
num=2
fi
instance_name+="-$num"
instance_id=''
fi

Expand Down

0 comments on commit 7b4db94

Please sign in to comment.