How to find out your AWS credentials on Mac (Access and Secret Key)

Last modified date

Comments: 0



When setting up the AWS CLI on your Mac, you will enter you AWS Access Key and AWS Secret Access Key.

You may need to retrieve these keys for future use, here is how you do it.


Open up a new terminal and make sure that you are in the root directory of your file system. You can do this by running the cd command:


Then run the following command to retrieve your AWS credentials:

cat .aws/credentials

The terminal will then output your AWS Key and AWS Secret Key:

aws_access_key_id = <<ACCESS KEY HERE>>
aws_secret_access_key = <<SECRET ACCESS KEY HERE>>


Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.