Splits up behaviour of aws and aws-identity command