Get currently set profile in AWS CLI

Viewed 1865
1 Answers

A good sanity check I use is to run

aws sts get-caller-identity

Based on the docs:

Returns details about the IAM user or role whose credentials are used to call the operation.

Can give you a hint around which profile you currently have set

Related