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 378a619 commit ef40408
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws/aws_eks_create_custom_ami.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ for((i=1; i <= 100 ; i++)); do
--query "Reservations[0].Instances[0].State.Name" \
--output text
)"
if grep -i -e terminated -e shutting-down <<< "$instance_state"; then
timestamp "This instance is already terminated, will try a new instance name"
if grep -qi -e terminated -e shutting-down <<< "$instance_state"; then
timestamp "This instance is already terminated / shutting down, will try a new instance name"
echo
continue
fi
fi
Expand Down

0 comments on commit ef40408

Please sign in to comment.