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,
- Get the total size and number of objects of a AWS S3 bucket and folders
- How to Create AWS SNS Topic using AWS CLI
- Fix: Amazon Linux bash: sudo: command not found
- [Solution] AWS Java SDK S3 AmazonS3Exception InvalidAccessKeyId
- Create an AWS User using CLI2 Command at a specific Path
- Fix: Missing the following required SSO configuration values: sso_start_url, sso_region
- Fix: zsh: command not found: aws (Mac/macOS)
- Configure AWS Access ID and Secret Keys using CLI on Mac
- Quick way to setup AWS DynamoDB locally on macOS
- Most Essencial AWS CLI 2 S3 ls Command Options
- How to Check AWS SNS Permissions using CLI
- AWS CLI Change Default Output Format
- How to install AWS CLI on Ubuntu
- Quick way to install AWS CLI for macOS Terminal
- Install AWS CLI using Brew Command
- AWS CLI Command to Get a List of SNS Topics
- Get List of AWS SNS Topic Subscriptions using CLI
- How to Setup AWS Credentials using Visual Studio Code
- Installing AWS CLI Version 2 on macOS Sonoma using Terminal
- AW3 CLI command to get list of all region names
- AWS SNS CLI Command Publish Message Attributes
- Create an S3 bucket in a specific AWS region using CLI Command
- [Fix] zsh: command not found: awscli [Mac Terminal]
- Understanding AWS Calculator: DynamoDB on-demand capacity
- [Solution] com.amazonaws.dynamodb.v20120810 MissingAuthenticationToken Key Id or X.509 certificate
More Posts:
- How to Open VS Code on Mac - MacOS
- How to Open Calculator using Mac Terminal - MacOS
- 10 FTP SFTP Clients and Alternatives - FTP
- Fix: Spring Boot + Caching: DefaultSerializer requires a Serializable payload - Java
- Show CPU and Memory Usage on macOS Menu Bar - MacOS
- [Fix] Microsoft Teams a JavaScript error occurred in the main process Error - Teams
- How to add duration to Android Toast makeText method - Android
- Align left align text in Bootstrap - Bootstrap