Skip to content

Commit

Permalink
Update add-on version.
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhlogin committed Mar 26, 2024
1 parent 08134ae commit 47c398c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/eks/appsignals/enable-app-signals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ if [[ "${result}" == *"No addon: "* ]]; then
echo "EKS amazon-cloudwatch-observability add-on is now ACTIVE"
else
addon_version=$(echo "${result}" | grep "addonVersion" | awk -F '"' '{print $4}')
if [[ "$addon_version" < "v1.2.0" ]]; then
if [[ "$addon_version" < "v1.4.0" ]]; then
read -p "Do you want to update the add-on version to v1.2.0, current version $addon_version? (yes/no): " choice

if [ "$choice" == "yes" ]; then
aws eks update-addon \
--cluster-name ${CLUSTER_NAME} \
--addon-name amazon-cloudwatch-observability \
--addon-version v1.2.0-eksbuild.1 \
--addon-version v1.4.0-eksbuild.1 \
--region ${REGION}
# wait until the amazon-cloudwatch-observability add-on is active
echo "Waiting for addon to become ACTIVE..."
Expand Down

0 comments on commit 47c398c

Please sign in to comment.