function lookup-policy --argument name
    if test -z "$name"
        stderr "usage: lookup-policy <name>"
        return (false)
    end

    aws iam list-policies | jq --raw-output ".Policies[] | select(.PolicyName == \"$name\") .Arn"
end

Add function to look up the ARN for a managed policy
Add function to look up the ARN for a managed policy

colstrom/piranha,colstrom/shellops-aws