<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Swapnil Gajbhiye on Medium]]></title>
        <description><![CDATA[Stories by Swapnil Gajbhiye on Medium]]></description>
        <link>https://medium.com/@swapnilgajbhiye?source=rss-82eed41926e8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qKyZp3eWbiAXGRbJ.</url>
            <title>Stories by Swapnil Gajbhiye on Medium</title>
            <link>https://medium.com/@swapnilgajbhiye?source=rss-82eed41926e8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:08:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@swapnilgajbhiye/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mastering aws configure: Your First Step with AWS CLI]]></title>
            <link>https://medium.com/@swapnilgajbhiye/mastering-aws-configure-your-first-step-with-aws-cli-53382c30f2a1?source=rss-82eed41926e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/53382c30f2a1</guid>
            <dc:creator><![CDATA[Swapnil Gajbhiye]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 09:59:23 GMT</pubDate>
            <atom:updated>2025-08-15T09:59:23.313Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re new to AWS and want to manage your cloud resources from the command line, your journey starts with one essential command:<br>aws configure</p><p>This single step connects your AWS CLI to your AWS account, allowing you to create, list, and manage resources without touching the AWS Console.</p><h3>What is aws configure?</h3><p>aws configure is part of the <strong>AWS Command Line Interface (CLI)</strong>. It sets up your credentials and default preferences so the CLI knows <strong>who you are</strong> and <strong>where</strong> to work in AWS.</p><p>Think of it like logging in and setting your language and location in one step.</p><p><strong>Step-by-Step Guide</strong><br>Run the command in command prompt:</p><pre>aws configure</pre><p>If you get following error don’t worry its obvious as we are doing it for first time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*r2FhSSC3aqKW7k3QxmuDng.png" /></figure><h3>How to resolve this?</h3><p>Follow below steps to make it happen:<br>Check if AWS CLI is installed or not.</p><p>Open command prompt and type below command.</p><pre>aws - version</pre><p>If it says <strong>not recognized</strong>, AWS CLI is not installed or not on PATH.</p><h3>Install AWS CLI</h3><p>Download the latest AWS CLI v2 for Windows from:<br><a href="https://awscli.amazonaws.com/AWSCLIV2.msi"> AWS CLI Installer (Windows 64-bit)</a></p><p>Run the installer and complete the setup.</p><h3>Add AWS CLI to PATH (If already installed or not installed but not recognized)</h3><p>Find the AWS CLI installation path or check path during installation where you specified.</p><p>C:\Program Files\Amazon\AWSCLIV2\</p><p>Add it to your PATH:</p><p>Goto command prompt or follow below steps</p><ol><li>Press <strong>Windows + R</strong>, type sysdm.cpl, press <strong>Enter</strong>.</li><li>Go to <strong>Advanced</strong> → <strong>Environment Variables</strong>.</li><li>Under <strong>System variables</strong>, find Path, click <strong>Edit</strong>.</li><li>Click <strong>New</strong>, paste the location of installation.</li></ol><p>Click <strong>OK</strong> on all windows.</p><p>Restart your Command Prompt and try:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*UMvrJ2Rr2XAIEM5FcHE9PQ.png" /></figure><p>Hurray we did it. Now are good to setup aws configure</p><h3>Configure AWS CLI</h3><p>Once AWS CLI works, run:</p><pre>aws configure</pre><h3>Provide your AWS credentials &amp; preferences</h3><p>You’ll be prompted for four inputs:<br>AWS Access Key ID [None]: &lt;your-access-key-id&gt;<br>AWS Secret Access Key [None]: &lt;your-secret-access-key&gt;<br>Default region name [None]: ap-south-1(this depends on which region you want it)<br>Default output format [None]: json</p><p><strong>Here’s what each means:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*38piUERZe6Zs-GL3u0Ejlw.png" /></figure><h3>Where Do I Get These Keys?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LnwDZ_Ng3Gvup8srU447Xg.png" /><figcaption>Visual Diagram for reference</figcaption></figure><h3>How to do this from AWS portal?</h3><p>Goto: https:console.aws.com<br>Navigate to top right Account Section</p><p>Select Security credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*BgmpK_DLu969wtpb3hSreg.png" /></figure><p>Go to Access Keys Section there you will find the Access keys.<br>Since we are setting it for the first time we need to create access key.<br>Click on Create access key and download it as csv.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*v6mRCWaF7FLlPqX5QTH0jA.png" /></figure><ol><li>Go to <strong>AWS Console</strong> → <strong>IAM</strong> → <strong>Users</strong> → select your user.</li><li>Go to <strong>Security credentials</strong> tab.</li><li>Click <strong>Create access key</strong> → Download the .csv file.</li><li>Use the <strong>Access Key ID</strong> and <strong>Secret Access Key</strong> from that file in aws configure.</li></ol><p><strong>⚠️ Security Tip:</strong><br> Never share your keys or commit them to GitHub. Treat them like passwords.</p><h3>What Happens After Configuration?</h3><p>The AWS CLI saves your settings in two files on your computer:</p><ul><li><strong>~/.aws/credentials</strong> → stores the keys.</li><li><strong>~/.aws/config</strong> → stores region &amp; output format.</li></ul><pre># ~/.aws/credentials<br>[default]<br>aws_access_key_id = AKIAIOSFODNN7EXAMPLE<br>aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY</pre><pre># ~/.aws/config<br>[default]<br>region = ap-south-1<br>output = json</pre><h3>How to List AWS profiles?</h3><pre>aws configure list-profiles</pre><p>After running aws configure, test it with:</p><pre>aws sts get-caller-identity</pre><pre>{<br> &quot;UserId&quot;: &quot;AIDAEXAMPLE&quot;,<br> &quot;Account&quot;: &quot;123456789012&quot;,<br> &quot;Arn&quot;: &quot;arn:aws:iam::123456789012:user/YourUser&quot;<br>}</pre><h3>Pro Tips for Beginners</h3><ul><li>Always set a <strong>default region</strong> to avoid “must specify region” errors.</li><li>Use table output for readability, json for scripting.</li><li>Rotate your access keys periodically.</li><li>Delete old/unused keys from IAM.</li></ul><h3>Conclusion</h3><p>aws configure might look simple, but it’s the foundation of everything you do with the AWS CLI. Once it’s set up, you can launch EC2 instances, manage S3 buckets, and deploy Lambda functions — all without leaving your terminal.</p><p>If you’re just starting your AWS journey, mastering this one command puts you on the path to becoming cloud-proficient.</p><blockquote><em>“What was your first AWS CLI command after running </em><em>aws configure?”</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53382c30f2a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>