<?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 Avadh Sharma on Medium]]></title>
        <description><![CDATA[Stories by Avadh Sharma on Medium]]></description>
        <link>https://medium.com/@avadh.sharma?source=rss-43fe2351702e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*GtMN0ixqt7jVyH9G</url>
            <title>Stories by Avadh Sharma on Medium</title>
            <link>https://medium.com/@avadh.sharma?source=rss-43fe2351702e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 16:44:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@avadh.sharma/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[Revert to a specific commit in Git]]></title>
            <link>https://medium.com/@avadh.sharma/revert-to-a-specific-commit-in-git-76ee55ff76e?source=rss-43fe2351702e------2</link>
            <guid isPermaLink="false">https://medium.com/p/76ee55ff76e</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[commit]]></category>
            <dc:creator><![CDATA[Avadh Sharma]]></dc:creator>
            <pubDate>Fri, 25 Sep 2020 10:11:03 GMT</pubDate>
            <atom:updated>2020-09-25T10:12:55.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*0tfgm8Nn-MnPuCcMAdB1nw.png" /></figure><p>In this post, we’ll see how to revert to a particular commit that has already been pushed to remote origin in Git.</p><p>First, find the commit you want to revert all changes to:</p><pre>$ git log --oneline</pre><p>Now rollback all the changes to this commit:</p><pre>$ git checkout &lt;commit-id&gt; . <strong>(Note the dot is mandatory)</strong></pre><p>Add these changes to the staging area and commit:</p><pre>$ git add -A<br>$ git commit -m &quot;Revert commit: &lt;commit-id&gt;&quot;</pre><p>Now push the new revision with the reverted changes to the remote Git repository:</p><pre>$ git push</pre><p>And that’s it! Verify the changes have been reverted. 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76ee55ff76e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Certifications: My Journey so far…]]></title>
            <link>https://medium.com/@avadh.sharma/aws-certifications-my-journey-so-far-fbe2cb7d8a95?source=rss-43fe2351702e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbe2cb7d8a95</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-certification]]></category>
            <dc:creator><![CDATA[Avadh Sharma]]></dc:creator>
            <pubDate>Thu, 18 Jun 2020 11:58:15 GMT</pubDate>
            <atom:updated>2020-06-18T14:29:31.029Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tIKl4_rgrswr_WpLukheLA.jpeg" /></figure><p>Recently, I passed my 6th AWS certification exam — AWS Security Speciality.</p><p>Validating your existing knowledge, challenge yourself and enhancing your resume are always good reasons to do these certifications, but in addition to those, I was really interested in exploring further the AWS ecosystem. Studying for certifications allowed me to get a really good overview of the ecosystem and in the process to take a deep dive into some services that I was not using.</p><p>Before I share any exam specific details, I’ll say this: set a reasonable goal for yourself, commit to it, and follow through with it. Concretely, what that means is this: you decide you want to pursue an exam… Do a rough survey of the material and (being honest with yourself) determine how long you believe it will take you to learn enough of the concepts therein to pass the examination. Everyone is motivated differently; if you don’t know what motivates you, figure it out. Motivation is a key element in this process, and you will absolutely fail without it. Make a plan with some goals (even if only in your head), and work towards them. Then, go take the test. Sounds ridiculously simple, right?</p><h4>Difficulty Level</h4><p>Personally I would rank the difficulty levels of the certifications I have taken from easy to hard as below:</p><blockquote>Developer Associate</blockquote><blockquote>Solution Architect Associate</blockquote><blockquote>SysOps Associate</blockquote><blockquote>Security Speciality</blockquote><blockquote>DevOps Professional</blockquote><blockquote>Solution Architect Professional</blockquote><p>It is worth noting that it is a big jump in terms of difficulty from Associate level exams to the Professional level exams. Like, for the Certified Solution Architect Professional exam , you will be given long questions and all correct choices but you are required to choose the best one. If you do not have the deep understanding of the domains, it is very hard to find the correct answer(s). Time management is also crucial. If you are not a quick reader, its very difficult to finish all the questions in stipulated time(especially for SA PRO).</p><h4><strong>Preparation</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtU1Y4uZ99qoIjkVYKXCxw.png" /></figure><p>A Cloud Guru(ACG) and Linux Academy(LA) are two course providers I used for the preparation of all the exams. A Cloud Guru courses cover the domains required for the exams very well, while Linux Academy courses cover some important subjects in depth and are more updated. For professional certifications, I referred other courses in addition to ACG and LA to gain better understanding of some concepts.</p><p>In Particular , for <strong>SA Pro</strong> , I took the course from <strong>DolfinED</strong> and for <strong>DevOps Pro</strong>, the course from <strong>Stephane Maarek on UDemy(Highly Recommened)</strong> turned out to be really beneficial.</p><p>For the services that you do not have any hands-on experience, I would recommend to try out the hands-on labs on LA. I also found AWS whitepapers and FAQs to be very good resources for digging into the details of some key services.</p><h4>Practice Exams</h4><p>Honestly for associate levels, if you have been working with AWS for sometime, the online courses and mock exams offered by them should be more then enough. But if you want to really sure about your preparations, you can go for any practice exams(like WhizLabs, Jon Bonso or AWS).</p><p>However, for professional levels I would strongly recommend the practice exams offered by Jon Bonso<strong>(a must)</strong>. I learnt it the hard way as I failed the SA PRO in my first attempt and eventually cleared it in the second attempt after preparing harder and taking the practice exams which gave me confidence that I was ready.</p><h4><strong>Exam Day Tips</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grjDemnUleAbgMNWyT47wA.jpeg" /></figure><p>A day before the exam day, do not stretch or get exhausted and ensure you take a deep sleep. Your preparation is done and now it is time to have belief and your confidence level up.</p><p>Once you understand the question, do not jump on seeing the multiple options first. Go one by one and have a process of elimination in your mind. You need to start eliminating the possibilities, which are not correct as per the scenario question need, and you will have your answer by the end.</p><p>Flag all those questions where you are not very confident with an answer. Do not wait and stay on the same question for long. You will have an option to review them later if you have time left.</p><h4>Conclusion</h4><p>The journey so far has been difficult but equally amazing and pleasing. I feel like I have learnt a lot through the preparation. There is also a great satisfaction and confidence of achieving proficient level skills of AWS.</p><p>I would also like to thanks my previous company <a href="https://medium.com/u/2e1bb83d100c">Infosys </a>and current company @NAB for sponsoring these certifications. There’s less pressure when you don’t have to worry about the certification costs.</p><p>But as they say <strong>“learning never stops”</strong>. My journey is far from over. It has just started. 😄</p><p><em>“Knowing is not enough; we must apply. Willing is not enough; we must do”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbe2cb7d8a95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transfer files in S3 Glacier Storage Class from one AWS account to another]]></title>
            <link>https://medium.com/@avadh.sharma/transfer-files-in-s3-glacier-storage-class-from-one-aws-account-to-another-54bf4d13c28f?source=rss-43fe2351702e------2</link>
            <guid isPermaLink="false">https://medium.com/p/54bf4d13c28f</guid>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Avadh Sharma]]></dc:creator>
            <pubDate>Thu, 11 Jun 2020 11:45:07 GMT</pubDate>
            <atom:updated>2020-06-11T11:47:23.375Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Have you ever tried to move objects that are stored in AWS Glacier Storage? It’s not quite as straightforward as putting them in. But it’s not that difficult either. 😃</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35efxBMX_3QC3Kmh1OY4fg.jpeg" /></figure><p>First create a list of all objects in Source_Account_Bucket which are of “GLACIER” storage class.</p><pre>aws s3api list-objects-v2 --bucket Source_Account_Bucket --query  &quot;Contents[StorageClass==&#39;GLACIER&#39;]&quot; --output text | awk &#39;{print $2}&#39; &gt; objects.txt</pre><p>Restore the objects to a temporary copy which is made available for the duration specified in the restore request, such as 2 days in below script:</p><pre>#!/bin/sh</pre><pre>for x in `cat objects.txt`</pre><pre>do</pre><pre>echo “Begin restoring $x”</pre><pre><em>aws s3api restore-object --bucket </em>Source_Account_Bucket <em>--key &quot;$x&quot; --restore-request &#39;{&quot;Days&quot;:2,&quot;GlacierJobParameters&quot;:{&quot;Tier&quot;:&quot;Bulk&quot;}}&#39;</em></pre><pre>echo “Done restoring $x”</pre><pre>done</pre><p>Here I am using <strong>Bulk</strong> as retrieval option but you may choose another depending on your situation. More details on that are below:</p><p><a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/downloading-an-archive-two-steps.html#api-downloading-an-archive-two-steps-retrieval-options">Retrieving S3 Glacier Archives</a></p><p>Ensure the Source_Account_Bucket has a bucket policy configured which grants access to Destination_Account_Bucket:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a196f8fe9796d2aaeac2e56292a3c2cc/href">https://medium.com/media/a196f8fe9796d2aaeac2e56292a3c2cc/href</a></iframe><p>Once the Objects are restored, copy objects from source account to destination account by using the following AWS CLI command.</p><pre>aws s3 sync s3://Source_Account_Bucket s3://Destination_Account_Bucket --force-glacier-transfer --storage-class STANDARD</pre><p><em>The above command should be executed with destination AWS IAM user account credentials(having s3 policy) only otherwise the copied objects in destination S3 bucket will still have the source account permissions and won’t be accessible by destination account users.</em></p><p><strong>NOTE: </strong>When using the --force-glacier-transfer flag it doesn&#39;t do another restore, it just ignores the API saying the object is in Glacier and tries anyways. It will fail if the object is not restored (it won&#39;t try to restore it).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54bf4d13c28f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>