small pixel drawing of a pufferfish dotfiles

bin/MACC02VK5ECHTD7/jws-ami

1 2 3 4 5 6 7 8 9
#!/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