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

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to AWS,
- Create S3 bucket and upload files using AWS Toolkit for Visual Studio Code
- Get the total size and number of objects of a AWS S3 bucket and folders
- Create an S3 bucket in a specific AWS region using CLI Command
- [Solution] AWS Java SDK S3 AmazonS3Exception InvalidAccessKeyId
- Fix AWS CLI 2 SignatureDoesNotMatch Error - Signature we calculated does not match
- 573 List of reserved keywords in AWS DynamoDB
- Quick way to setup AWS DynamoDB locally on macOS
- [Solution] com.amazonaws.dynamodb.v20120810 MissingAuthenticationToken Key Id or X.509 certificate
- Quick way to install AWS CLI for macOS Terminal
- Setting and Updating AWS CLI Configuration
- AWS S3 CLI BucketAlreadyExists when calling CreateBucket Error make_bucket failed
- How to install AWS Toolkit for Visual Studio Code
- Create S3 bucket using AWS CLI Command mb
- Fix: zsh: command not found: aws (Mac/macOS)
- How to install AWS CLI on Ubuntu
- Fix: Amazon Linux bash: sudo: command not found
- How to Setup AWS Credentials using Visual Studio Code
- AW3 CLI command to get list of all region names
- Most Essencial AWS CLI 2 S3 ls Command Options
- Install AWS CLI using Brew Command
More Posts:
- [Solution] POI: Cannot get a NUMERIC value from a STRING cell - Java
- How To Change Mac Terminal Text Color - MacOS
- Get Current Local Date and Time using Java 8 DateTime API - Java
- Connect to 3270 host IBM Mainframe using Mac Terminal (c3270) - MacOS
- SharePoint List redirect user after submitting form NewForm.aspx - SharePoint
- How to change Ping TTL value on macOS - MacOS
- Mac Shortcut for Fullscreen mode for App Window - MacOS
- Get the total size and number of objects of a AWS S3 bucket and folders - AWS