bin/MACC02VK5ECHTD7/jws-ami
#!/bin/sh
TOKEN=$(grep token ~/.deploy/creds.yaml | sed 's/.*token: //g')
for account in test stage prod cgraph_test cgraph_stage cgraph_prod; do
echo $account
curl -s -w "\n" --header "Authorization: Bearer $TOKEN" --header "Content-Type:application/json" "https://imr.monitoring.bestbuy.com/api/configuration/environments/$account" |
jq ".item.configuration.shared_$account.build_ami.centos" | grep us
done