To check if you're logged in, you can call this command which lists information about your AWS user session, or an error if you're not logged in:
$ aws sts get-caller-identity
~
📡
RSS feed
~
✉
torstein.k.johansen @ gmail
~
🐘
@skybert@hachyderm.io
~
🎥
youtube.com/@skybert