while read -r pod node
do
echo -n "$pod " \
&& aws ec2 describe-instances --output json \
| jq -re --arg node $node \
'.Reservations[].Instances[]|select(.PrivateDnsName == $node).InstanceType'
done < <(kubectl get pods --no-headers \
-o custom-columns=NAME:metadata.name,NODE:spec.nodeName)