If you made use of the aws configure command to set up the access and secret keys to your AWS Profile to run CLI commands and you are wondering where are these details stored on your Mac? Well, these details are stored under your home directory under a hidden .aws folder.
Steps to locate AWS Config Files
cd ~/.aws
ls -l
-rw------- 1 c2ctechtv staff 44 Aug 10 00:25 config
-rw------- 1 c2ctechtv staff 116 Aug 9 22:22 credentials
drwxr-xr-x 3 c2ctechtv staff 96 Aug 10 00:34 sso
cat config
[default]
region = us-east-2
output = table
cat credentials
[default]
aws_access_key_id = XXAAYMUHEUKMZMW2HJK2
aws_secret_access_key = jXAemA2uI6aX1iypqUbSQ5ZKonJQYNI2hpOYhwAd

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!