<?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>DEV Community: Hardik Sheth</title>
    <description>The latest articles on DEV Community by Hardik Sheth (@hardiksheth1717).</description>
    <link>https://dev.to/hardiksheth1717</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%2F1139143%2F62cbc9b7-3022-4a80-85aa-04bf33d59bd5.jpeg</url>
      <title>DEV Community: Hardik Sheth</title>
      <link>https://dev.to/hardiksheth1717</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hardiksheth1717"/>
    <language>en</language>
    <item>
      <title>Step-by-Step Tutorial: Install and Configure AWS CLI in Under 10 Minutes</title>
      <dc:creator>Hardik Sheth</dc:creator>
      <pubDate>Tue, 15 Aug 2023 01:49:11 +0000</pubDate>
      <link>https://dev.to/hardiksheth1717/step-by-step-tutorial-install-and-configure-aws-cli-in-under-10-minutes-47je</link>
      <guid>https://dev.to/hardiksheth1717/step-by-step-tutorial-install-and-configure-aws-cli-in-under-10-minutes-47je</guid>
      <description>&lt;p&gt;The Amazon Web Services Command Line Interface (AWS CLI) is a powerful tool that allows users to interact with various AWS services and resources through the command line. It streamlines tasks, automates operations, and enables developers, administrators, and DevOps engineers to manage AWS environments efficiently. In this tutorial, I’ll guide you through the process of installing and configuring the AWS CLI in under 10 minutes, so you can start leveraging its capabilities right away.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/C_rafsv-NIo"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;You can go with my video tutorial ☝️ to see the complete step by step guide or you can continue this article 👇 and get high level overview.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;Before we begin, ensure you have the following prerequisites:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Operating System:&lt;/strong&gt; The AWS CLI supports various operating systems, including Linux, macOS, and Windows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python:&lt;/strong&gt; AWS CLI requires Python 3.6 or later. You can check your Python version using the command python3 --version or python --version.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AWS Account:&lt;/strong&gt; You’ll need an AWS account to use the AWS CLI. If you don’t have one, you can sign up for a free AWS account on the AWS website.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;📥 Download and install AWS CLI from the official website.&lt;br&gt;
🔑 Create a dedicated user for AWS CLI in AWS IAM.&lt;br&gt;
⚙️ Configure AWS CLI with your AWS account credentials.&lt;br&gt;
🖥️ Verify successful installation and configuration by running AWS CLI commands.&lt;/p&gt;
&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;Follow these steps to install the AWS CLI:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Open Command Prompt:&lt;/strong&gt; Launch the Command Prompt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Download Installer:&lt;/strong&gt; Download the AWS CLI installer for Windows from the AWS CLI official website.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run Installer:&lt;/strong&gt; Run the downloaded installer and follow the installation wizard’s prompts. Choose the installation location and other preferences.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify Installation:&lt;/strong&gt; To verify the installation, open a new Command Prompt and run:
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aws --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;You should see the version number of the installed AWS CLI.&lt;/p&gt;
&lt;h2&gt;
  
  
  Configuration
&lt;/h2&gt;

&lt;p&gt;Once the AWS CLI is installed, you need to configure it with your AWS credentials to interact with your AWS resources securely. Follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Open Terminal or Command Prompt:&lt;/strong&gt; Open your terminal application (Linux/macOS) or Command Prompt (Windows).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configure AWS CLI:&lt;/strong&gt; Run the following command:
&lt;/li&gt;
&lt;/ol&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;ol&gt;
&lt;li&gt;
&lt;strong&gt;Provide Access Key and Secret Key:&lt;/strong&gt; Enter your AWS Access Key ID and AWS Secret Access Key. These can be obtained from your AWS account’s Security Credentials section.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose Default Region:&lt;/strong&gt; Enter your preferred AWS region. This is the region where your resources will be created by default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose Output Format:&lt;/strong&gt; You can select the default output format for command-line responses, such as &lt;code&gt;json&lt;/code&gt;, &lt;code&gt;text&lt;/code&gt;, or &lt;code&gt;table&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  Testing
&lt;/h2&gt;

&lt;p&gt;To ensure that your AWS CLI is configured correctly, try running a simple command to list your EC2 instances:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;If you see a list of your EC2 instances, congratulations! You’ve successfully installed and configured the AWS CLI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this article, you learned how to quickly install and configure the AWS CLI, enabling you to manage your AWS resources efficiently from the command line. The AWS CLI is a versatile tool that empowers users to automate tasks, streamline workflows, and harness the power of AWS services seamlessly. With your AWS CLI up and running, you’re well-equipped to embark on your cloud journey with AWS.&lt;/p&gt;

&lt;p&gt;Subscribe to my YouTube channel to learn more about devops — &lt;a href="https://www.youtube.com/@hardiksheth1717"&gt;https://www.youtube.com/@hardiksheth1717&lt;/a&gt;&lt;/p&gt;

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