<?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: Srinath</title>
    <description>The latest articles on DEV Community by Srinath (@vsrnth).</description>
    <link>https://dev.to/vsrnth</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%2F21820%2F5234a3e3-98a2-4c52-a5dd-395b50ceca04.jpg</url>
      <title>DEV Community: Srinath</title>
      <link>https://dev.to/vsrnth</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vsrnth"/>
    <language>en</language>
    <item>
      <title>Fixing AWS MFA Entity Already Exists error</title>
      <dc:creator>Srinath</dc:creator>
      <pubDate>Wed, 17 Jul 2024 02:50:12 +0000</pubDate>
      <link>https://dev.to/vsrnth/fixing-aws-mfa-entity-already-exists-error-1b6h</link>
      <guid>https://dev.to/vsrnth/fixing-aws-mfa-entity-already-exists-error-1b6h</guid>
      <description>&lt;p&gt;I'll explain in this post how to fix AWS MFA Entity Already Exists error.&lt;/p&gt;

&lt;p&gt;For the sake of this post I'm assuming you have the requisite IAM permissions to carry out the below commands.&lt;/p&gt;

&lt;p&gt;What we are trying to do is list the all virtual mfa devices and then delete the defective/conflictive mfa devices. Deleting the defective/conflictive mfa devices, let's the user re-enroll into MFA.&lt;/p&gt;

&lt;p&gt;This command will list the virtual mfa devices in your account:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aws iam list-virtual-mfa-devices&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"VirtualMFADevices": [
        {
            "SerialNumber": "arn:aws:iam::1234567890:mfa/AB-CD"
        },
        {
            "SerialNumber": "arn:aws:iam::0987654321:mfa/acbd"
        },
        {
            "SerialNumber": "arn:aws:iam::112233445566:mfa/something",
            "User": {
                "Path": "/",
                "UserId": "ABCDEFGHIJKL",
                "Arn": "arn:aws:iam::112233445566:user/something",
                "CreateDate": "2020-08-14T04:27:38+00:00",
                "PasswordLastUsed": "2020-09-29T07:35:46+00:00"
            },
            "EnableDate": "2020-08-14T04:27:38+00:01"
        }
  ]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Defective MFA virtual device will look something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
"SerialNumber": "arn:aws:iam::0987654321:mfa/acbd"
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We just need to delete the defective MFA virtual device:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aws iam delete-virtual-mfa-device --serial-number arn:aws:iam::0987654321:mfa/acbd 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once this is done, ask the user having issues with MFA to enroll again.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>mfa</category>
    </item>
    <item>
      <title>How to install Elasticsearch 5.6 and other such older versions</title>
      <dc:creator>Srinath</dc:creator>
      <pubDate>Wed, 11 Aug 2021 15:43:52 +0000</pubDate>
      <link>https://dev.to/vsrnth/how-to-install-elasticsearch-5-6-403b</link>
      <guid>https://dev.to/vsrnth/how-to-install-elasticsearch-5-6-403b</guid>
      <description>&lt;p&gt;&lt;strong&gt;Elasticsearch&lt;/strong&gt; 5.6 is now &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/5.6/release-notes-5.6.10.html"&gt;EOL&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Which begs the question why I'm &lt;strong&gt;writing&lt;/strong&gt; this blogpost. Not all software runs on the &lt;em&gt;bleeding edge&lt;/em&gt; of it's dependencies. People have to run and maintain legacy products. It's better not to use dependencies which are EOL because you're missing out on security and performance updates.&lt;/p&gt;

&lt;p&gt;I had to install Elasticsearch 5.6 and it took me a while to install it since the oldest version of Elasticsearch which &lt;strong&gt;Homebrew&lt;/strong&gt;(I use a mac) carries is 6. This blogpost is for the next person who runs into a similar issue. &lt;/p&gt;

&lt;p&gt;So yes we're going to manually install Elasticsearch and it's dependencies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steps to install Elasticsearch&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install Java&lt;/li&gt;
&lt;li&gt;Get Elasticsearch&lt;/li&gt;
&lt;li&gt;Configure path in your shell&lt;/li&gt;
&lt;li&gt;Run Elasticsearch&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Install Java&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Java8 works just fine with Elasticsearch 5.6.&lt;/li&gt;
&lt;li&gt;So we'll go ahead and install that

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;brew install openjdk@8&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;This &lt;a href="https://mkyong.com/java/how-to-install-java-on-mac-osx/"&gt;blogpost&lt;/a&gt; covers Java installation pretty in-depth, feel free to refer it.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Get Elasticsearch&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Download &lt;a href="https://www.elastic.co/downloads/past-releases/elasticsearch-5-6-0"&gt;Elasticsearch&lt;/a&gt; from the official site.&lt;/li&gt;
&lt;li&gt;Extract elasticsearch from the zip and keep it in a folder and track the folder.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Configure the environment variables as shown:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export ES_HOME=~/bin/elasticsearch-5.6.16
export JAVA_HOME=/usr/local/opt/openjdk@8/libexec/openjdk.jdk/Contents/Home
export PATH=$ES_HOME/bin:$JAVA_HOME/bin:$PATH
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Once the environment variables are configured refresh the shell.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Run Elasticsearch&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;






&lt;p&gt;Blogposts referred:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; &lt;a href="https://chartio.com/resources/tutorials/how-to-install-elasticsearch-on-mac-os-x/"&gt;https://chartio.com/resources/tutorials/how-to-install-elasticsearch-on-mac-os-x/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt; &lt;a href="https://mkyong.com/java/how-to-install-java-on-mac-osx/"&gt;https://mkyong.com/java/how-to-install-java-on-mac-osx/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Photo by &lt;a href="https://unsplash.com/@markuswinkler?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Markus Winkler&lt;/a&gt; on &lt;a href="https://unsplash.com/s/photos/legacy?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Unsplash&lt;/a&gt;&lt;/p&gt;

</description>
      <category>elasticsearch</category>
      <category>help</category>
      <category>todayilearned</category>
    </item>
  </channel>
</rss>
