245 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 Captain  ·  IBM Champion  ·  AWS Community Builder

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
    Restore Drills on a Clean Machine — Measured RTO for 47 Stacks, 19 Seconds to 7 Minutes
    DevOps & Cloud · Restore drills that measure RTO on a machine that never ran the stack, 47 templates weekly. Every same-host restore passed. The first clean one answered 500.
  2. 2
    Mutation Testing for Infrastructure Code — 153 Planted Bugs, Four Tests That Could Not Fail
    DevOps & Cloud · Mutation testing for infrastructure code, done by hand across fifteen repositories. 153 planted bugs, and four green tests that could never have failed.
  3. 3
    Docker Health Checks That Cannot Fail — Seventeen Hours Green
    DevOps & Cloud · A Docker health check whose pattern matches the shell running it can never go red. How to find the checks in your fleet that never failed, and prove each one.
  4. 4
    Terraform MCP server GA: the Apply Gate your auditor will ask about
    DevOps & Cloud · HashiCorp's Terraform MCP server is GA and IBM Bob can write production IaC. ENABLE_TF_OPERATIONS separates a safe assistant from autonomous apply.

Random Posts

Random
  1. 1
    Docker supply chain hardening — from Scout D to OpenSSF 7.8 on a 730K-pull image
    DevOps & Cloud · How I hardened a 1M-pull public Docker image from Scout grade D to OpenSSF Scorecard 7.8 — multi-stage build, cosign, SLSA provenance, non-root default.
  2. 2
    Configure Exchange Server 2016
    SysAdmin & IT Pro · Step-by-step guide to configure Exchange Server 2019 — mailbox databases, public folders, DNS, certificates, and send/receive connectors.
  3. 3
    Install Exchange Server 2013
    SysAdmin & IT Pro · Step-by-step guide to install Exchange Server 2013 on Windows Server 2012 R2, including prerequisites, AD preparation, and full installation walkthrough.
  4. 4
    Disable Server Manager Autostart in Windows Server 2019
    SysAdmin & IT Pro · Learn how to disable Server Manager autostart in Windows Server 2019 using Server Manager settings, Task Scheduler, CMD, and PowerShell.
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