Skip to content

Commit

Permalink
updated ec2-instance-types script to support m6i
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulku committed May 16, 2023
1 parent af19aa0 commit a36208f
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions utilities/modify-instance-types.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ else
fi

if [ -z "$iNewType" ]; then
echo " MISSING Parameter: New Instance Type is required: m5.[xlarge-24xlarge], c5n.[4xlarge-18xlarge]"
echo " MISSING Parameter: New Instance Type is required: m5.[xlarge-24xlarge], m6i.[xlarge-32xlarge], c5n.[4xlarge-18xlarge]"
fail="true"
else
echo " *New Instance Type = $iNewType"
Expand Down Expand Up @@ -153,6 +153,30 @@ case $iNewType in
m5.24xlarge)
echo " --New instance type $iNewType confirmed"
;;
m6i.xlarge)
echo " --New instance type $iNewType confirmed"
;;
m6i.2xlarge)
echo " --New instance type $iNewType confirmed"
;;
m6i.4xlarge)
echo " --New instance type $iNewType confirmed"
;;
m6i.8xlarge)
echo " --New instance type $iNewType confirmed"
;;
m6i.12xlarge)
echo " --New instance type $iNewType confirmed"
;;
m6i.16xlarge)
echo " --New instance type $iNewType confirmed"
;;
m6i.24xlarge)
echo " --New instance type $iNewType confirmed"
;;
m6i.32xlarge)
echo " --New instance type $iNewType confirmed"
;;
c5n.4xlarge)
echo " --New instance type $iNewType confirmed"
;;
Expand Down Expand Up @@ -459,5 +483,4 @@ if [ $stopped = 0 ]; then
echo " ******* ${#instanceIDs[@]} Instances changed to $iNewType, started, and in quorum"
else
echo " ******* ${#instanceIDs[@]} Instances changed to $iNewType. Cluster remains stopped."
fi

fi

0 comments on commit a36208f

Please sign in to comment.