top of page
Search
  • Writer's pictureNaresh Padiyar

Install AWS CLI on MacOS with Apple Chip


Below steps explains how to setup AWS CLI on MacOS Terminal with Apple Chip.


Steps to install AWS CLI in Mac


1. Open Terminal and download the awscli-bundle.zip using below curl command.


curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"

2. Extract (unzip) the files from the package.


unzip awscli-bundle.zip

3. Install Python 3.10 from below link

Click on macOS 64-bit universal2 installer and downloads the installer package.

Install the Python package.


4. Install the AWS CLI using below command.


sudo /usr/local/bin/python3.10 awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

5. Login to your AWS account and export below variables in your Mac Terminal to setup the programmatic access.

export AWS_ACCESS_KEY_ID="XXXXX"
export AWS_SECRET_ACCESS_KEY="XXXXX"
export AWS_SESSION_TOKEN="XXXXX"
export AWS_DEFAULT_REGION="Your AWS Region"

6. Test if your setup is successful

aws s3 ls




9 views0 comments

Recent Posts

See All

Cronitor API Examples

List All CronJobs and their code curl -X GET https://cronitor.io/v2/monitors -u <API Token>: | jq curl -X GET https://cronitor.io/v2/monitors -u <API Token>: | jq . | jq '.monitors' | jq -c --raw-outp

AWS CLI Cheatsheet

1. Command to export EC2 Details in CSV Format Create the Excel file with Headers echo -e "InstanceID\tInstanceType\tImageId\tCoreCount\tState\tLaunchTime\tAvailabilityZone\tPrivateIpAddress\tPrivateD

Docker Command Cheatsheet

To build a docker image from Dockerfile docker build To pull a docker image docker pull To run a docker image docker run Find docker version docker version docker -v Find docker installation details

bottom of page