diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index c6d5431d..247f1651 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -31,7 +31,7 @@ jobs: - name: Fetch EC2 instances from Auto Scaling Group run: | INSTANCE_IDS=$(aws autoscaling describe-auto-scaling-groups --auto-scaling-group-names $AWS_AUTO_SCALING_GROUP_NAME --query "AutoScalingGroups[0].Instances[*].InstanceId" --output json) - INSTANCE_ID_STRING=$(echo $INSTANCE_IDS | jq -r '. | join(" ")') + # INSTANCE_ID_STRING=$(echo $INSTANCE_IDS | jq -r '. | join(" ")') # echo "Fetched instances from Auto Scaling Group: $INSTANCE_ID_STRING" - name: Open SSH port to GitHub Actions IP @@ -41,7 +41,7 @@ jobs: - name: Deploy to EC2 run: | # Extract the instance IDs using jq (JSON processor) - IFS=$'\n' read -d '' -r -a INSTANCES <<< "$(echo "$INSTANCE_ID_STRING" | jq -r '.[]')" + IFS=$'\n' read -d '' -r -a INSTANCES <<< "$(echo "$INSTANCE_IDS" | jq -r '.[]')" # Iterate over the array for INSTANCE_ID in "${INSTANCES[@]}"; do