EMR

nicolaw 13th August 2018 at 9:56am
AWS
is_emr_master () {
  [[ "$(jq -r .isMaster /var/lib/info/instance.json)" == "true" ]]
}