Hosting » AWS » Where is my AWS credentials file?

Where is my AWS credentials file?

Last updated on September 25, 2022 @ 6:26 pm

AWS credentials are stored in ~/.AWS/credentials on your computer. If you have not set up an AWS account, you can create one at https://AWS.

Amazon.com/. After you create an account, you can view your credentials file by opening a terminal and typing:.

$ cat ~/.AWS/credentials

If you have set up an AWS account, your credentials file might look something like this:

PRO TIP: If you are working with AWS, it is important to keep your credentials file safe and secure. Do not share your credentials file with anyone, and make sure to store it in a safe place. If you think your credentials file may have been compromised, contact AWS support immediately.
[default] AWS_access_key_id = AKIAIOSFODNN7EXAMPLE AWS_secret_access_key = SECRET

The important parts of this file are the AWS_access_key_id and AWS_secret_access_key values. You will need these values to log in to your AWS account and access your resources.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.