<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: George Tzinos</title>
    <description>The latest articles on Forem by George Tzinos (@gtzinos).</description>
    <link>https://forem.com/gtzinos</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F496127%2F1125f219-0423-4a2a-b5bd-e44befc8639a.jpg</url>
      <title>Forem: George Tzinos</title>
      <link>https://forem.com/gtzinos</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/gtzinos"/>
    <language>en</language>
    <item>
      <title>How to Install and Configure the AWS CLI on Your Mac</title>
      <dc:creator>George Tzinos</dc:creator>
      <pubDate>Wed, 24 Sep 2025 03:28:06 +0000</pubDate>
      <link>https://forem.com/gtzinos/how-to-install-and-configure-the-aws-cli-on-your-mac-3hg6</link>
      <guid>https://forem.com/gtzinos/how-to-install-and-configure-the-aws-cli-on-your-mac-3hg6</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjj66eb9yszt4ngub5pg3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjj66eb9yszt4ngub5pg3.jpg" alt="captionless image" width="640" height="640"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Setting up your local environment for AWS is a fundamental step for any developer or DevOps enthusiast.&lt;/p&gt;

&lt;p&gt;If you’re looking to get started with AWS, the first and most crucial step is to set up the &lt;strong&gt;AWS Command Line Interface (CLI)&lt;/strong&gt;. This powerful tool allows you to manage your AWS services directly from your terminal, which is essential for automation and efficient workflows.&lt;/p&gt;

&lt;p&gt;This guide will walk you through the entire process, from installing the necessary tools to configuring the CLI with your credentials. Let’s dive in!&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1: Install Homebrew (If You Haven’t Already) 🍻
&lt;/h3&gt;

&lt;p&gt;If you don’t already have it, Homebrew is a must-have package manager for macOS. It simplifies your daily developer life by making package installation a breeze, often with a single command.&lt;/p&gt;

&lt;p&gt;Visit the Homebrew homepage at &lt;a href="https://brew.sh/" rel="noopener noreferrer"&gt;https://brew.sh/&lt;/a&gt; for the latest instructions.&lt;/p&gt;

&lt;p&gt;OR else execute the following command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once installed, it’s always good practice to ensure everything is up-to-date:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Install AWS CLI 📥
&lt;/h3&gt;

&lt;p&gt;execute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install awscli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Homebrew will download and install the latest version of the official AWS CLI.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Login to AWS console
&lt;/h3&gt;

&lt;p&gt;To use the CLI, you need credentials. We’ll generate a unique &lt;strong&gt;Access Key ID&lt;/strong&gt; and &lt;strong&gt;Secret Access Key&lt;/strong&gt; from the AWS Management Console.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Navigate to the &lt;strong&gt;AWS Console:&lt;/strong&gt; &lt;a href="https://aws.amazon.com/console/" rel="noopener noreferrer"&gt;https://aws.amazon.com/console/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And click on the &lt;strong&gt;Sign in&lt;/strong&gt; button&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4. Once logged in, go to security credentials page
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  Click on your name at the right top corner&lt;/li&gt;
&lt;li&gt;  On the popup menu, click on the “Security credentials”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq1sh4h0rtewqlur783ys.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq1sh4h0rtewqlur783ys.png" alt="captionless image" width="376" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5. Generate Your Access Keys in AWS Console 🔑
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  Scroll down to the &lt;strong&gt;Access keys&lt;/strong&gt; section&lt;/li&gt;
&lt;li&gt;  Click the &lt;strong&gt;Create access key&lt;/strong&gt; button&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmu5arw0m5zu3nxlgcsnc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmu5arw0m5zu3nxlgcsnc.png" alt="captionless image" width="800" height="133"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  A key pair will be generated. &lt;strong&gt;Crucially&lt;/strong&gt;, &lt;strong&gt;copy and save both keys&lt;/strong&gt; immediately and securely. &lt;strong&gt;Treat your Secret Access Key like a password!&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsfla6s4j3y5zurs7awrp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsfla6s4j3y5zurs7awrp.png" alt="captionless image" width="800" height="174"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;💡&lt;/em&gt; &lt;strong&gt;&lt;em&gt;Pro Tip:&lt;/em&gt;&lt;/strong&gt; &lt;em&gt;For production use, consider securing these keys using AWS services like&lt;/em&gt; &lt;strong&gt;&lt;em&gt;Secrets Manager&lt;/em&gt;&lt;/strong&gt; &lt;em&gt;instead of storing them locally.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 6: Configure the AWS CLI ⚙️
&lt;/h3&gt;

&lt;p&gt;Run the main configuration command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aws configure
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The CLI will prompt you for four pieces of information:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AWS Access Key ID: Use the Access key you just generated (first one)
AWS Secret Access Key: Use the Secret access key you just generated (Second one)
Default region name: us-east-1 (Use yours)
Default output format: You can press Enter to accept the default, which is JSON.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;*How to find your region name?&lt;/p&gt;

&lt;p&gt;To find your default region, look at the top-right corner of the AWS Management Console. The current region you are in will be displayed there e.g., &lt;strong&gt;United States (N. Virginia)&lt;/strong&gt;, click it&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Get the selected region identifier, for me this is &lt;strong&gt;us-east-1&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp4yusxn3prmx3v6mg8ty.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp4yusxn3prmx3v6mg8ty.png" alt="captionless image" width="479" height="188"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7: Test Your Setup! ✅
&lt;/h3&gt;

&lt;p&gt;A successful configuration means you can now interact with AWS! Let’s run a simple test.&lt;/p&gt;

&lt;p&gt;The following command will list all the available top-level commands in the CLI. If it runs without errors, you’re golden!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aws help
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;CONGRATULATIONS!&lt;/strong&gt; 🎉 You’re officially set up and ready to start mastering your AWS resources directly from your command line. Go forth and automate!&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>aws</category>
      <category>cli</category>
      <category>devops</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
