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,
- 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 convert Python datetime object to a String - Python
- Show/Hide Hidden Files and Directories on Mac Finder - MacOS
- How to enable Do Not Disturb mode for Notification Center in Mac OS X 10.10 Yosemite - Mac-OS-X
- How to get the SharePoint Tenant Login URL - SharePoint
- How to get Client IP address using Java Code Example - Java
- Ways to Convert Integer or int to Long in Java - Java
- Split String in Python with Multiple Delimiters - Python
- Mac Auto Move Mouse Pointer Every X Seconds to Keep Screen Awake - MacOS