How to find out your AWS credentials on Mac (Access and Secret Key)
Contents
Problem
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.
Solution
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:
cd
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:
[default]
aws_access_key_id = <<ACCESS KEY HERE>>
aws_secret_access_key = <<SECRET ACCESS KEY HERE>>