「JMESPath」 ってどうやって発音するんだろ。
RESULT=0 MAX_PRIORITY=$(aws --profile ${AWS_PROFILE} \ elbv2 describe-rules \ --listener-arn ${LISTENER_ARN} \ --query "max_by(Rules[?Priority!='default'], &to_number(Priority)).Priority") || RESULT=$?
RESULT=0 MIN_PRIORITY=$(aws --profile ${AWS_PROFILE} \ elbv2 describe-rules \ --listener-arn ${LISTENER_ARN} \ --query "min_by(Rules[?Priority!='default'], &to_number(Priority)).Priority") || RESULT=$?