To use aws cli, its common to invoke built-in features like --filters
and --query
however they aren't avaiable for all the commands.
for my use case i wanted to get a role matching a name, i.e. regex pattern . that was very easy using jq
if i want to get a role matching name eksctl-dev-cluster-addon-iamserviceaccount
then to get ARN
of that role is simply doing