230 words
1 min read

Install AWS CLI on macOS

By Docker Captain · CNCF Ambassador · IBM Champion
2022-09-16
2026-03-29
Cover image for the post 'Install AWS CLI on macOS'

This article is for those looking for a detailed and straightforward guide on installing AWS CLI on macOS.

The AWS CLI is a single tool for managing AWS services. With just one tool download, you can control many AWS services from the command line and automate them with scripts.

TIP

Architecture Context

AWS CLI is essential for scripting and automation workflows that exceed what the AWS Console provides. For infrastructure provisioning, Terraform or CloudFormation offer declarative alternatives with state management and drift detection. CLI is the right choice for ad-hoc operations, debugging, and scripting — while IaC tools should handle repeatable infrastructure deployments.

NOTE

We will be using the iTerm2 terminal emulator.

Download the AWS CLI installer using the command:

Terminal window
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"

Install AWS CLI on macOS - Step 1

Let’s start the AWS CLI installation using the command:

Terminal window
sudo installer -pkg AWSCLIV2.pkg -target /

Install AWS CLI on macOS - Step 2

Specify the password for the account and press “Enter”.

Install AWS CLI on macOS - Step 3

Now you can see the location of the executable file with the command:

Terminal window
which aws

Install AWS CLI on macOS - Step 4

You can now view the installed version of AWS CLI using the command:

Terminal window
aws --version

Install AWS CLI on macOS - Step 5

Everything is ready to use the AWS CLI.

Install AWS CLI on macOS - Step 6

You can read more about how to configure AWS CLI in my guide Configure AWS CLI.


Vladimir Mikhalev

Docker CaptainCNCF AmbassadorIBM Champion

The Verdict — production-tested analysis on YouTube.

The Verdict

Inconvenient truths about shipping in the AI era

Container security, platform engineering, and the agentic shift — tested in production, argued without the hype. The verdict reaches your inbox the moment there's one worth sending.

Related Posts

Same category
  1. 1
    Completed Is Not Restored: Kyverno Fail-Open, a Velero Restore and an HTTP 200 That Meant 500
    DevOps & Cloud · Scale Kyverno to zero and its webhooks vanish. A Velero restore said Completed over an empty disk. A 200 carried a 500. Three statuses that reported success.
  2. 2
    Docker Hub Immutable Tags: The Image That Shipped Before It Was Signed
    DevOps & Cloud · Docker Hub immutable tags refused a per-commit tag after the version tags were already out. The image shipped, the run died, and nothing ever signed it.
  3. 3
    Docker Hardened Images Migration: A Healthy Database That Kept Nothing
    DevOps & Cloud · Moving a Compose stack to Docker Hardened Images changes user IDs, paths and tools. On the old mount path, PostgreSQL stayed healthy and kept nothing.
  4. 4
    EKS Validation on a Real AWS Account: Seven Failures No Mock Saw
    DevOps & Cloud · Proving an EKS platform on a real AWS account: twenty cents a run by estimate, about fifty on the bill, and seven failures no mocked test or kind saw.

Random Posts

Random
  1. 1
    Choosing Between Docker Swarm and Kubernetes for Container Management
    DevOps & Cloud · Compare Docker Swarm vs. Kubernetes for container orchestration. Explore key differences in scalability, security, networking, and DevOps integration.
  2. 2
    AI Reviews That Read Nothing — Thirty-Four Verdicts in a Hundred
    AI & MLOps · A third of the images my fleet pins would have had their next AI review written against nothing. How to prove what an AI review read before anyone acts on it.
  3. 3
    Docker Desktop's Performance Odyssey Over a Year of Innovations
    Opinion & Culture · Docker Desktop's 2023 performance work, read against Docker's and Ajeet Raina's published numbers with attribution, plus my own October 2026 rerun on an M4 Pro.
  4. 4
    Install GLPI with Docker Compose, Traefik and Let's Encrypt
    Self-Hosting · GLPI asset management and helpdesk behind Traefik with Let's Encrypt: the Docker networks, the compose file from my repository, one command, first login.
Install AWS CLI on macOS
https://heyvaldemar.com/install-aws-cli-on-macos/
Author
Vladimir Mikhalev
Published
2022-09-16
Updated
2026-03-29
License
CC BY-NC-SA 4.0