AWS cli get the current region

aws configure get region will get you the current region at that point in your script.

If you are using a profile, then type aws configure get --profile $PROFILE_NAME.

Comments