Skip to content

Commit

Permalink
Update buildami.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ankithreddypati committed Dec 5, 2023
1 parent 109e52d commit bac40ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buildami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
echo "AUTO_SCALING_GROUP_NAME=$AUTO_SCALING_GROUP_NAME" >> $GITHUB_ENV
LAUNCH_TEMPLATE_NAME=$(aws autoscaling describe-auto-scaling-groups --auto-scaling-group-name $AUTO_SCALING_GROUP_NAME --query "AutoScalingGroups[0].LaunchTemplate.LaunchTemplateName" --output text)
LAUNCH_TEMPLATE_VERSION='Latest'
LAUNCH_TEMPLATE_VERSION='$Latest'
if [ -z "$LAUNCH_TEMPLATE_NAME" ]; then
echo "No Launch Template found for the Auto Scaling Group."
Expand All @@ -103,7 +103,7 @@ jobs:
echo "Launch Template Name: $LAUNCH_TEMPLATE_NAME"
aws autoscaling update-auto-scaling-group --auto-scaling-group-name $AUTO_SCALING_GROUP_NAME --launch-template LaunchTemplateName=$LAUNCH_TEMPLATE_NAME,Version=2
aws autoscaling update-auto-scaling-group --auto-scaling-group-name $AUTO_SCALING_GROUP_NAME --launch-template LaunchTemplateName=$LAUNCH_TEMPLATE_NAME,Version=$LAUNCH_TEMPLATE_VERSION
- name: Instance refresh and wait
env:
Expand Down

0 comments on commit bac40ba

Please sign in to comment.