Skip to content

Commit

Permalink
Fix jq query
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusdeMelo committed Jan 23, 2024
1 parent 2727d0a commit 35359ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ if [[ "$provision_process_type" =~ ^web[1-9] ]]; then
fi
echo $provision_target_group_arn > .tgarn
echo "[{"Field": "path-pattern", "PathPatternConfig": {"Values": ["/text/*"]}}]" > listener-conditions.json
provision_listener_exists=$(aws elbv2 describe-listeners --load-balancer-arn $provision_alb_arn | jq --raw-output 'Listeners.ListenerArn' || echo false)
provision_listener_exists=$(aws elbv2 describe-listeners --load-balancer-arn $provision_alb_arn | jq --raw-output '.Listeners[0].ListenerArn' || echo false)
if [ "$provision_listener_exists" != false ]; then
provision_listener_rule_create_output=$(aws elbv2 create-rule \
--listener-arn $provision_listener_exists \
Expand Down

0 comments on commit 35359ad

Please sign in to comment.