If you want to configure the Access Key ID and Secret Access Key to run AWS CLI commands, then you need to follow the below steps on your Mac (same steps for M1/M2 or Intel-based Mac's).
Step 1: Install AWS CLI 2 using brew
% brew install awscli
Once you get the CLI installed, then you can validate that it has been installed correctly using the --version command.
% aws --version
aws-cli/2.13.7 Python/3.11.4 Darwin/23.0.0 source/arm64 prompt/off
Step 2: Let's configure Access ID and Secret Keys Credentials
% aws configure
Once you run the above command, you will be asked to enter the below details.
AWS Access Key ID: XXAAYMUHEUKMZMW2HJK2
AWS Secret Access Key: jXAemA2uI6aX1iypqUbSQ5ZKonJQYNI2hpOYhwAd
Default region name: us-east-1
Default output format: table

-
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:
- How to remove Extra Spaces in Notepad++ - NotepadPlusPlus
- Two Ways to Extract rar (*.rar) files on Mac - MacOS
- Java Multi-line String Example - Java
- Java 8 Leap year check using Year class from java.time api - Java
- Microsoft Lists and SharePoint Online edit grid view - use undo and redo changes - SharePoint
- How to get SharePoint List Item URL using PowerShell - SharePoint
- Docker Commit Command with Examples - Docker
- How to get Java Thread name Example [Program] - Java