-
export AWS_PROFILE=my-profileto temporary switch tomy-profile. By default, AWS with take[default]profile, if u want to changemy-profileto default, u must change that profile in config -
aws configure list-profiles -
aws iam list-roles --query "Roles[*].RoleName" --output table: list all role of current iam user in table format