• export AWS_PROFILE=my-profile to temporary switch to my-profile. By default, AWS with take [default] profile, if u want to change my-profile to 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